Class ProductLineConfigurationEditorContributor
- java.lang.Object
-
- org.eclipse.ui.part.EditorActionBarContributor
-
- org.eclipse.ui.part.MultiPageEditorActionBarContributor
-
- net.ssehub.easy.producer.ui.productline_editor.ProductLineConfigurationEditorContributor
-
- All Implemented Interfaces:
org.eclipse.ui.IEditorActionBarContributor
public class ProductLineConfigurationEditorContributor extends org.eclipse.ui.part.MultiPageEditorActionBarContributorManages 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.- Author:
- gewalt, freitag
-
-
Field Summary
Fields Modifier and Type Field Description private org.eclipse.ui.IEditorPartactiveEditorPartprivate org.eclipse.jface.action.ActionsampleAction
-
Constructor Summary
Constructors Constructor Description ProductLineConfigurationEditorContributor()Creates a multi-page contributor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcontributeToMenu(org.eclipse.jface.action.IMenuManager manager)Contributes to the given menu.voidcontributeToToolBar(org.eclipse.jface.action.IToolBarManager manager)Contributes to the given toolbar.private voidcreateActions()Creates the actions.protected org.eclipse.jface.action.IActiongetAction(org.eclipse.ui.texteditor.ITextEditor editor, java.lang.String actionID)Returns the action registered with the given text editor.voidsetActivePage(org.eclipse.ui.IEditorPart part)Sets the active page for the editor.-
Methods inherited from class org.eclipse.ui.part.MultiPageEditorActionBarContributor
setActiveEditor
-
-
-
-
Method Detail
-
getAction
protected org.eclipse.jface.action.IAction getAction(org.eclipse.ui.texteditor.ITextEditor editor, java.lang.String actionID)Returns the action registered with the given text editor.- Parameters:
editor- An editor which shall be able to execute the specified actionactionID- An actionID for is installed at the specified editor.- Returns:
- IAction or null if editor is null.
-
setActivePage
public void setActivePage(org.eclipse.ui.IEditorPart part)
Sets the active page for the editor.- Specified by:
setActivePagein classorg.eclipse.ui.part.MultiPageEditorActionBarContributor- Parameters:
part- the part to set
-
createActions
private void createActions()
Creates the actions.
-
contributeToMenu
public void contributeToMenu(org.eclipse.jface.action.IMenuManager manager)
Contributes to the given menu.- Overrides:
contributeToMenuin classorg.eclipse.ui.part.EditorActionBarContributor- Parameters:
manager- that controls the menu
-
contributeToToolBar
public void contributeToToolBar(org.eclipse.jface.action.IToolBarManager manager)
Contributes to the given toolbar.- Overrides:
contributeToToolBarin classorg.eclipse.ui.part.EditorActionBarContributor- Parameters:
manager- the manager that controls the toolbar
-
-