|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.core.model.xtend.transformation.xtend.XtendTransformationFramework
XtendTransformationContext
instead.
public class XtendTransformationFramework
An implementation of the ITransformationFramework interface for the use with the Xtend framework. FIXME this class depends on a GMF utility class; after it has been removed, the dependency to core.model.gmf should be deleted
Constructor Summary | |
---|---|
XtendTransformationFramework()
Deprecated. Creates a new Xtend component. |
Method Summary | |
---|---|
List<Object> |
createParameterMapping(List<EObject> parametersToMap,
String... parameter)
Deprecated. Creates a mapping between the selected diagram elements and the given list of formal parameters. |
Object |
executeTransformation()
Deprecated. Executes a transformation. |
String |
getFileExtension()
Deprecated. The default file extension for Xtend is 'ext'. |
boolean |
initializeTransformation(String fileName,
String operation,
String... basePackages)
Deprecated. Initializes a transformation using the XtendFacade. |
List<AbstractTransformation> |
parseTransformations(URL fileName,
boolean inplaceOnly)
Deprecated. Parses a transformation file and returns the existing transformations. |
void |
reset()
Deprecated. Resets the framework. |
boolean |
setParameters(List<EObject> parametersToMap,
String... parameter)
Deprecated. Sets the transformation parameters by matching the current selection with the given list of types. |
void |
setParameters(Object[] parameter)
Deprecated. Sets the actual parameters. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XtendTransformationFramework()
Method Detail |
---|
public void setParameters(Object[] parameter)
setParameters
in interface ITransformationFramework
parameter
- The parameters.public List<Object> createParameterMapping(List<EObject> parametersToMap, String... parameter)
createParameterMapping
in interface ITransformationFramework
parametersToMap
- The list of parameters that should be mapped. If this is null, the parameters are
retrieved from the current selectionparameter
- The list of formal parameters
public boolean setParameters(List<EObject> parametersToMap, String... parameter)
setParameters
in interface ITransformationFramework
parametersToMap
- The list of parameters that should be mapped. If this is null, the parameters are
retrieved from the current selectionparameter
- The list of parameter types.
public void reset()
reset
in interface ITransformationFramework
public boolean initializeTransformation(String fileName, String operation, String... basePackages)
initializeTransformation
in interface ITransformationFramework
fileName
- The extension file nameoperation
- The extension to executebasePackages
- The class name of the editors EPackage
public Object executeTransformation() throws TransformException
executeTransformation
in interface ITransformationFramework
TransformException
- in case the transformation failspublic List<AbstractTransformation> parseTransformations(URL fileName, boolean inplaceOnly)
parseTransformations
in interface ITransformationFramework
fileName
- a URL to the transformation fileinplaceOnly
- indicates if only in-place transformations should be parsed. If this flag is set
to 'false' in-place transformations will be ignored!
public String getFileExtension()
getFileExtension
in interface ITransformationFramework
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |