Class AbstractObjectActionDelegate
- java.lang.Object
-
- org.eclipse.epsilon.common.dt.actions.AbstractObjectActionDelegate
-
- All Implemented Interfaces:
org.eclipse.ui.IActionDelegate
,org.eclipse.ui.IObjectActionDelegate
- Direct Known Subclasses:
CheckModelAction
,ExecuteMigrationStrategy
,GenerateDebugInformation
,GenerateHutn
,GenerateModelAction
,RestoreBackup
,ToggleNatureAction
public abstract class AbstractObjectActionDelegate extends java.lang.Object implements org.eclipse.ui.IObjectActionDelegate
-
-
Field Summary
Fields Modifier and Type Field Description protected org.eclipse.jface.viewers.ISelection
selection
-
Constructor Summary
Constructors Constructor Description AbstractObjectActionDelegate()
-
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)
-
-
-
Method Detail
-
setActivePart
public void setActivePart(org.eclipse.jface.action.IAction action, org.eclipse.ui.IWorkbenchPart targetPart)
- Specified by:
setActivePart
in interfaceorg.eclipse.ui.IObjectActionDelegate
-
selectionChanged
public void selectionChanged(org.eclipse.jface.action.IAction action, org.eclipse.jface.viewers.ISelection selection)
- Specified by:
selectionChanged
in interfaceorg.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 interfaceorg.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
-
-