Class PathVariablesOptionsGroup
- java.lang.Object
-
- com.nomagic.magicdraw.core.options.OptionsGroup
-
- com.nomagic.magicdraw.core.options.AbstractPropertyOptionsGroup
-
- com.nomagic.magicdraw.core.options.VersionedOptionsGroup
-
- com.nomagic.magicdraw.core.options.PathVariablesOptionsGroup
-
- All Implemented Interfaces:
java.lang.Cloneable
@OpenApi public class PathVariablesOptionsGroup extends com.nomagic.magicdraw.core.options.VersionedOptionsGroup
Path variables options group.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ID
private static java.lang.String
IGNORED_VARIABLES
private static java.lang.String[]
INVISIBLE
private java.util.List<PathVariable>
mPathVariables
Cached path variables-
Fields inherited from class com.nomagic.magicdraw.core.options.VersionedOptionsGroup
CURRENT_EXPORTER_VERSION
-
Fields inherited from class com.nomagic.magicdraw.core.options.OptionsGroup
ICON_ENVIRONMENT_OPTIONS
-
-
Constructor Summary
Constructors Constructor Description PathVariablesOptionsGroup()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addIgnoredVariable(java.lang.String variable)
void
addPathVariable(PathVariable variable)
com.nomagic.magicdraw.ui.dialogs.options.BaseOptionsPanel
createOptionsPanel()
Creates options panel for editing the properties.private static java.lang.String
formatPropertyString(PathVariable pathVariable)
com.nomagic.ui.banners.Banner
getBanner()
private java.lang.String[]
getIgnoredVariables()
Style
getOptionsToSave()
java.util.Collection<PathVariable>
getPathVariables()
Get path variables.java.lang.String[]
getVariables()
boolean
isIgnoredVariable(java.lang.String variable)
boolean
isSuggestUsePathVariables()
static PathVariable
parsePropertyString(java.lang.String pathVariable)
private void
removeIgnoredVariables(java.lang.String[] variables)
void
setDefaultValues()
Sets default values for the properties contained in this group.private void
setIgnoredVariables(java.lang.String[] ignored)
void
setPathVariables(java.util.Collection<PathVariable> pathVariables)
void
setSuggestUsePathVariables(boolean value)
void
setVariables(java.lang.String[] variables)
-
Methods inherited from class com.nomagic.magicdraw.core.options.VersionedOptionsGroup
afterLoad, beforeLoad, getExporterVersion, isExporterVersionEarlier, isExporterVersionEarlier, loadOptions
-
Methods inherited from class com.nomagic.magicdraw.core.options.AbstractPropertyOptionsGroup
addInvisibleProperty, addProperty, addProperty, addProperty, clone, createDefault, createOptions, fixProperty, getCopy, getOptions, getProperty, getVisibleOptions, hasVisibleOptions, removeProperty, setOptions, setPropertiesInvisible, setPropertyInvisible
-
Methods inherited from class com.nomagic.magicdraw.core.options.OptionsGroup
add, afterSave, firstInit, getChildren, getGroupIcon, getIcon, getId, getName, getParent, isEnabled, isVisible, remove, resetCachedValues, setEnabled, setVisible, sortChildren
-
-
-
-
Field Detail
-
ID
public static final java.lang.String ID
- See Also:
- Constant Field Values
-
IGNORED_VARIABLES
private static final java.lang.String IGNORED_VARIABLES
- See Also:
- Constant Field Values
-
INVISIBLE
private static final java.lang.String[] INVISIBLE
-
mPathVariables
private java.util.List<PathVariable> mPathVariables
Cached path variables
-
-
Method Detail
-
createOptionsPanel
public com.nomagic.magicdraw.ui.dialogs.options.BaseOptionsPanel createOptionsPanel()
Description copied from class:OptionsGroup
Creates options panel for editing the properties.- Returns:
- created options panel.
-
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 classcom.nomagic.magicdraw.core.options.VersionedOptionsGroup
-
getVariables
public java.lang.String[] getVariables()
-
getPathVariables
@OpenApi public java.util.Collection<PathVariable> getPathVariables()
Get path variables.- Returns:
- path variables.
-
setVariables
public void setVariables(java.lang.String[] variables)
-
setPathVariables
public void setPathVariables(java.util.Collection<PathVariable> pathVariables)
-
formatPropertyString
private static java.lang.String formatPropertyString(PathVariable pathVariable)
-
parsePropertyString
public static PathVariable parsePropertyString(java.lang.String pathVariable)
-
addPathVariable
@OpenApi public void addPathVariable(PathVariable variable)
-
isSuggestUsePathVariables
public boolean isSuggestUsePathVariables()
-
setSuggestUsePathVariables
public void setSuggestUsePathVariables(boolean value)
-
setIgnoredVariables
private void setIgnoredVariables(java.lang.String[] ignored)
-
getIgnoredVariables
private java.lang.String[] getIgnoredVariables()
-
addIgnoredVariable
public void addIgnoredVariable(java.lang.String variable)
-
removeIgnoredVariables
private void removeIgnoredVariables(java.lang.String[] variables)
-
isIgnoredVariable
public boolean isIgnoredVariable(java.lang.String variable)
-
getOptionsToSave
public Style getOptionsToSave()
- Overrides:
getOptionsToSave
in classcom.nomagic.magicdraw.core.options.VersionedOptionsGroup
-
getBanner
public com.nomagic.ui.banners.Banner getBanner()
-
-