Interface IUimaEditorExtension


public interface IUimaEditorExtension
The interface implemented by an external editor.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    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 descriptor
    boolean
    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
    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

      boolean 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.
      Parameters:
      cde - An instance of CDE
      xmlizable - 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 be null.
      editorInput - The input on which this editor should be created; must not be null.
      cde - An instance of CDE
      xmlizable - New type of descriptor to be edited
      Throws:
      org.eclipse.ui.PartInitException - If the initialization of the part fails