Package de.uka.ipd.sdq.featureinstance
Class FeatureModelInstanceContributor
- java.lang.Object
-
- org.eclipse.ui.part.EditorActionBarContributor
-
- org.eclipse.ui.part.MultiPageEditorActionBarContributor
-
- org.eclipse.emf.edit.ui.action.EditingDomainActionBarContributor
-
- de.uka.ipd.sdq.featureinstance.FeatureModelInstanceContributor
-
- All Implemented Interfaces:
IMenuListener
,ISelectionChangedListener
,IEditorActionBarContributor
,IPropertyListener
public class FeatureModelInstanceContributor extends EditingDomainActionBarContributor implements ISelectionChangedListener
-
-
Field Summary
Fields Modifier and Type Field Description protected IEditorPart
activeEditorPart
This keeps track of the active editor.protected de.uka.ipd.sdq.featureinstance.InstanceValidateAction
myValidate
protected ISelectionProvider
selectionProvider
This keeps track of the current selection provider.-
Fields inherited from class org.eclipse.emf.edit.ui.action.EditingDomainActionBarContributor
activeEditor, ADDITIONS_LAST_STYLE, collapseAllAction, controlAction, copyAction, cutAction, deleteAction, expandAllAction, findAction, liveValidationAction, loadResourceAction, pasteAction, redoAction, revertAction, style, undoAction, validateAction
-
-
Constructor Summary
Constructors Constructor Description FeatureModelInstanceContributor()
This creates an instance of the contributor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addGlobalActions(IMenuManager menuManager)
This inserts global actions before the "additions-end" separator.void
contributeToMenu(IMenuManager menuManager)
This adds to the menu bar a menu and some separators for editor additions, as well as the sub-menus for object creation items.void
fillContextMenu(IMenuManager manager)
protected boolean
removeAllReferencesOnDelete()
This ensures that a delete action will clean up all references to deleted objects.void
selectionChanged(SelectionChangedEvent event)
void
setActiveEditor(IEditorPart part)
When the active editor changes, this remembers the change and registers with it as a selection provider.void
setConfiguration(Configuration config)
Setter for the Configuration object needed in the validationvoid
setShell(Shell shell)
Setter for the Shell object needed for the validation-result dialogs-
Methods inherited from class org.eclipse.emf.edit.ui.action.EditingDomainActionBarContributor
activate, contributeToStatusLine, contributeToToolBar, createCopyAction, createCutAction, createDeleteAction, createPasteAction, createRedoAction, createUndoAction, deactivate, getActiveEditor, init, menuAboutToShow, propertyChanged, setActivePage, setActiveView, shareGlobalActions, update
-
Methods inherited from class org.eclipse.ui.part.EditorActionBarContributor
contributeToCoolBar, dispose, getActionBars, getPage, init
-
-
-
-
Field Detail
-
activeEditorPart
protected IEditorPart activeEditorPart
This keeps track of the active editor.- Generated class or method.
-
myValidate
protected de.uka.ipd.sdq.featureinstance.InstanceValidateAction myValidate
-
selectionProvider
protected ISelectionProvider selectionProvider
This keeps track of the current selection provider.- Generated class or method.
-
-
Method Detail
-
fillContextMenu
public void fillContextMenu(IMenuManager manager)
-
contributeToMenu
public void contributeToMenu(IMenuManager menuManager)
This adds to the menu bar a menu and some separators for editor additions, as well as the sub-menus for object creation items.- Overrides:
contributeToMenu
in classEditingDomainActionBarContributor
- Generated class or method.
-
setConfiguration
public void setConfiguration(Configuration config)
Setter for the Configuration object needed in the validation- Parameters:
config
- the Configuration object
-
setShell
public void setShell(Shell shell)
Setter for the Shell object needed for the validation-result dialogs- Parameters:
shell
- the Shell object
-
setActiveEditor
public void setActiveEditor(IEditorPart part)
When the active editor changes, this remembers the change and registers with it as a selection provider.- Specified by:
setActiveEditor
in interfaceIEditorActionBarContributor
- Overrides:
setActiveEditor
in classEditingDomainActionBarContributor
- Generated class or method.
-
selectionChanged
public void selectionChanged(SelectionChangedEvent event)
- Specified by:
selectionChanged
in interfaceISelectionChangedListener
-
addGlobalActions
protected void addGlobalActions(IMenuManager menuManager)
This inserts global actions before the "additions-end" separator.- Overrides:
addGlobalActions
in classEditingDomainActionBarContributor
- Generated class or method.
-
removeAllReferencesOnDelete
protected boolean removeAllReferencesOnDelete()
This ensures that a delete action will clean up all references to deleted objects.- Overrides:
removeAllReferencesOnDelete
in classEditingDomainActionBarContributor
- Generated class or method.
-
-