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 Details

    • OPTION_EXPORT_ALWAYS

      @OpenApi public static final String OPTION_EXPORT_ALWAYS
      Auto-export to Eclipse UML2 XMI option.
      See Also:
    • OPTION_ASK_BEFORE_EXPORT

      @OpenApi public static final String OPTION_ASK_BEFORE_EXPORT
      Auto-export to Eclipse UML2 XMI option.
      See Also:
    • OPTION_NEVER

      @OpenApi public static final String OPTION_NEVER
      Auto-export to Eclipse UML2 XMI option.
      See Also:
    • MOVE_STEREOTYPE_TO_NESTING_PROFILE

      protected static final String MOVE_STEREOTYPE_TO_NESTING_PROFILE
      See Also:
    • EMF_OPTIONS_GROUP_ID

      public static final String EMF_OPTIONS_GROUP_ID
      See Also:
  • Constructor Details

    • BaseEmfOptionsGroup

      public BaseEmfOptionsGroup(String id, String format)
  • Method Details

    • registerOptions

      public static BaseEmfOptionsGroup registerOptions(BaseEmfOptionsGroup options)
    • getBaseEMFOptions

      public static BaseEmfOptionsGroup getBaseEMFOptions(String optionsGroupID)
    • getName

      public String getName()
      Description copied from class: OptionsGroup
      Gets human-readable name of options.
      Overrides:
      getName in class OptionsGroup
      Returns:
      human-readable name of options.
    • loadOptions

      public void loadOptions(Style style, boolean pluginsLoaded)
      Overrides:
      loadOptions in class com.nomagic.magicdraw.core.options.VersionedOptionsGroup
    • afterLoad

      protected void afterLoad(com.nomagic.magicdraw.lic.MDVersion version, boolean pluginsLoaded)
      Overrides:
      afterLoad in class com.nomagic.magicdraw.core.options.VersionedOptionsGroup
    • getGroupIcon

      public Icon getGroupIcon()
      Description copied from class: OptionsGroup
      Returns icon to display with options.
      Overrides:
      getGroupIcon in class OptionsGroup
      Returns:
      icon to display with options.
    • getPropertyGroupName

      protected static String getPropertyGroupName(boolean exportb, boolean importb)
    • setDefaultValues

      public void setDefaultValues()
      Description copied from class: AbstractPropertyOptionsGroup
      Sets default values for the properties contained in this group. Overriding classes should set default values to the properties.
      Overrides:
      setDefaultValues in class com.nomagic.magicdraw.core.options.VersionedOptionsGroup
    • addChoiceProperty

      protected final void addChoiceProperty(String id, String[] choice, String selected, String group)
    • setAutoExportOption

      @OpenApi public void setAutoExportOption(String choice)
      Set auto-export to Eclipse UML2 XMI on project save option.
      Specified by:
      setAutoExportOption in interface BaseOptions
      See Also:
    • getAutoExportOption

      @OpenApi public String getAutoExportOption()
      Get auto-export to Eclipse UML2 XMI option.
      Specified by:
      getAutoExportOption in interface BaseOptions
      Returns:
      current auto-export choice.
      See Also:
    • setAskToOverwriteExportedFiles

      @OpenApi public void setAskToOverwriteExportedFiles(boolean ask)
      Set if ask to overwrite exported files.
      Specified by:
      setAskToOverwriteExportedFiles in interface BaseOptions
      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 interface BaseOptions
      Returns:
      true if ask to overwrite exported files.
    • setIDExportPolicy

      @OpenApi public void setIDExportPolicy(String choice)
      Set ID export policy
      Specified by:
      setIDExportPolicy in interface BaseOptions
      Parameters:
      choice - choice
      See Also:
    • getIDExportPolicy

      @OpenApi public String getIDExportPolicy()
      Get current ID export choice.
      Specified by:
      getIDExportPolicy in interface BaseOptions
      See Also:
    • setShowMappinWarning

      @OpenApi public void setShowMappinWarning(boolean show)
      Set if show warnings about (datatypes, metaclasses) mappings.
      Specified by:
      setShowMappinWarning in interface BaseOptions
    • isShowMappinWarning

      @OpenApi public boolean isShowMappinWarning()
      Checks if show warnings about (datatypes, metaclasses) mappings.
      Specified by:
      isShowMappinWarning in interface BaseOptions
      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 interface BaseOptions
    • isShowStereotypePropertyTypeChangeWarning

      @OpenApi public boolean isShowStereotypePropertyTypeChangeWarning()
      Check if show warnings about stereotype property type change.
      Specified by:
      isShowStereotypePropertyTypeChangeWarning in interface BaseOptions
      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 interface BaseOptions
    • isShowStereotypeFromSameWarning

      @OpenApi public boolean isShowStereotypeFromSameWarning()
      Checks if show warnings about not applied stereotypes (from the same profile).
      Specified by:
      isShowStereotypeFromSameWarning in interface BaseOptions
      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 interface BaseOptions
    • isUseKeywordAsStereotypeName

      @OpenApi public boolean isUseKeywordAsStereotypeName()
      Checks if stereotype keyword is used as stereotype name on import.
      Specified by:
      isUseKeywordAsStereotypeName in interface BaseOptions
      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 interface BaseOptions
    • isDisplayWarnings

      @OpenApi public boolean isDisplayWarnings()
      Checks if to show warnings in Message Window on export/import.
      Specified by:
      isDisplayWarnings in interface BaseOptions
      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 interface BaseOptions
      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 interface BaseOptions
      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 interface BaseOptions
      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 interface BaseOptions
      Returns:
      true move stereotype to nesting profile (on export).
    • isAskBeforeExport

      public boolean isAskBeforeExport()
      Specified by:
      isAskBeforeExport in interface BaseOptions
      Returns:
      true when after each project save user is asked if he wants to export to emf.
    • isAutoExport

      public boolean isAutoExport()
      Specified by:
      isAutoExport in interface BaseOptions
      Returns:
      true when after each save emf export is performed without any questions.
    • isPreserveIDsOnImport

      @OpenApi public boolean isPreserveIDsOnImport()
      Specified by:
      isPreserveIDsOnImport in interface BaseOptions
      Returns:
      true if preserve imported ids.
    • setPreserveIDsOnImport

      @OpenApi public void setPreserveIDsOnImport(boolean preserve)
    • addBooleanProperty

      protected final void addBooleanProperty(String id, String group)
    • addBooleanProperty

      protected final void addBooleanProperty(String id, String group, boolean value)
    • addProperty

      public void addProperty(Property property)
      Description copied from class: AbstractPropertyOptionsGroup
      Adds property to this group. DescriptionID will be reset. To add property with description use AbstractPropertyOptionsGroup.addProperty(Property, String) method.
      Overrides:
      addProperty in class AbstractPropertyOptionsGroup
      Parameters:
      property - property to be added.
    • setBooleanPropertyValue

      protected final void setBooleanPropertyValue(String id, boolean value)
    • getBooleanPropertyValue

      protected final boolean getBooleanPropertyValue(String id)
    • getBooleanProperty

      protected final BooleanProperty getBooleanProperty(String id)
    • getChoice

      protected final ChoiceProperty getChoice(String id)
    • createPropertyResourceProvider

      protected com.nomagic.magicdraw.emfuml2xmi.envoptions.BaseEmfOptionsGroup.BaseEmfOptionsPropertyResourceProvider createPropertyResourceProvider()
    • getBanner

      public com.nomagic.ui.banners.Banner getBanner()
      Overrides:
      getBanner in class OptionsGroup