Package org.eclipse.epsilon.eugenia
Class EugeniaActionDelegate
- java.lang.Object
-
- org.eclipse.epsilon.eugenia.EugeniaActionDelegate
-
- All Implemented Interfaces:
org.eclipse.ui.IActionDelegate
,org.eclipse.ui.IObjectActionDelegate
- Direct Known Subclasses:
AbstractEcoreModelValidationDelegate
,AnnotateEcoreDelegate
,ApplyPatchesDelegate
,ClearGmfFileSetAction
,Emfatic2EcoreDelegate
,FixGenModelDelegate
,FixGmfGenDelegate
,GenerateDiagramCodeDelegate
,GenerateEmfCodeDelegate
,GeneratePatchesDelegate
,GmfMap2GmfGenDelegate
,GuardedEcoreModelGenerationDelegate
,UnapplyPatchesDelegate
public abstract class EugeniaActionDelegate extends java.lang.Object implements org.eclipse.ui.IObjectActionDelegate
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
clearConsole
protected GmfFileSet
gmfFileSet
-
Constructor Summary
Constructors Constructor Description EugeniaActionDelegate()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description IEolModule
createBuiltinModule()
IEolModule
createCustomizationModule()
protected GmfFileSet
createGmfFileSetFromSelection(org.eclipse.core.resources.IResource selection)
protected void
disposeModel(IModel model)
abstract java.lang.String
getBuiltinTransformation()
abstract java.lang.String
getCustomizationTransformation()
java.util.List<IModel>
getExtraModels()
java.util.List<Variable>
getExtraVariables()
GmfFileSet
getGmfFileSet()
abstract java.util.List<IModel>
getModels()
org.eclipse.core.resources.IFile
getSelectedFile()
org.eclipse.core.resources.IResource
getSelection()
abstract EugeniaActionDelegateStep
getStep()
abstract java.lang.String
getTitle()
boolean
isApplicable()
boolean
isClearConsole()
EmfModel
loadModel(java.lang.String name, java.lang.String path, java.lang.String nsUri, boolean readOnLoad, boolean storeOnDisposal, boolean expand)
protected void
preExecuteCustomisation(IEolModule module)
void
refresh()
boolean
requiresUIThread()
void
run(org.eclipse.jface.action.IAction action)
void
runImpl(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)
EugeniaActionDelegate
setClearConsole(boolean clearConsole)
void
setExtraModels(java.util.List<IModel> extraModels)
void
setSelection(org.eclipse.core.resources.IResource selection)
-
-
-
Field Detail
-
gmfFileSet
protected GmfFileSet gmfFileSet
-
clearConsole
protected boolean clearConsole
-
-
Method Detail
-
isClearConsole
public boolean isClearConsole()
-
setClearConsole
public EugeniaActionDelegate setClearConsole(boolean clearConsole)
-
setActivePart
public void setActivePart(org.eclipse.jface.action.IAction action, org.eclipse.ui.IWorkbenchPart targetPart)
- Specified by:
setActivePart
in interfaceorg.eclipse.ui.IObjectActionDelegate
-
getGmfFileSet
public GmfFileSet getGmfFileSet()
-
getTitle
public abstract java.lang.String getTitle()
-
getStep
public abstract EugeniaActionDelegateStep getStep()
-
requiresUIThread
public boolean requiresUIThread()
-
run
public void run(org.eclipse.jface.action.IAction action)
- Specified by:
run
in interfaceorg.eclipse.ui.IActionDelegate
-
getModels
public abstract java.util.List<IModel> getModels() throws java.lang.Exception
- Throws:
java.lang.Exception
-
getSelectedFile
public org.eclipse.core.resources.IFile getSelectedFile()
-
getSelection
public org.eclipse.core.resources.IResource getSelection()
-
setSelection
public void setSelection(org.eclipse.core.resources.IResource selection)
-
createGmfFileSetFromSelection
protected GmfFileSet createGmfFileSetFromSelection(org.eclipse.core.resources.IResource selection)
-
createBuiltinModule
public IEolModule createBuiltinModule() throws EolRuntimeException
- Throws:
EolRuntimeException
-
createCustomizationModule
public IEolModule createCustomizationModule() throws EolRuntimeException
- Throws:
EolRuntimeException
-
getBuiltinTransformation
public abstract java.lang.String getBuiltinTransformation()
-
getCustomizationTransformation
public abstract java.lang.String getCustomizationTransformation()
-
getExtraVariables
public java.util.List<Variable> getExtraVariables()
-
isApplicable
public boolean isApplicable()
-
runImpl
public void runImpl(org.eclipse.jface.action.IAction action) throws java.lang.Exception
- Throws:
java.lang.Exception
-
disposeModel
protected void disposeModel(IModel model)
-
refresh
public void refresh()
-
loadModel
public EmfModel loadModel(java.lang.String name, java.lang.String path, java.lang.String nsUri, boolean readOnLoad, boolean storeOnDisposal, boolean expand) throws java.lang.Exception
- Throws:
java.lang.Exception
-
selectionChanged
public void selectionChanged(org.eclipse.jface.action.IAction action, org.eclipse.jface.viewers.ISelection selection)
- Specified by:
selectionChanged
in interfaceorg.eclipse.ui.IActionDelegate
-
getExtraModels
public java.util.List<IModel> getExtraModels()
-
setExtraModels
public void setExtraModels(java.util.List<IModel> extraModels)
-
preExecuteCustomisation
protected void preExecuteCustomisation(IEolModule module)
-
-