Class ModelTransformationsWizardInformation
java.lang.Object
com.nomagic.magicdraw.ui.dialogs.wizards.WizardInformation
com.nomagic.magicdraw.modeltransformations.ModelTransformationsWizardInformation
@OpenApiAll
public class ModelTransformationsWizardInformation
extends com.nomagic.magicdraw.ui.dialogs.wizards.WizardInformation
Model Transformations Wizard Information
-
Field Summary
Fields inherited from class com.nomagic.magicdraw.ui.dialogs.wizards.WizardInformation
DEFAULT_DEPRECATED_PROPERTIES, DEFAULT_RELATIONSHIPS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns collection of legal selected objectsReturns last selected transformation nameboolean
Returns last selected type map directionGetter for Model Transformation InfoReturns property managerReturns selected type map profileGetter for target packageReturns loaded type map profilesboolean
Checks if transformation is preparedboolean
Getter for transformation in placevoid
Loads environmental propertiesvoid
Resets property managervoid
Saves transformation environmental and project infovoid
Setter for Model Transformation Infovoid
setPropertyManager
(PropertyManager propertyManager) Sets property managervoid
Set the selected type map profile.void
setShowWarningForSourceSelectedAsDestination
(boolean show) Set show warning status for source selection as destinationvoid
setShowWarningForTransformationInPlace
(boolean show) Set show warning status for transformation in placevoid
Setter for target packagevoid
setTransformationPrepared
(boolean transformationPrepared) Set transformation statusvoid
setTransformations
(Collection<ModelTransformationInfo> transformations) Setting the Transformations that will appear in the SelectTransformationTypePanelvoid
setTransformInPlace
(boolean transformInPlace) Setter for transformation in placeboolean
Do we need to show warning for source selection as destinationboolean
Do we need to show warning for transformation in placeMethods inherited from class com.nomagic.magicdraw.ui.dialogs.wizards.WizardInformation
addSymbolProperties, createElementsStylesMap, getCreatableElementTypes, getCreatableTypes, getDeprecatedSymbolPropertiesIDs, getDiagramType, getFirstDiagramType, getName, getObjects, getParent, getSelectableTypes, getSelectedRelationships, getSymbolProperties, setCreatableElementTypes, setCreatableTypes, setDeprecatedSymbolPropertiesIDs, setDiagramType, setDiagramType, setName, setObjects, setParent, setSelectableTypes, setSymbolProperties
-
Constructor Details
-
ModelTransformationsWizardInformation
public ModelTransformationsWizardInformation()
-
-
Method Details
-
saveSettings
public void saveSettings()Saves transformation environmental and project info -
loadProperties
public void loadProperties()Loads environmental properties -
getPropertyManager
Returns property manager- Returns:
- property manager
-
setPropertyManager
Sets property manager- Parameters:
propertyManager
- properties
-
resetPropertyManager
public void resetPropertyManager()Resets property manager -
getTypeMapProfiles
Returns loaded type map profiles- Returns:
- array of type map profiles
-
getLastSelectedTypeMapDirection
public boolean getLastSelectedTypeMapDirection()Returns last selected type map direction- Returns:
- last selected type map direction
-
getLastSelectedTransformationName
Returns last selected transformation name- Returns:
- last selected transformation name
-
isTransformationPrepared
public boolean isTransformationPrepared()Checks if transformation is prepared- Returns:
- true if transformation is prepared
-
setTransformationPrepared
public void setTransformationPrepared(boolean transformationPrepared) Set transformation status- Parameters:
transformationPrepared
- true for prepared
-
getModelTransformationInfo
Getter for Model Transformation Info- Returns:
- Model Transformation Info
-
setModelTransformationInfo
Setter for Model Transformation Info- Parameters:
info
- Model Transformation Info
-
setTargetPackage
Setter for target package- Parameters:
mp
- target package
-
getTargetPackage
Getter for target package- Returns:
- target package
-
setTransformInPlace
public void setTransformInPlace(boolean transformInPlace) Setter for transformation in place- Parameters:
transformInPlace
- true if transformation in place
-
isTransformInPlace
public boolean isTransformInPlace()Getter for transformation in place- Returns:
- true if transformation in place
-
setSelectedTypeMapProfile
Set the selected type map profile.- Parameters:
tmp
- TypeMapProfile.
-
getSelectedTypeMapProfile
Returns selected type map profile- Returns:
- selected type map profile
-
showWarningForTransformationInPlace
public boolean showWarningForTransformationInPlace()Do we need to show warning for transformation in place- Returns:
- true if need to show warning
-
setShowWarningForTransformationInPlace
public void setShowWarningForTransformationInPlace(boolean show) Set show warning status for transformation in place- Parameters:
show
- warning status
-
showWarningForSourceSelectedAsDestination
public boolean showWarningForSourceSelectedAsDestination()Do we need to show warning for source selection as destination- Returns:
- true if need to show warning
-
setShowWarningForSourceSelectedAsDestination
public void setShowWarningForSourceSelectedAsDestination(boolean show) Set show warning status for source selection as destination- Parameters:
show
- warning status
-
getFilteredObjects
Returns collection of legal selected objects- Returns:
- collection of legal selected objects
-
getTransformations
-
setTransformations
Setting the Transformations that will appear in the SelectTransformationTypePanel- Parameters:
transformations
- a collection of ModelTransformationInfos
-