org.eclipse.emf.importer.ui
Class GenModelReloadActionDelegate
java.lang.Object
org.eclipse.ui.actions.ActionDelegate
org.eclipse.emf.importer.ui.GenModelReloadActionDelegate
- All Implemented Interfaces:
- IActionDelegate, IActionDelegate2, IEditorActionDelegate
- public class GenModelReloadActionDelegate
- extends ActionDelegate
- implements IEditorActionDelegate
Reloads a GenModel file and the Ecore files behind it.
This just invokes the EMFWizard
with an existing file.
If this action is being contributed to an editor, we'll use its input as the file. Otherwise, we'll
try to obtain it from the selection.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
fixedFile
protected boolean fixedFile
file
protected IFile file
GenModelReloadActionDelegate
public GenModelReloadActionDelegate()
GenModelReloadActionDelegate
public GenModelReloadActionDelegate(IEditorPart editorPart)
dispose
public void dispose()
- Specified by:
dispose
in interface IActionDelegate2
selectionChanged
public void selectionChanged(IAction action,
ISelection selection)
- Specified by:
selectionChanged
in interface IActionDelegate
setActiveEditor
public void setActiveEditor(IAction action,
IEditorPart targetEditor)
- This is only called when being used as an editor action delegate.
- Specified by:
setActiveEditor
in interface IEditorActionDelegate
run
public void run(IAction action)
- Specified by:
run
in interface IActionDelegate
run
protected void run(IWorkbench workbench,
Shell shell,
IFile file)