|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ITransformationContext
instead.
public interface ITransformationFramework
Interface for creating a bridge between a transformation framework and KIELER.
Every transformation framework that is used by the KSBasE Plug-in has to implement this
interface. The XtendTransformationFramework
class contains an implementation for the
Xtend framework.
Method Summary | |
---|---|
List<Object> |
createParameterMapping(List<EObject> parametersToMap,
String... parameter)
Deprecated. Creates the actual mapping between the selected diagram elements and the given list of formal parameters. |
Object |
executeTransformation()
Deprecated. Executes a transformation with the parameters set with the initalizeTransformation method. |
String |
getFileExtension()
Deprecated. Returns the default file extension for this framework without the leading dot. |
boolean |
initializeTransformation(String fileName,
String operation,
String... basePackages)
Deprecated. Initializes a transformation. |
List<AbstractTransformation> |
parseTransformations(URL fileName,
boolean inplaceOnly)
Deprecated. Parses a transformation file and returns the existing transformations. |
void |
reset()
Deprecated. Resets the transformation 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 transformation parameters. |
Method Detail |
---|
String getFileExtension()
Object executeTransformation() throws TransformException
TransformException
- if executing the transformation failedboolean setParameters(List<EObject> parametersToMap, String... parameter)
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.
List<Object> createParameterMapping(List<EObject> parametersToMap, String... parameter)
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
void setParameters(Object[] parameter)
parameter
- The actual parametersvoid reset()
boolean initializeTransformation(String fileName, String operation, String... basePackages)
fileName
- The transformation file nameoperation
- The operation to executebasePackages
- The class name of the editors EPackage
List<AbstractTransformation> parseTransformations(URL fileName, boolean inplaceOnly)
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!
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |