@OpenApiAll
public final class ModelTransformationsManager
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
addTransformation(ModelTransformationInfo info)
Adds the given model transformation in registered model transformations collection.
|
boolean |
doTransformation(ModelTransformationsWizardInformation wi,
ModelTransformationInfo mti) |
boolean |
doUpdateTransformation(ModelTransformationInfo mti_final,
Package transformedPackage_final,
boolean sync_final,
PropertyManager prop) |
static ModelTransformationsManager |
getInstance()
Returns a shared instance of model transformations manager.
|
ModelTransformationInfo |
getTransformationInfoByName(java.lang.String transformationName)
Returns transformation info by transformation name
|
java.util.Collection |
getTransformations()
Returns all registered model transformations.
|
Style |
loadTransformationProperties(Package transformedPackage,
ModelTransformationsWizardInformation wi) |
void |
loadTransformationProperties(Style style,
ModelTransformationsWizardInformation wi,
Project project) |
void |
removeTransformation(ModelTransformationInfo info)
Removes the given model transformation from registered collection of model transformations.
|
void |
saveTransformationProperties(ModelTransformationsWizardInformation wizardInformation) |
boolean |
transform(java.util.List selectedElements)
Displays transformation wizard and runs transformation
|
void |
updateProperties(PropertyManager source,
PropertyManager propertiesToUpdate) |
boolean |
updateTransformation(Package transformed)
Checks for already applied transformations, sets the right one and runs transformation update
|
boolean |
updateTransformation(Package transformed,
boolean testingMode) |
public static ModelTransformationsManager getInstance()
public void addTransformation(ModelTransformationInfo info)
info
- the give transformation to add.public void removeTransformation(ModelTransformationInfo info)
info
- the given transformation to remove.public java.util.Collection getTransformations()
public ModelTransformationInfo getTransformationInfoByName(java.lang.String transformationName)
transformationName
- transformation namepublic boolean transform(java.util.List selectedElements)
selectedElements
- list of elements to transformpublic boolean doTransformation(ModelTransformationsWizardInformation wi, ModelTransformationInfo mti)
public boolean updateTransformation(Package transformed, boolean testingMode)
public boolean updateTransformation(Package transformed)
transformed
- list of elements to transformpublic boolean doUpdateTransformation(ModelTransformationInfo mti_final, Package transformedPackage_final, boolean sync_final, @CheckForNull PropertyManager prop)
public void updateProperties(PropertyManager source, PropertyManager propertiesToUpdate)
public Style loadTransformationProperties(Package transformedPackage, ModelTransformationsWizardInformation wi)
public void loadTransformationProperties(Style style, ModelTransformationsWizardInformation wi, Project project) throws java.lang.Exception
java.lang.Exception
public void saveTransformationProperties(ModelTransformationsWizardInformation wizardInformation) throws java.lang.Exception
java.lang.Exception