Interface IUimaEditorExtension
public interface IUimaEditorExtension
The interface implemented by an external editor.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
activateEditor
(org.eclipse.ui.IEditorSite site, org.eclipse.ui.IEditorInput editorInput, MultiPageEditor cde, XMLizable xmlizable) Called by CDE to activate the external editor for editing the new type of descriptorboolean
canEdit
(MultiPageEditor cde, XMLizable xmlizable) When a new type of descriptor is encountered and cannot edit, CDE will called this method to test if the external editor can edit this new type of descriptor.void
init()
The first method called by the CDE after the implementation class of this interface is instantiated.
-
Method Details
-
init
void init()The first method called by the CDE after the implementation class of this interface is instantiated. -
canEdit
When a new type of descriptor is encountered and cannot edit, CDE will called this method to test if the external editor can edit this new type of descriptor.- Parameters:
cde
- An instance of CDExmlizable
- New type of descriptor to be edited- Returns:
- true if the external editor can edit the specified type of descriptor
-
activateEditor
void activateEditor(org.eclipse.ui.IEditorSite site, org.eclipse.ui.IEditorInput editorInput, MultiPageEditor cde, XMLizable xmlizable) throws org.eclipse.ui.PartInitException Called by CDE to activate the external editor for editing the new type of descriptor. *- Parameters:
site
- The site for which this part is being created; must not benull
.editorInput
- The input on which this editor should be created; must not benull
.cde
- An instance of CDExmlizable
- New type of descriptor to be edited- Throws:
org.eclipse.ui.PartInitException
- If the initialization of the part fails
-