Class ProjectOptions
java.lang.Object
com.nomagic.magicdraw.uml.MDElementImpl
com.nomagic.magicdraw.core.options.ProjectOptions
- All Implemented Interfaces:
BaseElement
,MDElement
,PropertyChangeListener
,Serializable
,Cloneable
,Comparable
,EventListener
@OpenApiAll
public class ProjectOptions
extends com.nomagic.magicdraw.uml.MDElementImpl
implements Serializable, PropertyChangeListener
This class provides access and storage of project options.
Most of the project options have convenience setters/getters.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
static enum
static enum
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Real time validation group namestatic final String
Browser groupstatic final String
Collaboration group namestatic final String
static final String
static final String
static final String
static final String
static final String
Dependency checker group name.static final String
static final List
static final String
Diagrams group namestatic final String
static final int
Deprecated.static final String
Element hiding group namestatic final String
static final String
General group namestatic final int
static final int
static final int
static final String
static final String
static final List
static final String
Locking group namestatic final int
Deprecated.static final int
Deprecated.static final String
Numbering group name.static final String
Options lock event property name.static final String
The name of the manager of not visible properties that affect only one user in multi-user environment.static final String
The name of the manager of visible properties that affect only one user in multi-user environmentstatic final String
static final String
The name of the manager that contains user editable properties in Project options dialog.static final String
The name of the manager of not visible properties in Project options dialog.static final String
Qualified is calculated using named elements up to the project root - "Data"static final String
Qualified is calculated using named elements up to the nearest "Model" element or package with applied stereotype "ModelLibrary"static final String
Qualified is calculated using named elements up to the nearest "Model" elementstatic final List
Collection of all possible qualified name display style modes.static final String
Qualified is calculated using named elements up to the nearest package with applied stereotype "ModelLibrary"static final String
static final String
static final String
static final String
static final String
Deprecated.option no longer existsstatic final String
Deprecated.option no longer existsstatic final List
Deprecated.options no longer existsstatic final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Method accepts visitor, and calls method visit<class name>(this) of visitor .static void
addConfigurator
(ProjectOptionsConfigurator configurator) Add project options configuratorvoid
addHiddenBrowserTree
(String treeID) void
addInvisibleProperty
(Property property) Adds invisible property that affects all users in multi user environment.void
addModuleDirectory
(String directory) Adds directory to project module directories.void
addPersonalVisibleProperty
(Property property) Adds personal visible property that affects one user in multi user environmentvoid
addProperty
(String manager, Property p) Adds propertyvoid
addToProjectSpellingIgnoreList
(String newTextToBeIgnored) void
void
applyModifiedModelElementStyle
(Style modelElementStyle) Applies user modified values to model element styleboolean
Gets the CHANGE_OWNERSHIP_FOR_NAVIGABILITY property valuevoid
checkAndAddModuleDirectory
(String directory) Adds directory to project module directories if it was not added yetstatic void
configureLoadedOptions
(ProjectOptions options) Returns default model element values.static ProjectOptions
createDefaultProjectOptions
(Project project) Create default options for a given projectFast method.Returns Apply Property Image propertyGets types that are filtered (not shown) in browser.com.nomagic.magicdraw.core.project.options.CommonProjectOptions
Decimal places property to render the number (double/float) property in table and specificationReturns dependency checker severity level.Returns diagram context mode for projectDeprecated.Gets diagramViewStyle from the ProjectOptions.Getter for browser bounds.Get favorite hyperlinks.Returns default model element values with modified values.static Map<Collection<String>,
Group> Gets ignored diagram aspectsGets ignored passive validation rulesReturn collection of ignored constraints.int
Package[]
Gets invisible property that affects all users in multi user environment.Deprecated.useProjectSpecificLocationRegister
to store and retrieve this informationGet last selected module path.boolean
The directory last accessed for XPDL importReturns user name of lock view filter.getManager
(String name) Returns the manager for properties.Gets minimal severity which produces warning after pre-commit validation.Get minimal severity which prohibits commit after pre-commit validation.Returns default model element values.getModulesDirectories
(boolean resolvePathVariables) Returns modules paths.Gets personalOptionsStyle from the ProjectOptions.Gets personal visible property that affects one user in multi user environmentGet elements, excluded from pre-commit validation.Gets pre-commit validation suites.String[]
getProperty
(String manager, String id) Returns propertyMethod to get element hiding feature public branch synchronization mode.boolean
Deprecated.usegetQNameDisplayStyle()
instead.Gets the QNAME_DISPLAY_STYLE property value.Returns recent metaclasses for created typesint
getSecretProperty
(String key) Retrieves secret property value according given key.getStyle()
Gets style that holds two properties manager - one for visible and user editable properties, other for invisible project properties.Gets symbol style manager.int
Deprecated.Returns Tooltips Style propertyGet the Packages where autoIds are to be uniquecom.nomagic.magicdraw.core.project.options.UserProjectOptions
boolean
Gets automatic behavior creation property value.boolean
Gets automatic type creation property value.boolean
Get the state of the autoNumber Optionboolean
boolean
Gets browser visibility flagboolean
Get the value to check element id uniques in all id propertiesboolean
Returns whether check for cyclic dependencies must be performed.boolean
Get the value to check element id uniques in all id propertiesboolean
boolean
Indicates if activity parameter nodes should be displayed in diagrams.boolean
boolean
Get the value of display/hide autoId in the Browserboolean
Get the state of the display nested instances propertyboolean
boolean
Gets value of the Exclude Elements from Used Read-Only Project property in the pre-commit validation group.boolean
boolean
boolean
boolean
boolean
boolean
Determines if global package permission is set to Read-Write or Read-Onlyboolean
boolean
Returns indication that standard profiles must be ignored in dependency checking.boolean
boolean
boolean
Get the value of number lock.boolean
Determines if lock free editing is enabled in the projectboolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
Gets value of the Validate Only Locally Changed Elements property in the pre-commit validation group.void
Listens for property change event.void
readEditorWindowOptions
(com.nomagic.magicdraw.ui.editorwindows.EditorWindowOptions options) Applies corresponding PropertyManager to the given options.static void
remapGroupInUI
(Collection<String> groupsToRemap, Group newGroup) Remap properties group to a some other group in options UIstatic void
removeConfigurator
(ProjectOptionsConfigurator configurator) Remove project options configuratorvoid
removeDiagramViewOptions
(com.nomagic.magicdraw.uml.symbols.DiagramViewOptions options) Removes corresponding PropertyManager from project options.void
removeHiddenBrowserTree
(String treeID) void
setActiveValidationScope
(Element[] elements) void
void
void
Sets Apply Property Image propertyvoid
setAutomaticBehaviorCreationMode
(boolean val) Sets automatic behavior creation property value.void
setAutomaticTypeCreationMode
(boolean val) Sets automatic type creation property value.void
setAutoNumbering
(boolean value) Set AutoNumbering optionvoid
setAutoSynchronizeParametersAndArguments
(boolean value) Sets auto synchronize parameters and arguments property value.void
setBooleanProperty
(boolean value, String manager, String id, String group) void
Set types that are filtered (not shown) in browser.void
setBrowserLayout
(String rez) void
setBrowserVisible
(boolean v) Set browser visibility flagvoid
setChangeOwnershipForNavigability
(boolean value) Sets the HOW_DOT_NOTATION_FOR_ASSOCIATIONS property value.void
setCheckElementNumberUniques
(boolean value) Set the value to check element number uniquesvoid
setCheckForCyclicDependencies
(boolean value) Sets check for cyclic dependencies property value.void
setCheckIdUniques
(boolean value) Set the value to check element id uniques in all id propertiesvoid
void
setCommonProjectOptions
(com.nomagic.magicdraw.core.project.options.CommonProjectOptions commonProjectOptions) void
setCompositionInspectionSeverity
(String severity) void
setDecimalPlaces
(Integer decimalPlaces) Sets decimal places option valuevoid
Sets default project options.void
Sets check for cyclic dependencies property value.void
setDetectIllegalModelReferences
(boolean isDetectIllegalReferences) void
setDiagramContextMode
(String newValue) Sets diagram context mode for projectvoid
setDiagramInfoCustomHTML
(String value) void
setDiagramInfoKeywords
(Collection<String> keywords) void
setDiagramsLayout
(String rez) Deprecated.void
setDisableHighlightSuspended
(Collection<? extends BaseElement> elements) void
setDisplayAllActivityParameterNodesInDiagrams
(boolean displayAllActivityParameterNodesInDiagrams) Sets whether to display activity parameter nodes in diagrams.void
setDisplayAllPinsInDiagrams
(boolean displayAllPinsInDiagrams) void
setDisplayElementNumberInBrowser
(boolean value) Set the value to display/hide autoIds in the Browservoid
setDisplayNestedInstances
(boolean value) Set Display Nested instances optionvoid
void
setExcludeElementsFromReadOnlyModulesPreCommit
(boolean excludeFromUsedReadOnly) Sets value for the Exclude Elements from Used Read-Only Project property in the pre-commit validation group.void
setExcludeReadonlyElements
(boolean exclude) void
Sets full screen toolbar bounds.void
setExportedVersionChanged
(boolean value) void
void
setFavoriteElements
(List<Element> elements) void
setFavoriteHyperlinks
(List<String> urls) Set favorite hyperlinks.void
setFilterEnabled
(boolean value) void
setFilterExcludesAuxiliaryResources
(boolean value) void
setFilterHidesIrrelevantElements
(boolean value) void
setFilterShowsImportedElements
(boolean value) void
setGlobalPermission
(boolean value) Sets package permission global property value.void
setHiddenBrowserTrees
(Collection<String> trees) void
setHighlightSuspended
(boolean highlight) void
setIgnoredActiveSuites
(Package[] elements) void
setIgnoredDiagramAspects
(Stereotype[] aspects) void
void
setIgnoredPassiveValidationRules
(Constraint[] elements) void
setIgnoredPassiveValidationSuites
(Package[] elements) void
setIgnoredValidationResults
(String[] ignoredPairs) void
setIgnoredValidationRules
(Constraint[] elements) void
setIgnoreStandardProfiles
(boolean value) Sets ignore standard profiles in dependency checking property.void
setImageHeightLimit
(Integer imageHeightLimit) void
setImageWidthLimit
(Integer imageWidthLimit) void
setIndexMode
(int status) void
setIndexScope
(Package[] scope) void
setIndexScopeAll
(boolean all) void
setIndexTypes
(Collection types) void
setInvisibleProperties
(PropertyManager newManager) void
setLastDirectory
(String path) Deprecated.useProjectSpecificLocationRegister
to store and retrieve this informationvoid
setLastSelectedElement
(BaseElement element) void
Set last selected module path.void
void
setLastSelectedTypeMapProfileDirection
(boolean forward) void
void
void
void
setLayoutScenarioDiagram
(boolean value) Sets to layout scenario diagram.void
setLayoutTemplateCreationMode
(String newValue) void
setLockElementNumber
(boolean value) Set the value to lock element numbervoid
setLockFreeEditingEnabled
(boolean enabled) Enables or disables lock free editingvoid
setLocksFilterUsername
(String userName) Sets Lock view filter user namevoid
setMarkInTreeAndDiagrams
(boolean mark) void
Sets minimal severity which produces warning after pre-commit validation.void
Set minimal severity which prohibits commit after pre-commit validation.void
setModelElementStyle
(Style modelElementStyle) Sets style for default property values for all uml entities.void
setModulesDirectories
(Collection<String> collection) Sets project modules paths.void
void
setPreCommitValidationExcludedScope
(Element[] elements) Sets elements, excluded from pre-commit validation.void
setPreCommitValidationSuites
(Package[] elements) Sets validation suites for pre-commit validation.void
setProject
(Project project) Set project for the options.void
setProjectNotificationByConditions
(String pluginID, String notification) void
setPublicBranchSyncMode
(SyncMode syncMode) Element hiding public branch synchronization mode.void
setQNameDisplayAbsolute
(boolean value) Deprecated.usesetQNameDisplayStyle(String)
instead.void
setQNameDisplayStyle
(String newValue) Sets the QNAME_DISPLAY_STYLE property value.void
void
setRecentTypes
(List<Classifier> recentMetaclasses) Sets last selected metaclass for type creationvoid
setReportExtensionIndex
(int index) void
setSecretProperty
(String key, String value) Sets secret property (maps given key to given value) Secret properties are encrypted properties that are not available as plain text when project options are persisted to xml.void
setSeparateDecisionMergeAndJoinForkNotation
(boolean separateDecisionMergeAndJoinForkNotation) void
setShowDotNotationForAssociations
(boolean value) Sets the SHOW_DOT_NOTATION_FOR_ASSOCIATIONS property value.void
Sets style that holds two properties manager - one for visible and user editable properties, other for invisible project properties.void
setSuspendAutoDisplayingOfLabels
(boolean suspend) void
setSuspendAutoResizingOfShapes
(boolean suspend) void
setTimeLimitToBuild
(Integer timeLimitToBuild) void
setTipsStyle
(int st) Deprecated.void
Sets Tooltips Style propertyvoid
setTransformationDestination
(Package destination) void
setTransformationInPlace
(boolean inPlace) void
setUniqueElementNumberScope
(Element[] elements) Set the Packages where AutoIds are to be uniquevoid
setUnlockedElementRemovalInfo
(Map<String, String> unlockedElementRemovalInfo) void
setUseDiagramInfoCustomMode
(boolean value) void
setUseDiagramsAspects
(boolean use) void
setUseI18NTextInDiagrams
(boolean value) Set useI18N property for painting a text in diagramsvoid
setUserProjectOptions
(com.nomagic.magicdraw.core.project.options.UserProjectOptions userProjectOptions) void
setValidateOnlyActiveDiagrams
(boolean validateOnlyActiveDiagrams) void
setValidateOnlyLocallyChangedElementsPreCommit
(boolean validateOnlyLocallyChangedElements) Sets value for the Validate Only Locally Changed Elements property in the pre-commit validation group.void
setValidationIgnoredOption
(String value) void
setXpdlImportLocation
(String importLocation) boolean
Gets the SHOW_DOT_NOTATION_FOR_ASSOCIATIONS property valuevoid
storeEditorWindowOptions
(Collection<com.nomagic.magicdraw.ui.editorwindows.EditorWindowOptions> options, String category) Remember not empty property managersof given options.static void
Updates aBrowser
after the filtering was done through the GUI element.static void
updateBrowserAfterFilterChange
(Consumer<Browser> savedStateBrowserConsumer) Updates aBrowser
after the filtering was done through the GUI element.Methods inherited from class com.nomagic.magicdraw.uml.MDElementImpl
accept, addPropertyChangeListener, atInsert, canAdd, canAddChild, canAddChild, canAddInstance, canBeDeleted, canChangeParent, canDeleteChild, clone, compareTo, createSortKeys, dispose, firePropertyChange, generateID, getClassType, getCommandForAppending, getHumanName, getHumanType, getID, getName, getObjectParent, getProject, getProjectProvider, getResourceID, getSortKeys, hasListeners, isEditable, isParentOf, removeAllParents, removeAllPropertyChangeListeners, removePropertyChangeListener, setID, setProjectProvider, sGetID, toString
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.nomagic.magicdraw.uml.BaseElement
canAdd
-
Field Details
-
OPTIONS_LOCK
Options lock event property name.- See Also:
-
PROJECT_GENERAL_PROPERTIES
The name of the manager that contains user editable properties in Project options dialog.- See Also:
-
PROJECT_INVISIBLE_PROPERTIES
The name of the manager of not visible properties in Project options dialog.- See Also:
-
PERSONAL_INVISIBLE_PROPERTIES
The name of the manager of not visible properties that affect only one user in multi-user environment.- See Also:
-
PERSONAL_VISIBLE_PROPERTIES
The name of the manager of visible properties that affect only one user in multi-user environment- See Also:
-
STYLE_USER_PROPERTIES
- See Also:
-
STYLE_PERSONAL_PROPERTIES
- See Also:
-
STYLE_DIAGRAM_PROPERTIES
- See Also:
-
STYLE_MODEL_ELEMENT_DEFAULTS
- See Also:
-
ACTIVE_VALIDATION_GROUP
Real time validation group name- See Also:
-
VALIDATION_GROUP
- See Also:
-
PRE_COMMIT_VALIDATION_GROUP
- See Also:
-
COMPOSITION_INSPECTION_GROUP
- See Also:
-
DIAGRAM_ASPECTS_GROUP
- See Also:
-
COMPLETE_DIAGRAMS
- See Also:
-
EXPORT
- See Also:
-
CREATE_AUTOMATICALLY
- See Also:
-
DO_NOT_CREATE
- See Also:
-
DIAGRAM_CONTEXT_MODES
-
COLLABORATION_GROUP
Collaboration group name- See Also:
-
ELEMENT_HIDING_GROUP
Element hiding group name- See Also:
-
LOCKING_GROUP
Locking group name- See Also:
-
DEPENDENCY_CHECKER_GROUP
Dependency checker group name.- See Also:
-
QNAME_DISPLAY_STYLE_ABSOLUTE
Qualified is calculated using named elements up to the project root - "Data"- See Also:
-
QNAME_DISPLAY_STYLE_RELATIVE
Qualified is calculated using named elements up to the nearest package with applied stereotype "ModelLibrary"- See Also:
-
QNAME_DISPLAY_STYLE_MODEL_RELATIVE
Qualified is calculated using named elements up to the nearest "Model" element- See Also:
-
QNAME_DISPLAY_STYLE_MODEL_OR_LIBRARY_RELATIVE
Qualified is calculated using named elements up to the nearest "Model" element or package with applied stereotype "ModelLibrary"- See Also:
-
QNAME_DISPLAY_STYLE_OPTIONS
Collection of all possible qualified name display style modes. -
LAYOUT_TEMPLATE_CREATION_MODE_USAGE
- See Also:
-
LAYOUT_TEMPLATE_CREATION_MODE_DEFINITION
- See Also:
-
LAYOUT_TEMPLATE_CREATION_MODES
-
NUMBERING_GROUP
Numbering group name.- See Also:
-
BROWSER_GROUP
Browser group- See Also:
-
DIAGRAMS_GROUP
Diagrams group name- See Also:
-
GENERAL_GROUP
General group name- See Also:
-
UNIQUE_ELEMENT_NUMBER_PROJECT_SCOPE
Deprecated.option no longer exists- See Also:
-
UNIQUE_ELEMENT_NUMBER_PACKAGE_SCOPE
Deprecated.option no longer exists- See Also:
-
UNIQUE_ELEMENT_NUMBER_SCOPE_OPTIONS
Deprecated.options no longer exists -
NO_TIPS
Deprecated.Tool tips style constant. No tooltip is displayed if mouse cursor is over PresentationElement in diagram.- See Also:
-
NAME_TIPS
Deprecated.Tool tips style constant. Name as tooltip is displayed if mouse cursor is over PresentationElement in diagram.- See Also:
-
DOC_TIPS
Deprecated.Tool tips style constant. Model element documentation as tooltip is displayed if mouse cursor is over PresentationElement in diagram.- See Also:
-
INDEX_NONE
public static final int INDEX_NONE- See Also:
-
INDEX_COMMON
public static final int INDEX_COMMON- See Also:
-
INDEX_CUSTOM
public static final int INDEX_CUSTOM- See Also:
-
COMPOSITION_INSPECTION_SEVERITY_STANDARD
- See Also:
-
COMPOSITION_INSPECTION_SEVERITY_ADVANCED
- See Also:
-
COMPOSITION_INSPECTION_SEVERITY_CHOICE
-
-
Constructor Details
-
ProjectOptions
public ProjectOptions()Constructor. Creates project options with initialized defaults. Use this constructor when compatibility properties converting should be performed.
-
-
Method Details
-
remapGroupInUI
Remap properties group to a some other group in options UI- Parameters:
groupsToRemap
- groups to remapnewGroup
- new group
-
getGroupRemap
-
createDefaultProjectOptions
Create default options for a given project- Parameters:
project
- project- Returns:
- options with default settings
-
setProject
Set project for the options.- Parameters:
project
- project
-
setDefaults
public void setDefaults()Sets default project options. -
getStyle
Gets style that holds two properties manager - one for visible and user editable properties, other for invisible project properties.- Returns:
- project properties
-
setStyle
Sets style that holds two properties manager - one for visible and user editable properties, other for invisible project properties.- Parameters:
style
- project properties
-
getPersonalOptionsStyle
Gets personalOptionsStyle from the ProjectOptions. Personal options are GUI setting that are user specific in multiple user env.- Returns:
- Style object
-
getDiagramViewStyle
Gets diagramViewStyle from the ProjectOptions. Personal options are GUI setting that are user specific in multiple user env.- Returns:
- Style object
-
getSymbolStyles
Gets symbol style manager.- Returns:
- symbol style manager.
-
configureLoadedOptions
-
addModuleDirectory
Adds directory to project module directories.- Parameters:
directory
- directory to add.
-
checkAndAddModuleDirectory
Adds directory to project module directories if it was not added yet- Parameters:
directory
- directory to add.
-
setModulesDirectories
Sets project modules paths.- Parameters:
collection
- collections of String objects specifying paths to module directories.
-
getModulesDirectories
Returns modules paths.- Parameters:
resolvePathVariables
- true if path variables must be resolved (real paths returned)- Returns:
- list of String objects file paths to module dirs.
-
setTipsStyle
Deprecated.Set tooltips style.- Parameters:
st
- tips style constant.
-
getTipsStyle
Deprecated.Get tooltips style.- Returns:
- tooltip style constant.
-
accept
Description copied from interface:MDElement
Method accepts visitor, and calls method visit<class name>(this) of visitor . See Visitor pattern for more details. -
propertyChange
Listens for property change event.- Specified by:
propertyChange
in interfacePropertyChangeListener
-
updateBrowserAfterFilterChange
public static void updateBrowserAfterFilterChange() -
updateBrowserAfterFilterChange
-
setBrowserItemsTypes
Set types that are filtered (not shown) in browser.- Parameters:
v
- collection of String objects short name of class type (something likeClassTypes.getShortName(Actor.class)
).
-
getBrowserItemsTypes
Gets types that are filtered (not shown) in browser.- Returns:
- collection of String objects short name of class type (something like
ClassTypes.getShortName(Actor.class)
).
-
setBrowserVisible
public void setBrowserVisible(boolean v) Set browser visibility flag -
isBrowserVisible
public boolean isBrowserVisible()Gets browser visibility flag -
setChoosePackageLastSelection
-
getChoosePackageLastSelection
-
setDisableHighlightSuspended
-
getDisableHighlightSuspended
-
getManager
Returns the manager for properties.- Returns:
- property manager name.
- See Also:
-
getProperty
Returns property -
addProperty
Adds property -
getRecentlyOpenedWindowsIDs
-
setRecentlyOpenedWindowsIDs
-
setBrowserLayout
- Parameters:
rez
- browser layout value
-
getBrowserLayout
-
setDiagramsLayout
Deprecated. -
setEditorWindowsLayout
-
getDiagramsLayout
Deprecated. -
getEditorWindowsLayout
-
setProjectNotificationByConditions
-
getProjectNotificationsByConditions
-
setRecentTypes
Sets last selected metaclass for type creation- Parameters:
recentMetaclasses
- recent metaclasses
-
getRecentTypes
Returns recent metaclasses for created types- Returns:
- recent metaclass list
-
setLayoutBeforeFullScreen
-
setLayoutBeforeExitFullScreen
-
getLayoutBeforeFullScreen
-
getLayoutBeforeExitFullScreen
-
setExitFullScreenToolbarBounds
Sets full screen toolbar bounds.- Parameters:
bounds
- new bounds.
-
getExitFullScreenToolbarBounds
Getter for browser bounds.- Returns:
- browser bounds.
-
getAdditionalBrowserTrees
-
setAdditionalBrowserTrees
-
getHiddenBrowserTrees
-
setHiddenBrowserTrees
-
addHiddenBrowserTree
-
removeHiddenBrowserTree
-
setUseDiagramInfoCustomMode
public void setUseDiagramInfoCustomMode(boolean value) -
isUseDiagramInfoCustomMode
public boolean isUseDiagramInfoCustomMode() -
setExportedVersionChanged
public void setExportedVersionChanged(boolean value) -
isExportedVersionChanged
public boolean isExportedVersionChanged() -
setDiagramInfoCustomHTML
-
getDiagramInfoCustomHTML
-
setDiagramInfoKeywords
-
getDiagramInfoKeywords
-
setSecretProperty
Sets secret property (maps given key to given value) Secret properties are encrypted properties that are not available as plain text when project options are persisted to xml.- Parameters:
key
- key for the property.value
- value of the property.
-
getSecretProperty
Retrieves secret property value according given key. Secret properties are encrypted properties that are not available as plain text when project options are persisted to xml.- Parameters:
key
- key of the property.- Returns:
- property value.
-
setInvisibleProperties
-
setLastSelectedTransformationName
-
getLastSelectedTransformationName
-
setTransformationDestination
-
getTransformationDestination
-
setLastSelectedTypeMapProfileName
-
getLastSelectedTypeMapProfileName
-
setLastSelectedTypeMapProfileDirection
public void setLastSelectedTypeMapProfileDirection(boolean forward) -
getLastSelectedTypeMapProfileDirection
public boolean getLastSelectedTypeMapProfileDirection() -
setTransformationInPlace
public void setTransformationInPlace(boolean inPlace) -
isTransformationInPlace
public boolean isTransformationInPlace() -
setLastSelectedElement
-
getLastSelectedElement
-
setIndexMode
public void setIndexMode(int status) -
getIndexMode
public int getIndexMode() -
setIndexScopeAll
public void setIndexScopeAll(boolean all) -
isIndexScopeAll
public boolean isIndexScopeAll() -
setIndexScope
-
getIndexScope
-
setIndexTypes
-
getIndexTypes
-
setLastDirectory
Deprecated.useProjectSpecificLocationRegister
to store and retrieve this informationSets the last used project related directory.- Parameters:
path
- last dir path.
-
getReportExtensionIndex
public int getReportExtensionIndex() -
setReportExtensionIndex
public void setReportExtensionIndex(int index) -
getLastDirectory
Deprecated.useProjectSpecificLocationRegister
to store and retrieve this informationReturns the last used project related directory.- Returns:
- the path
-
addInvisibleProperty
Adds invisible property that affects all users in multi user environment.- Parameters:
property
- property
-
getInvisibleProperty
Gets invisible property that affects all users in multi user environment.- Parameters:
id
- property identifier- Returns:
- invisible property
-
addPersonalVisibleProperty
Adds personal visible property that affects one user in multi user environment- Parameters:
property
- property
-
getPersonalVisibleProperty
Gets personal visible property that affects one user in multi user environment- Parameters:
id
- property identifier- Returns:
- personal visible property
-
addConfigurator
Add project options configurator- Parameters:
configurator
- options configurator.
-
removeConfigurator
Remove project options configurator- Parameters:
configurator
- options configurator.
-
setModelElementStyle
Sets style for default property values for all uml entities.- Parameters:
modelElementStyle
- style
-
applyModifiedModelElementStyle
Applies user modified values to model element style- Parameters:
modelElementStyle
- style to retrieve modified values from
-
getFullModelElementStyle
Returns default model element values with modified values. Method is useful for full review of values.Does not return actual project model element style, used for review purposes.
- Returns:
- all modified values and all unchanged
-
getActualModelElementStyle
Fast method. Returns default model element values.- Returns:
- all modified values and some unmodified (unmodified values are not filtered)
-
getModifiedModelElementsStyle
Returns default model element values.- Returns:
- all modified values, unchanged values are filtered
-
createDefaultModelElementStyle
Returns default model element values.- Returns:
- all default values, none of them are modified
-
showDotNotationForAssociations
public boolean showDotNotationForAssociations()Gets the SHOW_DOT_NOTATION_FOR_ASSOCIATIONS property value- Returns:
- value of SHOW_DOT_NOTATION_FOR_ASSOCIATIONS property or false if such property wasn't set.
-
setShowDotNotationForAssociations
public void setShowDotNotationForAssociations(boolean value) Sets the SHOW_DOT_NOTATION_FOR_ASSOCIATIONS property value. If such property wasn't yet created, then creates one.- Parameters:
value
- boolean property value
-
setBooleanProperty
-
isDisplayAllActivityParameterNodesInDiagrams
public boolean isDisplayAllActivityParameterNodesInDiagrams()Indicates if activity parameter nodes should be displayed in diagrams.- Returns:
- true if activity parameter nodes should be displayed, false otherwise.
-
setDisplayAllActivityParameterNodesInDiagrams
public void setDisplayAllActivityParameterNodesInDiagrams(boolean displayAllActivityParameterNodesInDiagrams) Sets whether to display activity parameter nodes in diagrams.- Parameters:
displayAllActivityParameterNodesInDiagrams
- property value to set.
-
isDisplayAllPinsInDiagrams
public boolean isDisplayAllPinsInDiagrams() -
setDisplayAllPinsInDiagrams
public void setDisplayAllPinsInDiagrams(boolean displayAllPinsInDiagrams) -
isSeparateDecisionMergeAndJoinForkNotation
public boolean isSeparateDecisionMergeAndJoinForkNotation() -
setSeparateDecisionMergeAndJoinForkNotation
public void setSeparateDecisionMergeAndJoinForkNotation(boolean separateDecisionMergeAndJoinForkNotation) -
isAutoSynchronizeParametersAndArguments
public boolean isAutoSynchronizeParametersAndArguments()- Returns:
- true if parameters and arguments should be auto-synchronized.
-
isLayoutScenarioDiagram
public boolean isLayoutScenarioDiagram()- Returns:
- true if scenario diagram should be layouted each time it is opened.
-
setLayoutScenarioDiagram
public void setLayoutScenarioDiagram(boolean value) Sets to layout scenario diagram.- Parameters:
value
- value of the property.
-
setAutoSynchronizeParametersAndArguments
public void setAutoSynchronizeParametersAndArguments(boolean value) Sets auto synchronize parameters and arguments property value.- Parameters:
value
- - value of the property.
-
setGlobalPermission
public void setGlobalPermission(boolean value) Sets package permission global property value.- Parameters:
value
- - value of the property.
-
getQNameDisplayAbsolute
Deprecated.usegetQNameDisplayStyle()
instead.Gets the QNAME_DISPLAY_STYLE property value.- Returns:
- true if qualified name should be calculated starting from the project root, or false when qualified name should be calculated starting from the model library element.
-
getQNameDisplayStyle
Gets the QNAME_DISPLAY_STYLE property value.- Returns:
- string that is one of the #QNAME_DISPLAY_STYLE_OPTIONS collection elements item.
-
setQNameDisplayAbsolute
Deprecated.usesetQNameDisplayStyle(String)
instead.Sets the QNAME_DISPLAY_STYLE property value.- Parameters:
value
- true if qualified name should be calculated starting from the project root, or false when qualified name should be calculated starting from the model library element.
-
setQNameDisplayStyle
Sets the QNAME_DISPLAY_STYLE property value.- Parameters:
newValue
- one of the #QNAME_DISPLAY_STYLE_OPTIONS collection elements item, otherwise nothing happens - property remains unchanged.
-
getLayoutTemplateCreationMode
-
setLayoutTemplateCreationMode
-
getTooltipsStyle
Returns Tooltips Style property- Returns:
- selected value
-
setTooltipsStyle
Sets Tooltips Style property- Parameters:
value
- new value.
-
setIgnoredValidationResults
-
getIgnoredActiveSuites
-
getIgnoredPassiveValidationSuites
-
getIgnoredValidationRules
Return collection of ignored constraints.- Returns:
- collection of ignored constraints.
-
getIgnoredPassiveValidationRules
Gets ignored passive validation rules- Returns:
- ignored passive validation rules.
-
getIgnoredDuplicatedModules
- Returns:
- modules for which warning that they found in duplicated path is not shown.
-
setIgnoredDuplicatedModules
- Parameters:
value
- modules for which warning that they found in duplicated path is not shown.
-
setIgnoredActiveSuites
-
setIgnoredPassiveValidationSuites
-
setIgnoredValidationRules
-
setIgnoredPassiveValidationRules
-
setPublicBranchSyncMode
Element hiding public branch synchronization mode. Project and user specific option.- Parameters:
syncMode
- sync mode to set
-
getPublicBranchSyncMode
Method to get element hiding feature public branch synchronization mode.- Returns:
- returns current synchronization mode or null if mode is not applicable for this project
-
isLockFreeEditingEnabled
public boolean isLockFreeEditingEnabled()Determines if lock free editing is enabled in the project- Returns:
true
if enabled,false
otherwise
-
isGlobalEditingEnabled
public boolean isGlobalEditingEnabled()Determines if global package permission is set to Read-Write or Read-Only- Returns:
true
if Read-Write,false
if Read-Only
-
setLockFreeEditingEnabled
public void setLockFreeEditingEnabled(boolean enabled) Enables or disables lock free editing- Parameters:
enabled
-true
to enable,false
to disable
-
getActiveValidationScope
-
setActiveValidationScope
-
isFilterExcludesAuxiliaryResources
public boolean isFilterExcludesAuxiliaryResources() -
setFilterExcludesAuxiliaryResources
public void setFilterExcludesAuxiliaryResources(boolean value) -
setFilterHidesIrrelevantElements
public void setFilterHidesIrrelevantElements(boolean value) -
isFilterHidesIrrelevantElements
public boolean isFilterHidesIrrelevantElements() -
setFilterShowsImportedElements
public void setFilterShowsImportedElements(boolean value) -
isFilterShowsImportedElements
public boolean isFilterShowsImportedElements() -
setFilterEnabled
public void setFilterEnabled(boolean value) -
isFilterEnabled
public boolean isFilterEnabled() -
getFavoriteElements
-
setFavoriteElements
-
getFavoriteElementsProperty
-
setActiveValidationSeverity
-
setPassiveValidationSeverity
-
getActiveValidationSeverity
-
getPassiveValidationSeverity
-
setCompositionInspectionSeverity
-
getCompositionInspectionSeverity
-
setDetectIllegalModelReferences
public void setDetectIllegalModelReferences(boolean isDetectIllegalReferences) -
isDetectIllegalModelReferences
public boolean isDetectIllegalModelReferences() -
setValidationIgnoredOption
-
getValidationIgnoredOption
-
setMarkInTreeAndDiagrams
public void setMarkInTreeAndDiagrams(boolean mark) -
isMarkInTreeAndDiagrams
public boolean isMarkInTreeAndDiagrams() -
setExcludeReadonlyElements
public void setExcludeReadonlyElements(boolean exclude) -
isExcludeElementsFromReadOnlyModules
public boolean isExcludeElementsFromReadOnlyModules() -
setValidateOnlyActiveDiagrams
public void setValidateOnlyActiveDiagrams(boolean validateOnlyActiveDiagrams) -
isValidateOnlyActiveDiagrams
public boolean isValidateOnlyActiveDiagrams() -
setValidateOnlyLocallyChangedElementsPreCommit
public void setValidateOnlyLocallyChangedElementsPreCommit(boolean validateOnlyLocallyChangedElements) Sets value for the Validate Only Locally Changed Elements property in the pre-commit validation group.- Parameters:
validateOnlyLocallyChangedElements
- new value
-
setExcludeElementsFromReadOnlyModulesPreCommit
public void setExcludeElementsFromReadOnlyModulesPreCommit(boolean excludeFromUsedReadOnly) Sets value for the Exclude Elements from Used Read-Only Project property in the pre-commit validation group.- Parameters:
excludeFromUsedReadOnly
- new value
-
isValidateOnlyLocallyChangedElementsPreCommit
public boolean isValidateOnlyLocallyChangedElementsPreCommit()Gets value of the Validate Only Locally Changed Elements property in the pre-commit validation group.- Returns:
- true if property exists and is set to true
-
isExcludeElementsFromReadOnlyModulesPreCommit
public boolean isExcludeElementsFromReadOnlyModulesPreCommit()Gets value of the Exclude Elements from Used Read-Only Project property in the pre-commit validation group.- Returns:
- true if property exists and is set to true
-
setPreCommitValidationSuites
Sets validation suites for pre-commit validation.- Parameters:
elements
- suites
-
getPreCommitValidationSuites
Gets pre-commit validation suites.- Returns:
- suites or null, if the property does not exist
-
setPreCommitValidationExcludedScope
Sets elements, excluded from pre-commit validation. Creates the property, if it does not yet exist.- Parameters:
elements
- excluded elements
-
getPreCommitValidationExcludedScope
Get elements, excluded from pre-commit validation.- Returns:
- excluded scope
-
setMinimalSeverityProhibitingCommit
Set minimal severity which prohibits commit after pre-commit validation.- Parameters:
literal
- new severity. Null value sets the highest level - None
-
getMinimalSeverityProhibitingCommit
Get minimal severity which prohibits commit after pre-commit validation.- Returns:
- minimal severity or null, if such property does not exist
-
setMinimalSeverityProducingPreCommitWarning
Sets minimal severity which produces warning after pre-commit validation.- Parameters:
literal
- new severity. Null value sets the highest level - None
-
getMinimalSeverityProducingPreCommitWarning
Gets minimal severity which produces warning after pre-commit validation.- Returns:
- minimal severity or null, if such property does not exist
-
setLastSelectedModulePath
Set last selected module path.- Parameters:
path
- module path.
-
getLastSelectedModulePath
Get last selected module path.- Returns:
- last module path.
-
setLocksFilterUsername
Sets Lock view filter user name- Parameters:
userName
- name of user which was filtered in locks view.
-
getLocksFilterUsername
Returns user name of lock view filter.- Returns:
- name of user which was filtered in locks view.
-
afterLoad
public void afterLoad() -
addToProjectSpellingIgnoreList
-
getProjectSpellingIgnoreList
-
isCheckForCyclicDependencies
public boolean isCheckForCyclicDependencies()Returns whether check for cyclic dependencies must be performed.- Returns:
- true if checking for cyclic properties must be performed, otherwise - false.
-
setCheckForCyclicDependencies
public void setCheckForCyclicDependencies(boolean value) Sets check for cyclic dependencies property value.- Parameters:
value
- new value.
-
getDependencySeverityLevel
Returns dependency checker severity level.- Returns:
- true if checking for cyclic properties must be performed, otherwise - false.
-
setDependencySeverityLevel
Sets check for cyclic dependencies property value.- Parameters:
value
- new value.
-
getApplyPropertyImageProperty
Returns Apply Property Image property- Returns:
- selected value
-
setApplyPropertyImageProperty
Sets Apply Property Image property- Parameters:
value
- new value.
-
getDiagramContextMode
Returns diagram context mode for project- Returns:
- diagram context mode
-
setDiagramContextMode
Sets diagram context mode for project- Parameters:
newValue
- context mode
-
isIgnoreStandardProfiles
public boolean isIgnoreStandardProfiles()Returns indication that standard profiles must be ignored in dependency checking.- Returns:
- true if checking for cyclic properties must be performed, otherwise - false.
-
setIgnoreStandardProfiles
public void setIgnoreStandardProfiles(boolean value) Sets ignore standard profiles in dependency checking property.- Parameters:
value
- new value.
-
getProjectImpl
- Overrides:
getProjectImpl
in classcom.nomagic.magicdraw.uml.MDElementImpl
-
readEditorWindowOptions
@NotApi public void readEditorWindowOptions(com.nomagic.magicdraw.ui.editorwindows.EditorWindowOptions options) Applies corresponding PropertyManager to the given options.- Parameters:
options
- diagram view options
-
storeEditorWindowOptions
@NotApi public void storeEditorWindowOptions(Collection<com.nomagic.magicdraw.ui.editorwindows.EditorWindowOptions> options, @CheckForNull String category) Remember not empty property managersof given options.- Parameters:
options
- options
-
removeDiagramViewOptions
@NotApi public void removeDiagramViewOptions(com.nomagic.magicdraw.uml.symbols.DiagramViewOptions options) Removes corresponding PropertyManager from project options.- Parameters:
options
- options
-
getCommonProjectOptions
@NotApi public com.nomagic.magicdraw.core.project.options.CommonProjectOptions getCommonProjectOptions() -
setCommonProjectOptions
@NotApi public void setCommonProjectOptions(com.nomagic.magicdraw.core.project.options.CommonProjectOptions commonProjectOptions) -
getUserProjectOptions
@NotApi public com.nomagic.magicdraw.core.project.options.UserProjectOptions getUserProjectOptions() -
setUserProjectOptions
@NotApi public void setUserProjectOptions(com.nomagic.magicdraw.core.project.options.UserProjectOptions userProjectOptions) -
setAutoNumbering
public void setAutoNumbering(boolean value) Set AutoNumbering option- Parameters:
value
- true of autoNumber option is on
-
isAutoNumbering
public boolean isAutoNumbering()Get the state of the autoNumber Option- Returns:
- true if it is on
-
setDisplayNestedInstances
public void setDisplayNestedInstances(boolean value) Set Display Nested instances option- Parameters:
value
- true if to display nested instances, else false
-
isDisplayNestedInstances
public boolean isDisplayNestedInstances()Get the state of the display nested instances property- Returns:
- true if it is on
-
setDisplayElementNumberInBrowser
public void setDisplayElementNumberInBrowser(boolean value) Set the value to display/hide autoIds in the Browser- Parameters:
value
- true if autoIds are to be shown
-
setLockElementNumber
public void setLockElementNumber(boolean value) Set the value to lock element number- Parameters:
value
- true if lock numbers, else false
-
setCheckIdUniques
public void setCheckIdUniques(boolean value) Set the value to check element id uniques in all id properties- Parameters:
value
- true if to check id uniques, else false
-
setCheckElementNumberUniques
public void setCheckElementNumberUniques(boolean value) Set the value to check element number uniques- Parameters:
value
- true if to check id uniques, else false
-
isDisplayElementNumberInBrowser
public boolean isDisplayElementNumberInBrowser()Get the value of display/hide autoId in the Browser- Returns:
- true if the autoId is shown
-
isLockedElementNumber
public boolean isLockedElementNumber()Get the value of number lock.- Returns:
- true if locked, else false
-
isCheckIdUniques
public boolean isCheckIdUniques()Get the value to check element id uniques in all id properties- Returns:
- true if to check uniques, else false
-
isCheckElementNumberUniques
public boolean isCheckElementNumberUniques()Get the value to check element id uniques in all id properties- Returns:
- true if to check uniques, else false
-
getUniqueElementNumberScope
Get the Packages where autoIds are to be unique- Returns:
- a list of Packages
-
setUniqueElementNumberScope
Set the Packages where AutoIds are to be unique- Parameters:
elements
- the Packages
-
setUseI18NTextInDiagrams
public void setUseI18NTextInDiagrams(boolean value) Set useI18N property for painting a text in diagrams- Parameters:
value
- value
-
isUseI18NTextInDiagrams
public boolean isUseI18NTextInDiagrams()- Returns:
- use useI18N property for painting a text in diagrams
-
getLastSelectedXpdlImportLocation
The directory last accessed for XPDL import- Returns:
- location
-
setXpdlImportLocation
-
getFavoriteHyperlinks
Get favorite hyperlinks.- Returns:
- URLs of hyperlinks.
-
setFavoriteHyperlinks
Set favorite hyperlinks.- Parameters:
urls
- URLs of hyperlinks.
-
setUnlockedElementRemovalInfo
-
getUnlockedElementRemovalInfo
-
isUseDiagramsAspects
public boolean isUseDiagramsAspects() -
setUseDiagramsAspects
public void setUseDiagramsAspects(boolean use) -
isSuspendAutoResizingOfShapes
public boolean isSuspendAutoResizingOfShapes() -
setSuspendAutoResizingOfShapes
public void setSuspendAutoResizingOfShapes(boolean suspend) -
isSuspendAutoDisplayingOfLabels
public boolean isSuspendAutoDisplayingOfLabels() -
setSuspendAutoDisplayingOfLabels
public void setSuspendAutoDisplayingOfLabels(boolean suspend) -
isHighlightSuspended
public boolean isHighlightSuspended() -
setHighlightSuspended
public void setHighlightSuspended(boolean highlight) -
getTimeLimitToBuild
-
setTimeLimitToBuild
-
getImageHeightLimit
-
setImageHeightLimit
-
getImageWidthLimit
-
setImageWidthLimit
-
getExportPrefWhenLimitsExceeded
-
setExportPrefWhenLimitsExceeded
public void setExportPrefWhenLimitsExceeded(ProjectOptions.ExportPreferenceWhenLimitsExceeded value) -
getIgnoredDiagramAspects
Gets ignored diagram aspects- Returns:
- ignored diagram aspects
-
setIgnoredDiagramAspects
-
setAutomaticTypeCreationMode
public void setAutomaticTypeCreationMode(boolean val) Sets automatic type creation property value.- Parameters:
val
- - automatic type creation property value
-
isAutomaticTypeCreationMode
public boolean isAutomaticTypeCreationMode()Gets automatic type creation property value.- Returns:
- automatic type creation layout property value.
-
setAutomaticBehaviorCreationMode
public void setAutomaticBehaviorCreationMode(boolean val) Sets automatic behavior creation property value.- Parameters:
val
- - automatic behavior creation property value
-
isAutomaticBehaviorCreationMode
public boolean isAutomaticBehaviorCreationMode()Gets automatic behavior creation property value.- Returns:
- automatic behavior creation layout property value.
-
getDecimalPlaces
Decimal places property to render the number (double/float) property in table and specification- Returns:
- decimal places or null if decimal places rendering is off
-
setDecimalPlaces
Sets decimal places option value- Parameters:
decimalPlaces
- option, null indicates option off
-