org.eclipse.gmt.weaver.transformation.util
Class TransformationUtil
java.lang.Object
org.eclipse.gmt.weaver.transformation.util.TransformationUtil
public class TransformationUtil
- extends java.lang.Object
Method Summary |
static org.eclipse.m2m.atl.core.IModel |
executeTransfo(org.eclipse.m2m.atl.core.launch.ILauncher launcher,
WeaverModelManager wManager,
WeaverXMLMetadata fileXML,
TransformationConfig tc)
executes a transformation (higher order or matching) available in the weaving graphical interface. |
static org.eclipse.m2m.atl.core.IModel |
saveNewModel(TransformationConfig tc,
org.eclipse.m2m.atl.core.IModel in,
WeaverModelManager wManager,
WeaverXMLMetadata currentXML)
Saves a new weaving model (passed by in). |
static org.eclipse.m2m.atl.core.launch.ILauncher |
setModelsMap(org.eclipse.m2m.atl.core.IModel inModel,
WeaverModelManager wManager,
boolean isMatching,
boolean hasMatchConfig,
org.eclipse.m2m.atl.core.IModel cModel,
org.eclipse.m2m.atl.core.IModel cMetamodel)
this method is also used by the global weaver editor. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TransformationUtil
public TransformationUtil()
executeTransfo
public static org.eclipse.m2m.atl.core.IModel executeTransfo(org.eclipse.m2m.atl.core.launch.ILauncher launcher,
WeaverModelManager wManager,
WeaverXMLMetadata fileXML,
TransformationConfig tc)
throws WeaverException
- executes a transformation (higher order or matching) available in the weaving graphical interface.
- Parameters:
models
- the map of modelswManager
- the model managerfileXML
- the xml file associated with the weaving model that is being editedtc
- the configuration of the transformation that will be executed
- Returns:
-
- Throws:
WeaverException
- Since:
- 1.0
saveNewModel
public static org.eclipse.m2m.atl.core.IModel saveNewModel(TransformationConfig tc,
org.eclipse.m2m.atl.core.IModel in,
WeaverModelManager wManager,
WeaverXMLMetadata currentXML)
- Saves a new weaving model (passed by in). It creates a new metadata file. The metadata file
is created based on the weaving model that is being edited (available in the model manager).
The transformation config element contain naming settings
- Parameters:
tc
- in
- wManager
-
- Returns:
setModelsMap
public static org.eclipse.m2m.atl.core.launch.ILauncher setModelsMap(org.eclipse.m2m.atl.core.IModel inModel,
WeaverModelManager wManager,
boolean isMatching,
boolean hasMatchConfig,
org.eclipse.m2m.atl.core.IModel cModel,
org.eclipse.m2m.atl.core.IModel cMetamodel)
- this method is also used by the global weaver editor. It is not put in the Weaver Util because it is sets a very specific configuration
type
- Parameters:
tc
- inModel
-
- Returns: