Class BaseEmfOptionsGroup
java.lang.Object
com.nomagic.magicdraw.core.options.OptionsGroup
com.nomagic.magicdraw.core.options.AbstractPropertyOptionsGroup
com.nomagic.magicdraw.core.options.VersionedOptionsGroup
com.nomagic.magicdraw.emfuml2xmi.envoptions.BaseEmfOptionsGroup
- All Implemented Interfaces:
BaseOptions,Cloneable
- Direct Known Subclasses:
EmfOptionsGroup
@OpenApi
public abstract class BaseEmfOptionsGroup
extends com.nomagic.magicdraw.core.options.VersionedOptionsGroup
implements BaseOptions
Eclipse UML2 XMI export/import environment options.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprotected static final Stringstatic final StringAuto-export to Eclipse UML2 XMI option.static final StringAuto-export to Eclipse UML2 XMI option.static final StringAuto-export to Eclipse UML2 XMI option.Fields inherited from class com.nomagic.magicdraw.core.options.VersionedOptionsGroup
CURRENT_EXPORTER_VERSIONFields inherited from class com.nomagic.magicdraw.core.options.OptionsGroup
ICON_ENVIRONMENT_OPTIONSFields inherited from interface com.nomagic.magicdraw.emfuml2xmi.envoptions.BaseOptions
ID_EXPORT_POLICY_GENERATE_ID, ID_EXPORT_POLICY_USE_ELEMENT_ID, ID_EXPORT_POLICY_USE_SERVER_ID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final voidaddBooleanProperty(String id, String group) protected final voidaddBooleanProperty(String id, String group, boolean value) protected final voidaddChoiceProperty(String id, String[] choice, String selected, String group) voidaddProperty(Property property) Adds property to this group.protected voidafterLoad(com.nomagic.magicdraw.lic.MDVersion version, boolean pluginsLoaded) protected com.nomagic.magicdraw.emfuml2xmi.envoptions.BaseEmfOptionsGroup.BaseEmfOptionsPropertyResourceProviderGet auto-export to Eclipse UML2 XMI option.com.nomagic.ui.banners.Bannerstatic BaseEmfOptionsGroupgetBaseEMFOptions(String optionsGroupID) protected final BooleanPropertyprotected final booleanprotected final ChoicePropertyReturns icon to display with options.Get current ID export choice.getName()Gets human-readable name of options.protected static StringgetPropertyGroupName(boolean exportb, boolean importb) booleanChecks if to apply all profiles to root Model on export.booleanbooleanChekcks if ask to overwrite exported files.booleanbooleanChecks if to show warnings in Message Window on export/import.booleanChecks if move stereotype to nesting profile if stereotype is not directly contained by profile.booleanbooleanChecks if show warnings about (datatypes, metaclasses) mappings.booleanChecks if show warnings about not applied stereotypes (from the same profile).booleanCheck if show warnings about stereotype property type change.booleanChecks if stereotype keyword is used as stereotype name on import.voidloadOptions(Style style, boolean pluginsLoaded) static BaseEmfOptionsGroupregisterOptions(BaseEmfOptionsGroup options) voidsetApplyAllProfilesToRootModel(boolean apply) Set if to apply all profiles to root Model on export.voidsetAskToOverwriteExportedFiles(boolean ask) Set if ask to overwrite exported files.voidsetAutoExportOption(String choice) Set auto-export to Eclipse UML2 XMI on project save option.protected final voidsetBooleanPropertyValue(String id, boolean value) voidSets default values for the properties contained in this group.voidsetDisplayWarnings(boolean display) Set if to show warnings in Message Window on export/import.voidsetIDExportPolicy(String choice) Set ID export policyvoidsetMoveStereotypeToNestingProfile(boolean move) Set if move stereotype to nesting profile if stereotype is not directly contained by profile.voidsetPreserveIDsOnImport(boolean preserve) voidsetShowMappinWarning(boolean show) Set if show warnings about (datatypes, metaclasses) mappings.voidsetShowStereotypeFromSameWarning(boolean show) Set if show warnings about not applied stereotypes (from the same profile).voidsetShowStereotypePropertyTypeChangeWarning(boolean show) Set if show warnings about stereotype property type change.voidsetUseKeywordAsStereotypeName(boolean use) Set if stereotype keyword is used as stereotype name on import.Methods inherited from class com.nomagic.magicdraw.core.options.VersionedOptionsGroup
beforeLoad, getExporterVersion, getOptionsToSave, isExporterVersionEarlier, isExporterVersionEarlierMethods inherited from class com.nomagic.magicdraw.core.options.AbstractPropertyOptionsGroup
addInvisibleProperty, addProperty, addProperty, afterLoadAdditionalAction, clone, createDefault, createOptions, createOptionsPanel, fixProperty, getCopy, getOptions, getProperty, getVisibleOptions, hasVisibleOptions, removeProperty, setOptions, setPropertiesInvisible, setPropertyInvisibleMethods inherited from class com.nomagic.magicdraw.core.options.OptionsGroup
add, afterSave, canDisplay, firstInit, getChildren, getIcon, getId, getModelingLanguage, getParent, isEnabled, isVisible, remove, resetCachedValues, setEnabled, setVisible, sortChildren
-
Field Details
-
OPTION_EXPORT_ALWAYS
Auto-export to Eclipse UML2 XMI option.- See Also:
-
OPTION_ASK_BEFORE_EXPORT
Auto-export to Eclipse UML2 XMI option.- See Also:
-
OPTION_NEVER
Auto-export to Eclipse UML2 XMI option.- See Also:
-
MOVE_STEREOTYPE_TO_NESTING_PROFILE
- See Also:
-
EMF_OPTIONS_GROUP_ID
- See Also:
-
-
Constructor Details
-
BaseEmfOptionsGroup
-
-
Method Details
-
registerOptions
-
getBaseEMFOptions
-
getName
Description copied from class:OptionsGroupGets human-readable name of options.- Overrides:
getNamein classOptionsGroup- Returns:
- human-readable name of options.
-
loadOptions
- Overrides:
loadOptionsin classcom.nomagic.magicdraw.core.options.VersionedOptionsGroup
-
afterLoad
protected void afterLoad(com.nomagic.magicdraw.lic.MDVersion version, boolean pluginsLoaded) - Overrides:
afterLoadin classcom.nomagic.magicdraw.core.options.VersionedOptionsGroup
-
getGroupIcon
Description copied from class:OptionsGroupReturns icon to display with options.- Overrides:
getGroupIconin classOptionsGroup- Returns:
- icon to display with options.
-
getPropertyGroupName
-
setDefaultValues
public void setDefaultValues()Description copied from class:AbstractPropertyOptionsGroupSets default values for the properties contained in this group. Overriding classes should set default values to the properties.- Overrides:
setDefaultValuesin classcom.nomagic.magicdraw.core.options.VersionedOptionsGroup
-
addChoiceProperty
-
setAutoExportOption
Set auto-export to Eclipse UML2 XMI on project save option.- Specified by:
setAutoExportOptionin interfaceBaseOptions- See Also:
-
getAutoExportOption
Get auto-export to Eclipse UML2 XMI option.- Specified by:
getAutoExportOptionin interfaceBaseOptions- Returns:
- current auto-export choice.
- See Also:
-
setAskToOverwriteExportedFiles
@OpenApi public void setAskToOverwriteExportedFiles(boolean ask) Set if ask to overwrite exported files.- Specified by:
setAskToOverwriteExportedFilesin interfaceBaseOptions- Parameters:
ask- true - ask to overwrite, otherwise - overwrite without asking.
-
isAskToOverwriteExportedFiles
@OpenApi public boolean isAskToOverwriteExportedFiles()Chekcks if ask to overwrite exported files.- Specified by:
isAskToOverwriteExportedFilesin interfaceBaseOptions- Returns:
- true if ask to overwrite exported files.
-
setIDExportPolicy
Set ID export policy- Specified by:
setIDExportPolicyin interfaceBaseOptions- Parameters:
choice- choice- See Also:
-
getIDExportPolicy
Get current ID export choice.- Specified by:
getIDExportPolicyin interfaceBaseOptions- See Also:
-
setShowMappinWarning
@OpenApi public void setShowMappinWarning(boolean show) Set if show warnings about (datatypes, metaclasses) mappings.- Specified by:
setShowMappinWarningin interfaceBaseOptions
-
isShowMappinWarning
@OpenApi public boolean isShowMappinWarning()Checks if show warnings about (datatypes, metaclasses) mappings.- Specified by:
isShowMappinWarningin interfaceBaseOptions- Returns:
- true if warnings about (datatypes, metaclasses) mapping should be displayed.
-
setShowStereotypePropertyTypeChangeWarning
@OpenApi public void setShowStereotypePropertyTypeChangeWarning(boolean show) Set if show warnings about stereotype property type change.- Specified by:
setShowStereotypePropertyTypeChangeWarningin interfaceBaseOptions
-
isShowStereotypePropertyTypeChangeWarning
@OpenApi public boolean isShowStereotypePropertyTypeChangeWarning()Check if show warnings about stereotype property type change.- Specified by:
isShowStereotypePropertyTypeChangeWarningin interfaceBaseOptions- Returns:
- true if warnings about stereotype property type change is displayed.
-
setShowStereotypeFromSameWarning
@OpenApi public void setShowStereotypeFromSameWarning(boolean show) Set if show warnings about not applied stereotypes (from the same profile).- Specified by:
setShowStereotypeFromSameWarningin interfaceBaseOptions
-
isShowStereotypeFromSameWarning
@OpenApi public boolean isShowStereotypeFromSameWarning()Checks if show warnings about not applied stereotypes (from the same profile).- Specified by:
isShowStereotypeFromSameWarningin interfaceBaseOptions- Returns:
- true if warnings about not applied stereotype should be displayed.
-
setUseKeywordAsStereotypeName
@OpenApi public void setUseKeywordAsStereotypeName(boolean use) Set if stereotype keyword is used as stereotype name on import.- Specified by:
setUseKeywordAsStereotypeNamein interfaceBaseOptions
-
isUseKeywordAsStereotypeName
@OpenApi public boolean isUseKeywordAsStereotypeName()Checks if stereotype keyword is used as stereotype name on import.- Specified by:
isUseKeywordAsStereotypeNamein interfaceBaseOptions- Returns:
- true if stereotype keyword is used as stereotype name on import.
-
setDisplayWarnings
@OpenApi public void setDisplayWarnings(boolean display) Set if to show warnings in Message Window on export/import.- Specified by:
setDisplayWarningsin interfaceBaseOptions
-
isDisplayWarnings
@OpenApi public boolean isDisplayWarnings()Checks if to show warnings in Message Window on export/import.- Specified by:
isDisplayWarningsin interfaceBaseOptions- Returns:
- true if warnings shoud be displayed in Message Window.
-
setApplyAllProfilesToRootModel
@OpenApi public void setApplyAllProfilesToRootModel(boolean apply) Set if to apply all profiles to root Model on export.- Specified by:
setApplyAllProfilesToRootModelin interfaceBaseOptions- Parameters:
apply- true to apply all profiles to root Model (on export).
-
isApplyAllProfilesToRootModel
@OpenApi public boolean isApplyAllProfilesToRootModel()Checks if to apply all profiles to root Model on export.- Specified by:
isApplyAllProfilesToRootModelin interfaceBaseOptions- Returns:
- true on export all profiles will be applied to root Model.
-
setMoveStereotypeToNestingProfile
@OpenApi public void setMoveStereotypeToNestingProfile(boolean move) Set if move stereotype to nesting profile if stereotype is not directly contained by profile.- Specified by:
setMoveStereotypeToNestingProfilein interfaceBaseOptions- Parameters:
move- true move stereotype to nesting profile (on export).
-
isMoveStereotypeToNestingProfile
@OpenApi public boolean isMoveStereotypeToNestingProfile()Checks if move stereotype to nesting profile if stereotype is not directly contained by profile.- Specified by:
isMoveStereotypeToNestingProfilein interfaceBaseOptions- Returns:
- true move stereotype to nesting profile (on export).
-
isAskBeforeExport
public boolean isAskBeforeExport()- Specified by:
isAskBeforeExportin interfaceBaseOptions- Returns:
- true when after each project save user is asked if he wants to export to emf.
-
isAutoExport
public boolean isAutoExport()- Specified by:
isAutoExportin interfaceBaseOptions- Returns:
- true when after each save emf export is performed without any questions.
-
isPreserveIDsOnImport
@OpenApi public boolean isPreserveIDsOnImport()- Specified by:
isPreserveIDsOnImportin interfaceBaseOptions- Returns:
- true if preserve imported ids.
-
setPreserveIDsOnImport
@OpenApi public void setPreserveIDsOnImport(boolean preserve) -
addBooleanProperty
-
addBooleanProperty
-
addProperty
Description copied from class:AbstractPropertyOptionsGroupAdds property to this group. DescriptionID will be reset. To add property with description useAbstractPropertyOptionsGroup.addProperty(Property, String)method.- Overrides:
addPropertyin classAbstractPropertyOptionsGroup- Parameters:
property- property to be added.
-
setBooleanPropertyValue
-
getBooleanPropertyValue
-
getBooleanProperty
-
getChoice
-
createPropertyResourceProvider
protected com.nomagic.magicdraw.emfuml2xmi.envoptions.BaseEmfOptionsGroup.BaseEmfOptionsPropertyResourceProvider createPropertyResourceProvider() -
getBanner
public com.nomagic.ui.banners.Banner getBanner()- Overrides:
getBannerin classOptionsGroup
-