Class AbstractContributeWizardsAction

  • All Implemented Interfaces:
    java.util.EventListener, org.eclipse.jface.action.IMenuCreator, org.eclipse.swt.events.MenuListener, org.eclipse.swt.internal.SWTEventListener, org.eclipse.ui.IActionDelegate, org.eclipse.ui.IObjectActionDelegate
    Direct Known Subclasses:
    ContributeEmfWizardsAction, ContributeGmfWizardsAction

    public abstract class AbstractContributeWizardsAction
    extends java.lang.Object
    implements org.eclipse.ui.IObjectActionDelegate, org.eclipse.jface.action.IMenuCreator, org.eclipse.swt.events.MenuListener
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.eclipse.jface.viewers.ISelection selection  
      protected org.eclipse.ui.IWorkbenchPart targetPart  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      void dispose()  
      protected void execute​(org.eclipse.emf.common.command.Command command)  
      protected abstract org.eclipse.emf.edit.domain.EditingDomain getEditingDomain()  
      protected abstract org.eclipse.emf.ecore.EObject getEObject​(java.lang.Object selected)  
      org.eclipse.swt.widgets.Menu getMenu​(org.eclipse.swt.widgets.Control parent)  
      org.eclipse.swt.widgets.Menu getMenu​(org.eclipse.swt.widgets.Menu parent)  
      protected abstract WorkbenchPartRefresher getWorkbenchPartRefresher()  
      void menuHidden​(org.eclipse.swt.events.MenuEvent e)  
      void menuShown​(org.eclipse.swt.events.MenuEvent e)  
      void run​(org.eclipse.jface.action.IAction action)  
      void selectionChanged​(org.eclipse.jface.action.IAction action, org.eclipse.jface.viewers.ISelection selection)  
      void setActivePart​(org.eclipse.jface.action.IAction action, org.eclipse.ui.IWorkbenchPart targetPart)  
      • Methods inherited from class java.lang.Object

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

      • selection

        protected org.eclipse.jface.viewers.ISelection selection
      • targetPart

        protected org.eclipse.ui.IWorkbenchPart targetPart
    • Constructor Detail

      • AbstractContributeWizardsAction

        public AbstractContributeWizardsAction()
        Constructor for ContributeWizardsAction.
    • Method Detail

      • setActivePart

        public void setActivePart​(org.eclipse.jface.action.IAction action,
                                  org.eclipse.ui.IWorkbenchPart targetPart)
        Specified by:
        setActivePart in interface org.eclipse.ui.IObjectActionDelegate
        See Also:
        IObjectActionDelegate.setActivePart(IAction, IWorkbenchPart)
      • run

        public void run​(org.eclipse.jface.action.IAction action)
        Specified by:
        run in interface org.eclipse.ui.IActionDelegate
        See Also:
        IActionDelegate.run(IAction)
      • selectionChanged

        public void selectionChanged​(org.eclipse.jface.action.IAction action,
                                     org.eclipse.jface.viewers.ISelection selection)
        Specified by:
        selectionChanged in interface org.eclipse.ui.IActionDelegate
        See Also:
        IActionDelegate.selectionChanged(IAction, ISelection)
      • dispose

        public void dispose()
        Specified by:
        dispose in interface org.eclipse.jface.action.IMenuCreator
      • getMenu

        public org.eclipse.swt.widgets.Menu getMenu​(org.eclipse.swt.widgets.Menu parent)
        Specified by:
        getMenu in interface org.eclipse.jface.action.IMenuCreator
      • getMenu

        public org.eclipse.swt.widgets.Menu getMenu​(org.eclipse.swt.widgets.Control parent)
        Specified by:
        getMenu in interface org.eclipse.jface.action.IMenuCreator
      • menuHidden

        public void menuHidden​(org.eclipse.swt.events.MenuEvent e)
        Specified by:
        menuHidden in interface org.eclipse.swt.events.MenuListener
      • menuShown

        public void menuShown​(org.eclipse.swt.events.MenuEvent e)
        Specified by:
        menuShown in interface org.eclipse.swt.events.MenuListener
      • getEObject

        protected abstract org.eclipse.emf.ecore.EObject getEObject​(java.lang.Object selected)
      • getEditingDomain

        protected abstract org.eclipse.emf.edit.domain.EditingDomain getEditingDomain()
      • execute

        protected void execute​(org.eclipse.emf.common.command.Command command)