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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcontributeToMenu(org.eclipse.jface.action.IMenuManager manager) protected org.eclipse.jface.action.IActionReturns the action registed with the given text editor.protected org.eclipse.jface.action.IActiongetAction1(org.eclipse.ui.texteditor.ITextEditor editor, String actionID) Gets the action 1.static booleanGets the auto J cas gen.static StringGets the CDE vns host.static StringGets the CDE vns port.static booleanGets the limit J cas gen to project scope.static booleanGets the use qualified types.static intGets the XM lindent.voidsetActiveEditor(org.eclipse.ui.IEditorPart part) voidsetActivePage(org.eclipse.ui.IEditorPart part) static voidSets the vns host.static voidsetVnsHost(String v) Sets the vns host.static voidSets the vns port.static voidsetVnsPort(String v) Sets the vns port.Methods inherited from class org.eclipse.ui.part.EditorActionBarContributor
contributeToCoolBar, contributeToStatusLine, contributeToToolBar, dispose, getActionBars, getPage, init, init
-
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 editoractionID- 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 editoractionID- the action ID- Returns:
- the action 1
-
setActiveEditor
public void setActiveEditor(org.eclipse.ui.IEditorPart part) - Specified by:
setActiveEditorin interfaceorg.eclipse.ui.IEditorActionBarContributor- Overrides:
setActiveEditorin classorg.eclipse.ui.part.MultiPageEditorActionBarContributor
-
setActivePage
public void setActivePage(org.eclipse.ui.IEditorPart part) - Specified by:
setActivePagein classorg.eclipse.ui.part.MultiPageEditorActionBarContributor
-
contributeToMenu
public void contributeToMenu(org.eclipse.jface.action.IMenuManager manager) - Overrides:
contributeToMenuin classorg.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
Gets the CDE vns host.- Returns:
- the CDE vns host
-
getCDEVnsPort
Gets the CDE vns port.- Returns:
- the CDE vns port
-
setVnsHost
Sets the vns host.- Parameters:
v- the new vns host
-
setVnsPort
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.
-