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 IEditorPartactiveEditorPartThis keeps track of the active editor.protected de.uka.ipd.sdq.featureinstance.InstanceValidateActionmyValidateprotected ISelectionProviderselectionProviderThis 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 voidaddGlobalActions(IMenuManager menuManager)This inserts global actions before the "additions-end" separator.voidcontributeToMenu(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.voidfillContextMenu(IMenuManager manager)protected booleanremoveAllReferencesOnDelete()This ensures that a delete action will clean up all references to deleted objects.voidselectionChanged(SelectionChangedEvent event)voidsetActiveEditor(IEditorPart part)When the active editor changes, this remembers the change and registers with it as a selection provider.voidsetConfiguration(Configuration config)Setter for the Configuration object needed in the validationvoidsetShell(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:
contributeToMenuin 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:
setActiveEditorin interfaceIEditorActionBarContributor- Overrides:
setActiveEditorin classEditingDomainActionBarContributor- Generated class or method.
-
selectionChanged
public void selectionChanged(SelectionChangedEvent event)
- Specified by:
selectionChangedin interfaceISelectionChangedListener
-
addGlobalActions
protected void addGlobalActions(IMenuManager menuManager)
This inserts global actions before the "additions-end" separator.- Overrides:
addGlobalActionsin classEditingDomainActionBarContributor- Generated class or method.
-
removeAllReferencesOnDelete
protected boolean removeAllReferencesOnDelete()
This ensures that a delete action will clean up all references to deleted objects.- Overrides:
removeAllReferencesOnDeletein classEditingDomainActionBarContributor- Generated class or method.
-
-