Class ViewEditorActionBarContributor
- java.lang.Object
-
- org.eclipse.ui.part.EditorActionBarContributor
-
- org.eclipse.ui.part.MultiPageEditorActionBarContributor
-
- org.eclipse.emf.edit.ui.action.EditingDomainActionBarContributor
-
- org.eclipse.emf.ecp.ide.editor.view.ViewEditorActionBarContributor
-
- All Implemented Interfaces:
org.eclipse.jface.action.IMenuListener
,org.eclipse.ui.IEditorActionBarContributor
,org.eclipse.ui.IPropertyListener
public class ViewEditorActionBarContributor extends org.eclipse.emf.edit.ui.action.EditingDomainActionBarContributor
Action-bar contributor for the View Model Editor.- Since:
- 1.20
-
-
Constructor Summary
Constructors Constructor Description ViewEditorActionBarContributor()
Initializes me.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.eclipse.emf.edit.ui.action.DeleteAction
createDeleteAction()
protected <T> T
getService(java.lang.Class<T> serviceType)
Obtain a service of the given type from the view model context, if any.protected ViewModelContext
getViewModelContext()
Obtain the editor's view model context.-
Methods inherited from class org.eclipse.emf.edit.ui.action.EditingDomainActionBarContributor
activate, addGlobalActions, contributeToMenu, contributeToStatusLine, contributeToToolBar, createCopyAction, createCutAction, createPasteAction, createRedoAction, createUndoAction, deactivate, getActiveEditor, init, menuAboutToShow, propertyChanged, removeAllReferencesOnDelete, setActiveEditor, setActivePage, setActiveView, shareGlobalActions, update
-
-
-
-
Method Detail
-
createDeleteAction
protected org.eclipse.emf.edit.ui.action.DeleteAction createDeleteAction()
- Overrides:
createDeleteAction
in classorg.eclipse.emf.edit.ui.action.EditingDomainActionBarContributor
-
getService
protected <T> T getService(java.lang.Class<T> serviceType)
Obtain a service of the given type from the view model context, if any.- Type Parameters:
T
- the type of service to obtain- Parameters:
serviceType
- the type of service to obtain- Returns:
- the service, or
null
if none can be obtained
-
getViewModelContext
protected ViewModelContext getViewModelContext()
Obtain the editor's view model context.- Returns:
- the view model context, or
null
if the editor has none
-
-