org.eclipse.emf.importer.ui
Class GenModelReloadActionDelegate

java.lang.Object
  extended byorg.eclipse.ui.actions.ActionDelegate
      extended byorg.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.


Field Summary
protected  IFile file
           
protected  boolean fixedFile
           
 
Constructor Summary
GenModelReloadActionDelegate()
           
GenModelReloadActionDelegate(IEditorPart editorPart)
           
 
Method Summary
 void dispose()
           
 void run(IAction action)
           
protected  void run(IWorkbench workbench, Shell shell, IFile file)
           
 void selectionChanged(IAction action, ISelection selection)
           
 void setActiveEditor(IAction action, IEditorPart targetEditor)
          This is only called when being used as an editor action delegate.
 
Methods inherited from class org.eclipse.ui.actions.ActionDelegate
init, runWithEvent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fixedFile

protected boolean fixedFile

file

protected IFile file
Constructor Detail

GenModelReloadActionDelegate

public GenModelReloadActionDelegate()

GenModelReloadActionDelegate

public GenModelReloadActionDelegate(IEditorPart editorPart)
Method Detail

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)

Copyright 2001-2004 IBM Corporation and others.
All Rights Reserved.