Class AbstractObjectActionDelegate

    • Field Summary

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

      All Methods Static Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.Object getFirstElementInSelection()  
      protected java.lang.Object getFirstElementOf​(org.eclipse.jface.viewers.ISelection selection)  
      protected static void refreshProjectContaining​(org.eclipse.core.resources.IFile file)  
      abstract 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
    • Constructor Detail

      • AbstractObjectActionDelegate

        public AbstractObjectActionDelegate()
    • 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
      • 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
      • getFirstElementOf

        protected java.lang.Object getFirstElementOf​(org.eclipse.jface.viewers.ISelection selection)
      • getFirstElementInSelection

        protected java.lang.Object getFirstElementInSelection()
      • run

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

        protected static void refreshProjectContaining​(org.eclipse.core.resources.IFile file)
                                                throws org.eclipse.core.runtime.CoreException
        Throws:
        org.eclipse.core.runtime.CoreException