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 Modifier and Type Field Description private java.lang.String
mLastSelectedTransformationName
Propertiesprivate java.lang.String
mLastSelectedTypeMap
private ModelTransformationInfo
mModelTransformationInfo
Model Transformation Infoprivate PropertyManager
mPropertyManager
private boolean
mShowWarningSourceSelectedAsDestination
private boolean
mShowWarningTransformationInPlace
private Package
mTargetPackage
Model transformation target packageprivate boolean
mTransformationPrepared
Is transformation preparedprivate java.util.Collection<ModelTransformationInfo>
mTransformations
private boolean
mTransformInPlace
Is transformation in placeprivate boolean
mTypeMapDirection
private int
mTypeMapIndex
Selected type map indexprivate TypeMapProfile[]
mTypeMapProfiles
-
Constructor Summary
Constructors Constructor Description ModelTransformationsWizardInformation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<BaseElement>
getFilteredObjects()
Returns collection of legal selected objectsjava.lang.String
getLastSelectedTransformationName()
Returns last selected transformation nameboolean
getLastSelectedTypeMapDirection()
Returns last selected type map directionModelTransformationInfo
getModelTransformationInfo()
Getter for Model Transformation InfoPropertyManager
getPropertyManager()
Returns property managerTypeMapProfile
getSelectedTypeMapProfile()
Returns selected type map profilePackage
getTargetPackage()
Getter for target packagejava.util.Collection<ModelTransformationInfo>
getTransformations()
TypeMapProfile[]
getTypeMapProfiles()
Returns loaded type map profilesboolean
isTransformationPrepared()
Checks if transformation is preparedboolean
isTransformInPlace()
Getter for transformation in placevoid
loadProperties()
Loads environmental propertiesprivate void
prepareTypeMapProfiles()
Prepares type map profiles for selectionvoid
resetPropertyManager()
Resets property managervoid
saveSettings()
Saves transformation environmental and project infovoid
setModelTransformationInfo(ModelTransformationInfo info)
Setter for Model Transformation Infovoid
setPropertyManager(PropertyManager propertyManager)
Sets property managervoid
setSelectedTypeMapProfile(TypeMapProfile tmp)
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
setTargetPackage(Package mp)
Setter for target packagevoid
setTransformationPrepared(boolean transformationPrepared)
Set transformation statusvoid
setTransformations(java.util.Collection<ModelTransformationInfo> transformations)
Setting the Transformations that will appear in the SelectTransformationTypePanelvoid
setTransformInPlace(boolean transformInPlace)
Setter for transformation in placeboolean
showWarningForSourceSelectedAsDestination()
Do we need to show warning for source selection as destinationboolean
showWarningForTransformationInPlace()
Do we need to show warning for transformation in place-
Methods inherited from class com.nomagic.magicdraw.ui.dialogs.wizards.WizardInformation
addSymbolProperties, createElementsStylesMap, getCreatableTypes, getDeprecatedSymbolPropertiesIDs, getDiagramType, getFirstDiagramType, getName, getObjects, getParent, getSelectableTypes, getSelectedRelationShips, getSymbolProperties, setCreatableTypes, setDeprecatedSymbolPropertiesIDs, setDiagramType, setDiagramType, setName, setObjects, setParent, setSelectableTypes, setSymbolProperties
-
-
-
-
Field Detail
-
mTargetPackage
@CheckForNull private Package mTargetPackage
Model transformation target package
-
mTransformInPlace
private boolean mTransformInPlace
Is transformation in place
-
mTypeMapIndex
private int mTypeMapIndex
Selected type map index
-
mTransformationPrepared
private boolean mTransformationPrepared
Is transformation prepared
-
mModelTransformationInfo
private ModelTransformationInfo mModelTransformationInfo
Model Transformation Info
-
mLastSelectedTransformationName
@CheckForNull private final java.lang.String mLastSelectedTransformationName
Properties
-
mLastSelectedTypeMap
@CheckForNull private final java.lang.String mLastSelectedTypeMap
-
mTypeMapDirection
private final boolean mTypeMapDirection
-
mPropertyManager
@CheckForNull private PropertyManager mPropertyManager
-
mTypeMapProfiles
private TypeMapProfile[] mTypeMapProfiles
-
mShowWarningTransformationInPlace
private boolean mShowWarningTransformationInPlace
-
mShowWarningSourceSelectedAsDestination
private boolean mShowWarningSourceSelectedAsDestination
-
mTransformations
private java.util.Collection<ModelTransformationInfo> mTransformations
-
-
Method Detail
-
saveSettings
public void saveSettings()
Saves transformation environmental and project info
-
loadProperties
public void loadProperties()
Loads environmental properties
-
getPropertyManager
public PropertyManager getPropertyManager()
Returns property manager- Returns:
- property manager
-
setPropertyManager
public void setPropertyManager(PropertyManager propertyManager)
Sets property manager- Parameters:
propertyManager
- properties
-
resetPropertyManager
public void resetPropertyManager()
Resets property manager
-
prepareTypeMapProfiles
private void prepareTypeMapProfiles()
Prepares type map profiles for selection
-
getTypeMapProfiles
public TypeMapProfile[] 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
public java.lang.String 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
public ModelTransformationInfo getModelTransformationInfo()
Getter for Model Transformation Info- Returns:
- Model Transformation Info
-
setModelTransformationInfo
public void setModelTransformationInfo(ModelTransformationInfo info)
Setter for Model Transformation Info- Parameters:
info
- Model Transformation Info
-
setTargetPackage
public void setTargetPackage(@CheckForNull Package mp)
Setter for target package- Parameters:
mp
- target package
-
getTargetPackage
public 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
public void setSelectedTypeMapProfile(TypeMapProfile tmp)
Set the selected type map profile.- Parameters:
tmp
- TypeMapProfile.
-
getSelectedTypeMapProfile
@CheckForNull public 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
public java.util.Collection<BaseElement> getFilteredObjects()
Returns collection of legal selected objects- Returns:
- collection of legal selected objects
-
getTransformations
public java.util.Collection<ModelTransformationInfo> getTransformations()
-
setTransformations
public void setTransformations(java.util.Collection<ModelTransformationInfo> transformations)
Setting the Transformations that will appear in the SelectTransformationTypePanel- Parameters:
transformations
- a collection of ModelTransformationInfos
-
-