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
FieldsModifier and TypeFieldDescriptionprotected IEditorPartThis keeps track of the active editor.protected de.uka.ipd.sdq.featureinstance.InstanceValidateActionprotected ISelectionProviderThis 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
ConstructorsConstructorDescriptionThis creates an instance of the contributor. -
Method Summary
Modifier and TypeMethodDescriptionprotected 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 booleanThis ensures that a delete action will clean up all references to deleted objects.voidvoidsetActiveEditor(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 validationvoidSetter 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, updateMethods 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:
contributeToMenuin 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:
setActiveEditorin interfaceIEditorActionBarContributor- Overrides:
setActiveEditorin classEditingDomainActionBarContributor- Generated class or method.
-
selectionChanged
- Specified by:
selectionChangedin interfaceISelectionChangedListener
-
addGlobalActions
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.
-