Class MultiPageEditorContributor

java.lang.Object
org.eclipse.ui.part.EditorActionBarContributor
org.eclipse.ui.part.MultiPageEditorActionBarContributor
org.apache.uima.taeconfigurator.editors.MultiPageEditorContributor
All Implemented Interfaces:
org.eclipse.ui.IEditorActionBarContributor

public class MultiPageEditorContributor extends org.eclipse.ui.part.MultiPageEditorActionBarContributor
Manages the installation/deinstallation of global actions for multi-page editors. Responsible for the redirection of global actions to the active editor. Multi-page contributor replaces the contributors for the individual editors in the multi-page editor.
  • Constructor Details

    • MultiPageEditorContributor

      public MultiPageEditorContributor()
      Creates a multi-page contributor.
  • Method Details

    • getAction

      protected org.eclipse.jface.action.IAction getAction(org.eclipse.ui.part.MultiPageEditorPart editor, String actionID)
      Returns the action registed with the given text editor.
      Parameters:
      editor - the editor
      actionID - the action ID
      Returns:
      IAction or null if editor is null.
    • getAction1

      protected org.eclipse.jface.action.IAction getAction1(org.eclipse.ui.texteditor.ITextEditor editor, String actionID)
      Gets the action 1.
      Parameters:
      editor - the editor
      actionID - the action ID
      Returns:
      the action 1
    • setActiveEditor

      public void setActiveEditor(org.eclipse.ui.IEditorPart part)
      Specified by:
      setActiveEditor in interface org.eclipse.ui.IEditorActionBarContributor
      Overrides:
      setActiveEditor in class org.eclipse.ui.part.MultiPageEditorActionBarContributor
    • setActivePage

      public void setActivePage(org.eclipse.ui.IEditorPart part)
      Specified by:
      setActivePage in class org.eclipse.ui.part.MultiPageEditorActionBarContributor
    • contributeToMenu

      public void contributeToMenu(org.eclipse.jface.action.IMenuManager manager)
      Overrides:
      contributeToMenu in class org.eclipse.ui.part.EditorActionBarContributor
    • getAutoJCasGen

      public static boolean getAutoJCasGen()
      Gets the auto J cas gen.
      Returns:
      the auto J cas gen
    • getUseQualifiedTypes

      public static boolean getUseQualifiedTypes()
      Gets the use qualified types.
      Returns:
      the use qualified types
    • getLimitJCasGenToProjectScope

      public static boolean getLimitJCasGenToProjectScope()
      Gets the limit J cas gen to project scope.
      Returns:
      the limit J cas gen to project scope
    • getXMLindent

      public static int getXMLindent()
      Gets the XM lindent.
      Returns:
      the XM lindent
    • getCDEVnsHost

      public static String getCDEVnsHost()
      Gets the CDE vns host.
      Returns:
      the CDE vns host
    • getCDEVnsPort

      public static String getCDEVnsPort()
      Gets the CDE vns port.
      Returns:
      the CDE vns port
    • setVnsHost

      public static void setVnsHost(String v)
      Sets the vns host.
      Parameters:
      v - the new vns host
    • setVnsPort

      public static void setVnsPort(String v)
      Sets the vns port.
      Parameters:
      v - the new vns port
    • setVnsHost

      public static void setVnsHost()
      Sets the vns host.
    • setVnsPort

      public static void setVnsPort()
      Sets the vns port.