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
,java.lang.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
Fields Modifier and Type Field Description static java.lang.String
OPTION_ASK_BEFORE_EXPORT
Auto-export to Eclipse UML2 XMI option.static java.lang.String
OPTION_EXPORT_ALWAYS
Auto-export to Eclipse UML2 XMI option.static java.lang.String
OPTION_NEVER
Auto-export to Eclipse UML2 XMI option.static java.lang.String
PRESERVE_IDS_DO_NOT
Preserve ID option.static java.lang.String
PRESERVE_IDS_ON_EXPORT
Preserve ID option.static java.lang.String
PRESERVE_IDS_ON_IMPORT
Preserve ID option.static java.lang.String
PRESERVE_IDS_ON_IMPORT_EXPORT
Preserve ID option.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getAutoExportOption()
Get auto-export to Eclipse UML2 XMI option.java.lang.String
getPreserveIDs()
Get preserve IDs option.boolean
isApplyAllProfilesToRootModel()
Checks if to apply all profiles to root Model on export.boolean
isAskToOverwriteExportedFiles()
Chekcks if ask to overwrite exported files.boolean
isDisplayWarnings()
Checks if to show warnings in Message Window on export/import.boolean
isMoveStereotypeToNestingProfile()
Checks if move stereotype to nesting profile if stereotype is not directly contained by profile.boolean
isShowMappinWarning()
Checks if show warnings about (datatypes, metaclasses) mappings.boolean
isShowStereotypeFromSameWarning()
Checks if show warnings about not applied stereotypes (from the same profile).boolean
isShowStereotypePropertyTypeChangeWarning()
Check if show warnings about stereotype property type change.boolean
isUseKeywordAsStereotypeName()
Checks if stereotype keyword is used as stereotype name on import.void
setApplyAllProfilesToRootModel(boolean apply)
Set if to apply all profiles to root Model on export.void
setAskToOverwriteExportedFiles(boolean ask)
Set if ask to overwrite exported files.void
setAutoExportOption(java.lang.String choice)
Set auto-export to Eclipse UML2 XMI on project save option.void
setDisplayWarnings(boolean display)
Set if to show warnings in Message Window on export/import.void
setMoveStereotypeToNestingProfile(boolean move)
Set if move stereotype to nesting profile if stereotype is not directly contained by profile.void
setPreserveIDs(java.lang.String choice)
Set preserve IDs option.void
setShowMappinWarning(boolean show)
Set if show warnings about (datatypes, metaclasses) mappings.void
setShowStereotypeFromSameWarning(boolean show)
Set if show warnings about not applied stereotypes (from the same profile).void
setShowStereotypePropertyTypeChangeWarning(boolean show)
Set if show warnings about stereotype property type change.void
setUseKeywordAsStereotypeName(boolean use)
Set if stereotype keyword is used as stereotype name on import.-
Methods inherited from class com.nomagic.magicdraw.core.options.VersionedOptionsGroup
afterLoad, beforeLoad, getExporterVersion, getOptionsToSave, isExporterVersionEarlier, isExporterVersionEarlier
-
Methods inherited from class com.nomagic.magicdraw.core.options.AbstractPropertyOptionsGroup
addInvisibleProperty, addProperty, addProperty, getOptions, getProperty, getVisibleOptions, removeProperty, setOptions, setPropertiesInvisible, setPropertyInvisible
-
Methods inherited from class com.nomagic.magicdraw.core.options.OptionsGroup
getIcon
-
-
-
-
Field Detail
-
OPTION_EXPORT_ALWAYS
@OpenApi public static final java.lang.String OPTION_EXPORT_ALWAYS
Auto-export to Eclipse UML2 XMI option.- See Also:
- Constant Field Values
-
OPTION_ASK_BEFORE_EXPORT
@OpenApi public static final java.lang.String OPTION_ASK_BEFORE_EXPORT
Auto-export to Eclipse UML2 XMI option.- See Also:
- Constant Field Values
-
OPTION_NEVER
@OpenApi public static final java.lang.String OPTION_NEVER
Auto-export to Eclipse UML2 XMI option.- See Also:
- Constant Field Values
-
PRESERVE_IDS_DO_NOT
@OpenApi public static final java.lang.String PRESERVE_IDS_DO_NOT
Preserve ID option.- See Also:
- Constant Field Values
-
PRESERVE_IDS_ON_EXPORT
@OpenApi public static final java.lang.String PRESERVE_IDS_ON_EXPORT
Preserve ID option.- See Also:
- Constant Field Values
-
PRESERVE_IDS_ON_IMPORT
@OpenApi public static final java.lang.String PRESERVE_IDS_ON_IMPORT
Preserve ID option.- See Also:
- Constant Field Values
-
PRESERVE_IDS_ON_IMPORT_EXPORT
@OpenApi public static final java.lang.String PRESERVE_IDS_ON_IMPORT_EXPORT
Preserve ID option.- See Also:
- Constant Field Values
-
-
Method Detail
-
setAutoExportOption
@OpenApi public void setAutoExportOption(java.lang.String choice)
Set auto-export to Eclipse UML2 XMI on project save option.- Specified by:
setAutoExportOption
in interfaceBaseOptions
- Parameters:
choice
-- See Also:
OPTION_ASK_BEFORE_EXPORT
,OPTION_EXPORT_ALWAYS
,OPTION_NEVER
-
getAutoExportOption
@OpenApi public java.lang.String getAutoExportOption()
Get auto-export to Eclipse UML2 XMI option.- Specified by:
getAutoExportOption
in interfaceBaseOptions
- Returns:
- current auto-export choice.
- See Also:
OPTION_ASK_BEFORE_EXPORT
,OPTION_EXPORT_ALWAYS
,OPTION_NEVER
-
setAskToOverwriteExportedFiles
@OpenApi public void setAskToOverwriteExportedFiles(boolean ask)
Set if ask to overwrite exported files.- Specified by:
setAskToOverwriteExportedFiles
in 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:
isAskToOverwriteExportedFiles
in interfaceBaseOptions
- Returns:
- true if ask to overwrite exported files.
-
setPreserveIDs
@OpenApi public void setPreserveIDs(java.lang.String choice)
Set preserve IDs option.- Specified by:
setPreserveIDs
in interfaceBaseOptions
- Parameters:
choice
-- See Also:
PRESERVE_IDS_DO_NOT
,PRESERVE_IDS_ON_EXPORT
,PRESERVE_IDS_ON_IMPORT
,PRESERVE_IDS_ON_IMPORT_EXPORT
-
getPreserveIDs
@OpenApi public java.lang.String getPreserveIDs()
Get preserve IDs option.- Specified by:
getPreserveIDs
in interfaceBaseOptions
- Returns:
- current choice.
- See Also:
PRESERVE_IDS_DO_NOT
,PRESERVE_IDS_ON_EXPORT
,PRESERVE_IDS_ON_IMPORT
,PRESERVE_IDS_ON_IMPORT_EXPORT
-
setShowMappinWarning
@OpenApi public void setShowMappinWarning(boolean show)
Set if show warnings about (datatypes, metaclasses) mappings.- Specified by:
setShowMappinWarning
in interfaceBaseOptions
- Parameters:
show
-
-
isShowMappinWarning
@OpenApi public boolean isShowMappinWarning()
Checks if show warnings about (datatypes, metaclasses) mappings.- Specified by:
isShowMappinWarning
in 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:
setShowStereotypePropertyTypeChangeWarning
in interfaceBaseOptions
- Parameters:
show
-
-
isShowStereotypePropertyTypeChangeWarning
@OpenApi public boolean isShowStereotypePropertyTypeChangeWarning()
Check if show warnings about stereotype property type change.- Specified by:
isShowStereotypePropertyTypeChangeWarning
in 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:
setShowStereotypeFromSameWarning
in interfaceBaseOptions
- Parameters:
show
-
-
isShowStereotypeFromSameWarning
@OpenApi public boolean isShowStereotypeFromSameWarning()
Checks if show warnings about not applied stereotypes (from the same profile).- Specified by:
isShowStereotypeFromSameWarning
in 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:
setUseKeywordAsStereotypeName
in interfaceBaseOptions
- Parameters:
use
-
-
isUseKeywordAsStereotypeName
@OpenApi public boolean isUseKeywordAsStereotypeName()
Checks if stereotype keyword is used as stereotype name on import.- Specified by:
isUseKeywordAsStereotypeName
in 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:
setDisplayWarnings
in interfaceBaseOptions
- Parameters:
display
-
-
isDisplayWarnings
@OpenApi public boolean isDisplayWarnings()
Checks if to show warnings in Message Window on export/import.- Specified by:
isDisplayWarnings
in 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:
setApplyAllProfilesToRootModel
in 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:
isApplyAllProfilesToRootModel
in 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:
setMoveStereotypeToNestingProfile
in 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:
isMoveStereotypeToNestingProfile
in interfaceBaseOptions
- Returns:
- true move stereotype to nesting profile (on export).
-
-