Class 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
    • Field Summary

      • Fields inherited from class org.eclipse.emf.edit.ui.action.EditingDomainActionBarContributor

        activeEditor, ADDITIONS_LAST_STYLE, controlAction, copyAction, cutAction, deleteAction, loadResourceAction, pasteAction, redoAction, style, undoAction, validateAction
    • 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
      • Methods inherited from class org.eclipse.ui.part.EditorActionBarContributor

        contributeToCoolBar, dispose, getActionBars, getPage, init
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ViewEditorActionBarContributor

        public ViewEditorActionBarContributor()
        Initializes me.
    • Method Detail

      • createDeleteAction

        protected org.eclipse.emf.edit.ui.action.DeleteAction createDeleteAction()
        Overrides:
        createDeleteAction in class org.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