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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
contributeToMenu
(org.eclipse.jface.action.IMenuManager manager) protected org.eclipse.jface.action.IAction
Returns the action registed with the given text editor.protected org.eclipse.jface.action.IAction
getAction1
(org.eclipse.ui.texteditor.ITextEditor editor, String actionID) Gets the action 1.static boolean
Gets the auto J cas gen.static String
Gets the CDE vns host.static String
Gets the CDE vns port.static boolean
Gets the limit J cas gen to project scope.static boolean
Gets the use qualified types.static int
Gets the XM lindent.void
setActiveEditor
(org.eclipse.ui.IEditorPart part) void
setActivePage
(org.eclipse.ui.IEditorPart part) static void
Sets the vns host.static void
setVnsHost
(String v) Sets the vns host.static void
Sets the vns port.static void
setVnsPort
(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:
setActiveEditor
in interfaceorg.eclipse.ui.IEditorActionBarContributor
- Overrides:
setActiveEditor
in classorg.eclipse.ui.part.MultiPageEditorActionBarContributor
-
setActivePage
public void setActivePage(org.eclipse.ui.IEditorPart part) - Specified by:
setActivePage
in classorg.eclipse.ui.part.MultiPageEditorActionBarContributor
-
contributeToMenu
public void contributeToMenu(org.eclipse.jface.action.IMenuManager manager) - Overrides:
contributeToMenu
in 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.
-