|
EGF Engine Release 0.1.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectWorkspaceModifyOperation
org.eclipse.egf.core.ui.actions.AbstractGenerateCodeOperation
public abstract class AbstractGenerateCodeOperation
This operation provides a template to perform code generation that modifies the workspace content.
| Constructor Summary | |
|---|---|
protected |
AbstractGenerateCodeOperation()
Constructor. |
| Method Summary | |
|---|---|
protected abstract boolean |
doExecute(IProgressMonitor monitor_p)
Performs the steps that are to be treated as a single logical workspace change. |
protected void |
execute(IProgressMonitor monitor_p)
|
protected GeneratorAdapterFactory |
getGeneratorAdapterFactory()
Return the generator adapter factory. |
protected String |
getModelPath()
Return the model path against the eclipse platform. |
boolean |
getResult()
Return if the Emf generation is successful or not. |
protected GenModel |
loadExistingGenModel(IPath modelFileName_p,
Collection<IEmfExtensionDescriptor> extensions_p)
Load potentially existing GenModel for given model file path. |
void |
setGeneratorAdapterFactory(GeneratorAdapterFactory generatorAdapterFactory_p)
Set the the generator adapter factory. |
void |
setModelPath(String modelPath_p)
Set the model path against the eclipse platform. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractGenerateCodeOperation()
| Method Detail |
|---|
public boolean getResult()
protected final void execute(IProgressMonitor monitor_p)
throws CoreException,
InvocationTargetException,
InterruptedException
CoreException
InvocationTargetException
InterruptedExceptionorg.eclipse.ui.actions.WorkspaceModifyOperation#execute(org.eclipse.core.runtime.IProgressMonitor)
protected abstract boolean doExecute(IProgressMonitor monitor_p)
throws CoreException,
InvocationTargetException,
InterruptedException
Subclasses must implement this method.
monitor_p -
CoreException
InvocationTargetException
InterruptedException
protected GenModel loadExistingGenModel(IPath modelFileName_p,
Collection<IEmfExtensionDescriptor> extensions_p)
modelFileName_p - extensions_p - existing EMF generated_package extensions, whether in the workspace or in target platform.
protected String getModelPath()
public void setModelPath(String modelPath_p)
modelPath_p - the modelPath to setprotected GeneratorAdapterFactory getGeneratorAdapterFactory()
public void setGeneratorAdapterFactory(GeneratorAdapterFactory generatorAdapterFactory_p)
generatorAdapterFactory_p - the generatorAdapterFactory to set
|
EGF Engine Release 0.1.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright (c) Thales Corporate Services S.A.S, 2009.
This page is made available under license. For full details see the LEGAL in the documentation book that contains this page.