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
Modifier and TypeFieldDescriptionprotected IEditorPart
This keeps track of the active editor.protected de.uka.ipd.sdq.featureinstance.InstanceValidateAction
protected ISelectionProvider
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
ConstructorDescriptionThis creates an instance of the contributor. -
Method Summary
Modifier and TypeMethodDescriptionprotected 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
This ensures that a delete action will clean up all references to deleted objects.void
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
Setter for the Shell object needed for the validation-result dialogsMethods 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 Details
-
activeEditorPart
This keeps track of the active editor.- Generated class or method.
-
myValidate
protected de.uka.ipd.sdq.featureinstance.InstanceValidateAction myValidate -
selectionProvider
This keeps track of the current selection provider.- Generated class or method.
-
-
Constructor Details
-
FeatureModelInstanceContributor
public FeatureModelInstanceContributor()This creates an instance of the contributor.- Generated class or method.
-
-
Method Details
-
fillContextMenu
-
contributeToMenu
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
Setter for the Configuration object needed in the validation- Parameters:
config
- the Configuration object
-
setShell
Setter for the Shell object needed for the validation-result dialogs- Parameters:
shell
- the Shell object
-
setActiveEditor
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
- Specified by:
selectionChanged
in interfaceISelectionChangedListener
-
addGlobalActions
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.
-