Class ProjectOptions
- java.lang.Object
-
- com.nomagic.magicdraw.uml.MDElementImpl
-
- com.nomagic.magicdraw.uml.ElementImpl
-
- com.nomagic.magicdraw.core.options.ProjectOptions
-
- All Implemented Interfaces:
BaseElement
,MDElement
,java.beans.PropertyChangeListener
,java.io.Serializable
,java.lang.Cloneable
,java.lang.Comparable
,java.util.EventListener
@OpenApiAll public class ProjectOptions extends ElementImpl implements java.io.Serializable, java.beans.PropertyChangeListener
This class provides access and storage of project options. Most of the project options have convenience setters/getters.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ProjectOptions.ApplyPropertyImageChoice
static interface
ProjectOptions.PropertySetter
static class
ProjectOptions.TooltipsStyleChoice
private static class
ProjectOptions.ValidationRulesProperty
private static class
ProjectOptions.ValidationSuiteProperty
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ACTIVE_VALIDATION_GROUP
Real time validation group namestatic java.lang.String
BROWSER_GROUP
Browser groupstatic java.lang.String
COLLABORATION_GROUP
Collaboration group nameprivate com.nomagic.magicdraw.core.project.options.CommonProjectOptions
commonProjectOptions
static java.lang.String
COMPLETE_DIAGRAMS
static java.lang.String
COMPOSITION_INSPECTION_GROUP
static java.lang.String
COMPOSITION_INSPECTION_SEVERITY_ADVANCED
static java.util.List<java.lang.String>
COMPOSITION_INSPECTION_SEVERITY_CHOICE
static java.lang.String
COMPOSITION_INSPECTION_SEVERITY_STANDARD
private static java.util.List<ProjectOptionsConfigurator>
configurators
static java.lang.String
CREATE_AUTOMATICALLY
private static int
DECIMAL_PLACES_DEFAULT_VALUE
default value for decimal placesstatic java.lang.String
DEPENDENCY_CHECKER_GROUP
Dependency checker group name.static java.lang.String
DIAGRAM_ASPECTS_GROUP
static java.util.List
DIAGRAM_CONTEXT_MODES
static java.lang.String
DIAGRAMS_GROUP
Diagrams group namestatic java.lang.String
DO_NOT_CREATE
static int
DOC_TIPS
Deprecated.static java.lang.String
ELEMENT_HIDING_GROUP
Element hiding group namestatic java.lang.String
GENERAL_GROUP
General group nameprivate static java.util.Map<java.util.Collection<java.lang.String>,Group>
groupRemap
static int
INDEX_COMMON
static int
INDEX_CUSTOM
static int
INDEX_NONE
private static int
KEY_LENGTH
static java.lang.String
LAYOUT_TEMPLATE_CREATION_MODE_DEFINITION
static java.lang.String
LAYOUT_TEMPLATE_CREATION_MODE_USAGE
static java.util.List
LAYOUT_TEMPLATE_CREATION_MODES
static java.lang.String
LOCKING_GROUP
Locking group namestatic int
NAME_TIPS
Deprecated.static int
NO_TIPS
Deprecated.static java.lang.String
NUMBERING_GROUP
Numbering group name.private static java.lang.String
OPTIONS_LAST_DIR
static java.lang.String
OPTIONS_LOCK
Options lock event property name.private static java.lang.String
OUTPUT_TYPE_SELECTION_PANEL_VALUE
static java.lang.String
PERSONAL_INVISIBLE_PROPERTIES
The name of the manager of not visible properties that affect only one user in multi-user environment.static java.lang.String
PERSONAL_VISIBLE_PROPERTIES
The name of the manager of visible properties that affect only one user in multi-user environmentstatic java.lang.String
PRE_COMMIT_VALIDATION_GROUP
private Project
project
static java.lang.String
PROJECT_GENERAL_PROPERTIES
The name of the manager that contains user editable properties in Project options dialog.static java.lang.String
PROJECT_INVISIBLE_PROPERTIES
The name of the manager of not visible properties in Project options dialog.static java.lang.String
QNAME_DISPLAY_STYLE_ABSOLUTE
Qualified is calculated using named elements up to the project root - "Data"static java.lang.String
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"static java.lang.String
QNAME_DISPLAY_STYLE_MODEL_RELATIVE
Qualified is calculated using named elements up to the nearest "Model" elementstatic java.util.List
QNAME_DISPLAY_STYLE_OPTIONS
Collection of all possible qualified name display style modes.static java.lang.String
QNAME_DISPLAY_STYLE_RELATIVE
Qualified is calculated using named elements up to the nearest package with applied stereotype "ModelLibrary"private byte[]
secretKey
static java.lang.String
STYLE_DIAGRAM_PROPERTIES
static java.lang.String
STYLE_MODEL_ELEMENT_DEFAULTS
static java.lang.String
STYLE_PERSONAL_PROPERTIES
static java.lang.String
STYLE_USER_PROPERTIES
static java.lang.String
UNIQUE_ELEMENT_NUMBER_PACKAGE_SCOPE
Deprecated.option no longer existsstatic java.lang.String
UNIQUE_ELEMENT_NUMBER_PROJECT_SCOPE
Deprecated.option no longer existsstatic java.util.List
UNIQUE_ELEMENT_NUMBER_SCOPE_OPTIONS
Deprecated.options no longer existsprivate com.nomagic.magicdraw.core.project.options.UserProjectOptions
userProjectOptions
static java.lang.String
VALIDATION_GROUP
private static long
WEEK_IN_MILLIS
-
Constructor Summary
Constructors Constructor Description ProjectOptions()
Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
accept(Visitor v)
Method accepts visitor, and calls method visit<class name>(this) of visitor .static void
addConfigurator(ProjectOptionsConfigurator configurator)
Add project options configuratorvoid
addHiddenBrowserTree(java.lang.String treeID)
void
addInvisibleProperty(Property property)
Adds invisible property that affects all users in multi user environment.private static void
addManager(java.lang.String name, Style style)
void
addModuleDirectory(java.lang.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(java.lang.String manager, Property p)
Adds propertyprivate void
addStringListProperty(java.lang.String manager, java.lang.String propertyID, java.lang.String[] initialValue)
void
addToProjectSpellingIgnoreList(java.lang.String newTextToBeIgnored)
void
afterLoad()
void
applyModifiedModelElementStyle(Style modelElementStyle)
Applies user modified values to model element styleboolean
changeOwnershipForNavigability()
Gets the CHANGE_OWNERSHIP_FOR_NAVIGABILITY property valuevoid
checkAndAddModuleDirectory(java.lang.String directory)
Adds directory to project module directories if it was not added yetprivate static void
configure(ProjectOptions options)
Configure optionsprivate static void
configureAfterLoad(ProjectOptions options)
Configure options after loadprivate static void
configureOptionConfirmationDialogs(PropertyManager propertyManager)
Style
createDefaultModelElementStyle()
Returns default model element values.static ProjectOptions
createDefaultProjectOptions(Project project)
Create default options for a given projectprivate void
fixDiagramAspectsProperties()
private static void
fixElementListProperty(PropertyManager propertyManager, java.lang.String propertyID, ProjectOptions.PropertySetter propertySetter)
private void
fixValidationProperties(PropertyManager propertyManager)
java.util.Collection<Element>
getActiveValidationScope()
EnumerationLiteral
getActiveValidationSeverity()
Style
getActualModelElementStyle()
Fast method.java.util.List<java.lang.String>
getAdditionalBrowserTrees()
ProjectOptions.ApplyPropertyImageChoice
getApplyPropertyImageProperty()
Returns Apply Property Image propertyjava.util.Collection
getBrowserItemsTypes()
Gets types that are filtered (not shown) in browser.java.lang.String
getBrowserLayout()
Package
getChoosePackageLastSelection()
com.nomagic.magicdraw.core.project.options.CommonProjectOptions
getCommonProjectOptions()
java.lang.String
getCompositionInspectionSeverity()
java.lang.Integer
getDecimalPlaces()
Decimal places property to render the number (double/float) property in table and specificationDependencySeverityLevel
getDependencySeverityLevel()
Returns dependency checker severity level.boolean
getDetectIllegalModelReferences()
java.lang.String
getDiagramContextMode()
Returns diagram context mode for projectjava.lang.String
getDiagramInfoCustomHTML()
java.util.List<java.lang.String>
getDiagramInfoKeywords()
java.lang.String
getDiagramsLayout()
Style
getDiagramViewStyle()
Gets diagramViewStyle from the ProjectOptions.java.util.Set<BaseElement>
getDisableHighlightSuspended()
private EnumerationLiteral
getEnumerationLiteral(java.lang.String propertyID)
private <T extends java.lang.Enum<T>>
TgetEnumProperty(java.lang.String manager, java.lang.String id, java.lang.Enum defaultChoice, java.lang.String group, java.lang.Class<T> enumType)
private BooleanProperty
getExcludeElementsFromReadOnlyModulesPreCommit()
java.awt.Rectangle
getExitFullScreenToolbarBounds()
Getter for browser bounds.java.util.List<Element>
getFavoriteElements()
ElementListProperty
getFavoriteElementsProperty()
java.util.List<java.lang.String>
getFavoriteHyperlinks()
Get favorite hyperlinks.Style
getFullModelElementStyle()
Returns default model element values with modified values.static java.util.Map<java.util.Collection<java.lang.String>,Group>
getGroupRemap()
java.util.List<java.lang.String>
getHiddenBrowserTrees()
java.util.Collection<Package>
getIgnoredActiveSuites()
java.util.Collection<Stereotype>
getIgnoredDiagramAspects()
Gets ignored diagram aspectsjava.util.Collection<java.lang.String>
getIgnoredDuplicatedModules()
java.util.Collection<Constraint>
getIgnoredPassiveValidationRules()
Gets ignored passive validation rulesjava.util.Collection<Package>
getIgnoredPassiveValidationSuites()
java.util.Collection<Constraint>
getIgnoredValidationRules()
Return collection of ignored constraints.int
getIndexMode()
Package[]
getIndexScope()
java.util.Collection
getIndexTypes()
Property
getInvisibleProperty(java.lang.String id)
Gets invisible property that affects all users in multi user environment.java.lang.String
getLastDirectory()
Deprecated.useProjectSpecificLocationRegister
to store and retrieve this informationBaseElement
getLastSelectedElement()
java.lang.String
getLastSelectedModulePath()
Get last selected module path.java.lang.String
getLastSelectedTransformationName()
boolean
getLastSelectedTypeMapProfileDirection()
java.lang.String
getLastSelectedTypeMapProfileName()
java.lang.String
getLastSelectedXpdlImportLocation()
The directory last accessed for XPDL importjava.lang.String
getLayoutBeforeExitFullScreen()
java.lang.String
getLayoutBeforeFullScreen()
java.lang.String
getLayoutTemplateCreationMode()
java.lang.String
getLocksFilterUsername()
Returns user name of lock view filter.PropertyManager
getManager(java.lang.String name)
Returns the manager for properties.EnumerationLiteral
getMinimalSeverityProducingPreCommitWarning()
Gets minimal severity which produces warning after pre-commit validation.EnumerationLiteral
getMinimalSeverityProhibitingCommit()
Get minimal severity which prohibits commit after pre-commit validation.private Style
getModelElementStyle()
Gets modelElementStyle from the ProjectOptions.Style
getModifiedModelElementsStyle()
Returns default model element values.java.util.List<java.lang.String>
getModulesDirectories(boolean resolvePathVariables)
Returns modules paths.EnumerationLiteral
getPassiveValidationSeverity()
Style
getPersonalOptionsStyle()
Gets personalOptionsStyle from the ProjectOptions.Property
getPersonalVisibleProperty(java.lang.String id)
Gets personal visible property that affects one user in multi user environmentjava.util.Collection<Element>
getPreCommitValidationExcludedScope()
Get elements, excluded from pre-commit validation.java.util.Collection<Package>
getPreCommitValidationSuites()
Gets pre-commit validation suites.Project
getProjectImpl()
java.lang.String[]
getProjectSpellingIgnoreList()
Property
getProperty(java.lang.String manager, java.lang.String id)
Returns propertySyncMode
getPublicBranchSyncMode()
Method to get element hiding feature public branch synchronization mode.boolean
getQNameDisplayAbsolute()
Deprecated.usegetQNameDisplayStyle()
instead.java.lang.String
getQNameDisplayStyle()
Gets the QNAME_DISPLAY_STYLE property value.java.util.List<java.lang.String>
getRecentlyOpenedWindowsIDs()
java.util.List<Classifier>
getRecentTypes()
Returns recent metaclasses for created typesint
getReportExtensionIndex()
private java.util.Collection<Constraint>
getRules(java.lang.String propertyID)
private java.util.Properties
getSecretProperties()
Returns secret propertiesjava.lang.String
getSecretProperty(java.lang.String key)
Retrieves secret property value according given key.Style
getStyle()
Gets style that holds two properties manager - one for visible and user editable properties, other for invisible project properties.private java.util.Collection<Package>
getSuites(java.lang.String propertyID)
StyleManager
getSymbolStyles()
Gets symbol style manager.int
getTipsStyle()
Deprecated.ProjectOptions.TooltipsStyleChoice
getTooltipsStyle()
Returns Tooltips Style propertyprivate static ProjectOptions.TooltipsStyleChoice
getTooltipsStyleChoice(int tipsStyle)
Package
getTransformationDestination()
java.util.Collection<Element>
getUniqueElementNumberScope()
Get the Packages where autoIds are to be uniquejava.util.Map<java.lang.String,java.lang.String>
getUnlockedElementRemovalInfo()
com.nomagic.magicdraw.core.project.options.UserProjectOptions
getUserProjectOptions()
private BooleanProperty
getValidateOnlyLocallyChangedElementsPreCommit()
java.lang.String
getValidationIgnoredOption()
private void
initSecretKey()
Initializes secret Key.boolean
isAutomaticBehaviorCreationMode()
Gets automatic behavior creation property value.boolean
isAutomaticTypeCreationMode()
Gets automatic type creation property value.boolean
isAutoNumbering()
Get the state of the autoNumber Optionboolean
isAutoSynchronizeParametersAndArguments()
boolean
isBrowserVisible()
Gets browser visibility flagboolean
isCheckElementNumberUniques()
Get the value to check element id uniques in all id propertiesboolean
isCheckForCyclicDependencies()
Returns whether check for cyclic dependencies must be performed.boolean
isCheckIdUniques()
Get the value to check element id uniques in all id propertiesboolean
isDisplayAllActivityParameterNodesInDiagrams()
Indicates if activity parameter nodes should be displayed in diagrams.boolean
isDisplayAllPinsInDiagrams()
boolean
isDisplayElementNumberInBrowser()
Get the value of display/hide autoId in the Browserboolean
isDisplayNestedInstances()
Get the state of the display nested instances propertyboolean
isExcludeElementsFromReadOnlyModules()
boolean
isExcludeElementsFromReadOnlyModulesPreCommit()
Gets value of the Exclude Elements from Used Read-Only Project property in the pre-commit validation group.boolean
isExportedVersionChanged()
boolean
isFilterEnabled()
boolean
isFilterExcludesAuxiliaryResources()
boolean
isFilterHidesIrrelevantElements()
boolean
isFilterShowsImportedElements()
boolean
isGlobalEditingEnabled()
Determines if global package permission is set to Read-Write or Read-Onlyboolean
isHighlightSuspended()
boolean
isIgnoreStandardProfiles()
Returns indication that standard profiles must be ignored in dependency checking.boolean
isIndexScopeAll()
boolean
isLayoutScenarioDiagram()
boolean
isLockedElementNumber()
Get the value of number lock.boolean
isLockFreeEditingEnabled()
Determines if lock free editing is enabled in the projectboolean
isMarkInTreeAndDiagrams()
boolean
isSeparateDecisionMergeAndJoinForkNotation()
boolean
isSuspendAutoDisplayingOfLabels()
boolean
isSuspendAutoResizingOfShapes()
boolean
isTransformationInPlace()
boolean
isUseDiagramInfoCustomMode()
boolean
isUseDiagramsAspects()
boolean
isUseI18NTextInDiagrams()
boolean
isValidateOnlyActiveDiagrams()
boolean
isValidateOnlyLocallyChangedElementsPreCommit()
Gets value of the Validate Only Locally Changed Elements property in the pre-commit validation group.private static Style
newModelElementStyle()
void
propertyChange(java.beans.PropertyChangeEvent evt)
Listens for property change event.void
readDiagramViewOptions(com.nomagic.magicdraw.core.options.DiagramViewOptions options)
Applies corresponding PropertyManager to the given options.private void
registerListener()
static void
remapGroupInUI(java.util.Collection<java.lang.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.core.options.DiagramViewOptions options)
Removes corresponding PropertyManager from project options.private void
removeExcludeElementsFromReadOnlyModulesPreCommit()
void
removeHiddenBrowserTree(java.lang.String treeID)
private void
removeLockFreeEditingEnabled()
private void
removeMinimalSeverityProducingPreCommitWarning()
private void
removeMinimalSeverityProhibitingCommit()
private void
removePreCommitValidationExcludedScope()
private void
removePreCommitValidationSuites()
private void
removePublicBranchSyncMode()
private void
removeValidateOnlyLocallyChangedElementsPreCommit()
void
setActiveValidationScope(Element[] elements)
void
setActiveValidationSeverity(EnumerationLiteral literal)
void
setAdditionalBrowserTrees(java.util.Collection<java.lang.String> trees)
void
setApplyPropertyImageProperty(ProjectOptions.ApplyPropertyImageChoice value)
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, java.lang.String manager, java.lang.String id, java.lang.String group)
private void
setBooleanProperty(java.lang.String manager, java.lang.String id, boolean value, java.lang.String group, com.nomagic.magicdraw.core.options.BooleanPropertyFactory propertyFactory)
private void
setBooleanProperty(java.lang.String propertyId, java.lang.String propertyGroup, boolean value, java.util.function.Consumer<Property> propertyConsumer)
private void
setBooleanProperty(java.lang.String propertyId, java.lang.String propertyGroup, boolean value, java.util.function.Consumer<Property> propertyConsumer, java.lang.String introductoryVersion)
void
setBrowserItemsTypes(java.util.Collection v)
Set types that are filtered (not shown) in browser.void
setBrowserLayout(java.lang.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
setChoosePackageLastSelection(Package pck)
void
setCommonProjectOptions(com.nomagic.magicdraw.core.project.options.CommonProjectOptions commonProjectOptions)
void
setCompositionInspectionSeverity(java.lang.String severity)
void
setDecimalPlaces(java.lang.Integer decimalPlaces)
Sets decimal places option valuevoid
setDefaults()
Sets default project options.void
setDependencySeverityLevel(DependencySeverityLevel value)
Sets check for cyclic dependencies property value.void
setDetectIllegalModelReferences(boolean isDetectIllegalReferences)
void
setDiagramContextMode(java.lang.String newValue)
Sets diagram context mode for projectvoid
setDiagramInfoCustomHTML(java.lang.String value)
void
setDiagramInfoKeywords(java.util.Collection<java.lang.String> keywords)
void
setDiagramsLayout(java.lang.String rez)
void
setDisableHighlightSuspended(java.util.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 optionprivate void
setEnumProperty(java.lang.String manager, java.lang.String id, java.lang.Enum choice, java.util.function.Consumer<ProjectOptions> getter)
private void
setEnumProperty(java.lang.String manager, java.lang.String id, java.lang.Enum choice, java.util.function.Consumer<ProjectOptions> getter, java.lang.String introductoryVersion)
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
setExitFullScreenToolbarBounds(java.awt.Rectangle bounds)
Sets full screen toolbar bounds.void
setExportedVersionChanged(boolean value)
void
setFavoriteElements(java.util.List<Element> elements)
void
setFavoriteHyperlinks(java.util.List<java.lang.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(java.util.Collection<java.lang.String> trees)
void
setHighlightSuspended(boolean highlight)
void
setIgnoredActiveSuites(Package[] elements)
void
setIgnoredDiagramAspects(Stereotype[] aspects)
void
setIgnoredDuplicatedModules(java.util.Collection<java.lang.String> value)
void
setIgnoredPassiveValidationRules(Constraint[] elements)
void
setIgnoredPassiveValidationSuites(Package[] elements)
void
setIgnoredValidationResults(java.lang.String[] ignoredPairs)
private void
setIgnoredValidationResultsPersonal(java.lang.String[] ignoredPairs)
void
setIgnoredValidationRules(Constraint[] elements)
void
setIgnoreStandardProfiles(boolean value)
Sets ignore standard profiles in dependency checking property.void
setIndexMode(int status)
void
setIndexScope(Package[] scope)
void
setIndexScopeAll(boolean all)
void
setIndexTypes(java.util.Collection types)
void
setInvisibleProperties(PropertyManager newManager)
void
setLastDirectory(java.lang.String path)
Deprecated.useProjectSpecificLocationRegister
to store and retrieve this informationvoid
setLastSelectedElement(BaseElement element)
void
setLastSelectedModulePath(java.lang.String path)
Set last selected module path.void
setLastSelectedTransformationName(java.lang.String name)
void
setLastSelectedTypeMapProfileDirection(boolean forward)
void
setLastSelectedTypeMapProfileName(java.lang.String name)
void
setLayoutBeforeExitFullScreen(java.lang.String rez)
void
setLayoutBeforeFullScreen(java.lang.String rez)
void
setLayoutScenarioDiagram(boolean value)
Sets to layout scenario diagram.void
setLayoutTemplateCreationMode(java.lang.String newValue)
void
setLockElementNumber(boolean value)
Set the value to lock element numbervoid
setLockFreeEditingEnabled(boolean enabled)
Enables or disables lock free editingprivate void
setLockFreeEditingEnabled(boolean enabled, java.lang.String group)
void
setLocksFilterUsername(java.lang.String userName)
Sets Lock view filter user namevoid
setMarkInTreeAndDiagrams(boolean mark)
void
setMinimalSeverityProducingPreCommitWarning(EnumerationLiteral literal)
Sets minimal severity which produces warning after pre-commit validation.void
setMinimalSeverityProhibitingCommit(EnumerationLiteral literal)
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(java.util.Collection<java.lang.String> collection)
Sets project modules paths.void
setPassiveValidationSeverity(EnumerationLiteral literal)
void
setPreCommitValidationExcludedScope(Element[] elements)
Sets elements, excluded from pre-commit validation.private void
setPreCommitValidationSeverityProperty(EnumerationLiteral literal, java.lang.String propertyID, java.lang.String group)
void
setPreCommitValidationSuites(Package[] elements)
Sets validation suites for pre-commit validation.void
setProject(Project project)
Set project for the options.private static void
setProjectSpecificOptions(Project project, ProjectOptions defaultOptions)
private void
setProperties(java.lang.String managerId, PropertyManager newManager, Style style)
void
setPublicBranchSyncMode(SyncMode syncMode)
Element hiding public branch synchronization mode.private void
setPublicBranchSyncMode(SyncMode syncMode, java.lang.String propertyID, java.lang.String group)
void
setQNameDisplayAbsolute(boolean value)
Deprecated.usesetQNameDisplayStyle(String)
instead.void
setQNameDisplayStyle(java.lang.String newValue)
Sets the QNAME_DISPLAY_STYLE property value.void
setRecentlyOpenedWindowsIDs(java.util.List<java.lang.String> ids)
void
setRecentTypes(java.util.List<Classifier> recentMetaclasses)
Sets last selected metaclass for type creationvoid
setReportExtensionIndex(int index)
private void
setSecretProperties(java.util.Properties props)
Sets secret propertiesvoid
setSecretProperty(java.lang.String key, java.lang.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
setStyle(Style style)
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
setTipsStyle(int st)
Deprecated.void
setTooltipsStyle(ProjectOptions.TooltipsStyleChoice value)
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(java.util.Map<java.lang.String,java.lang.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(java.lang.String value)
private void
setValidationRulesProperty(Constraint[] elements, java.lang.String propertyID, java.lang.String group)
private void
setValidationSeverityProperty(EnumerationLiteral literal, java.lang.String propertyID, java.lang.String group)
private void
setValidationSuitesProperty(Package[] elements, java.lang.String propertyID, java.lang.String groupID)
void
setXpdlImportLocation(java.lang.String importLocation)
boolean
showDotNotationForAssociations()
Gets the SHOW_DOT_NOTATION_FOR_ASSOCIATIONS property valuevoid
storeDiagramViewOptions(java.util.Collection<com.nomagic.magicdraw.core.options.DiagramViewOptions> options)
Remember not empty property managersof given options.static void
updateBrowserAfterFilterChange()
Updates aBrowser
after the filtering was done through the GUI element.static void
updateBrowserAfterFilterChange(java.util.function.Consumer<Browser> savedStateBrowserConsumer)
Updates aBrowser
after the filtering was done through the GUI element.private void
updateProjectScopeProperties()
-
Methods inherited from class com.nomagic.magicdraw.uml.ElementImpl
clone
-
Methods inherited from class com.nomagic.magicdraw.uml.MDElementImpl
accept, addPropertyChangeListener, atInsert, canAdd, canAdd, canAddChild, canAddChild, canAddInstance, canBeDeleted, canChangeParent, canDeleteChild, compareTo, createSortKeys, dispose, firePropertyChange, generateID, getClassType, getCommandForAppending, getHumanName, getHumanType, getID, getName, getObjectParent, getProject, getProjectProvider, getResourceID, getSortKeys, hasListeners, isEditable, isParentOf, removeAllChildren, removeAllParents, removeAllPropertyChangeListeners, removePropertyChangeListener, setID, setProjectProvider, sGetID, toString
-
-
-
-
Field Detail
-
OPTIONS_LOCK
public static final java.lang.String OPTIONS_LOCK
Options lock event property name.- See Also:
- Constant Field Values
-
OUTPUT_TYPE_SELECTION_PANEL_VALUE
private static final java.lang.String OUTPUT_TYPE_SELECTION_PANEL_VALUE
- See Also:
- Constant Field Values
-
PROJECT_GENERAL_PROPERTIES
public static final java.lang.String PROJECT_GENERAL_PROPERTIES
The name of the manager that contains user editable properties in Project options dialog.- See Also:
getManager(String)
, Constant Field Values
-
PROJECT_INVISIBLE_PROPERTIES
public static final java.lang.String PROJECT_INVISIBLE_PROPERTIES
The name of the manager of not visible properties in Project options dialog.- See Also:
getManager(String)
, Constant Field Values
-
PERSONAL_INVISIBLE_PROPERTIES
public static final java.lang.String PERSONAL_INVISIBLE_PROPERTIES
The name of the manager of not visible properties that affect only one user in multi-user environment.- See Also:
getManager(String)
, Constant Field Values
-
PERSONAL_VISIBLE_PROPERTIES
public static final java.lang.String PERSONAL_VISIBLE_PROPERTIES
The name of the manager of visible properties that affect only one user in multi-user environment- See Also:
- Constant Field Values
-
STYLE_USER_PROPERTIES
public static final java.lang.String STYLE_USER_PROPERTIES
- See Also:
- Constant Field Values
-
STYLE_PERSONAL_PROPERTIES
public static final java.lang.String STYLE_PERSONAL_PROPERTIES
- See Also:
- Constant Field Values
-
STYLE_DIAGRAM_PROPERTIES
public static final java.lang.String STYLE_DIAGRAM_PROPERTIES
- See Also:
- Constant Field Values
-
STYLE_MODEL_ELEMENT_DEFAULTS
public static final java.lang.String STYLE_MODEL_ELEMENT_DEFAULTS
- See Also:
- Constant Field Values
-
ACTIVE_VALIDATION_GROUP
public static final java.lang.String ACTIVE_VALIDATION_GROUP
Real time validation group name- See Also:
- Constant Field Values
-
VALIDATION_GROUP
public static final java.lang.String VALIDATION_GROUP
- See Also:
- Constant Field Values
-
PRE_COMMIT_VALIDATION_GROUP
public static final java.lang.String PRE_COMMIT_VALIDATION_GROUP
- See Also:
- Constant Field Values
-
COMPOSITION_INSPECTION_GROUP
public static final java.lang.String COMPOSITION_INSPECTION_GROUP
- See Also:
- Constant Field Values
-
DIAGRAM_ASPECTS_GROUP
public static final java.lang.String DIAGRAM_ASPECTS_GROUP
- See Also:
- Constant Field Values
-
COMPLETE_DIAGRAMS
public static final java.lang.String COMPLETE_DIAGRAMS
- See Also:
- Constant Field Values
-
CREATE_AUTOMATICALLY
public static final java.lang.String CREATE_AUTOMATICALLY
- See Also:
- Constant Field Values
-
DO_NOT_CREATE
public static final java.lang.String DO_NOT_CREATE
- See Also:
- Constant Field Values
-
DIAGRAM_CONTEXT_MODES
public static final java.util.List DIAGRAM_CONTEXT_MODES
-
COLLABORATION_GROUP
public static final java.lang.String COLLABORATION_GROUP
Collaboration group name- See Also:
- Constant Field Values
-
ELEMENT_HIDING_GROUP
public static final java.lang.String ELEMENT_HIDING_GROUP
Element hiding group name- See Also:
- Constant Field Values
-
LOCKING_GROUP
public static final java.lang.String LOCKING_GROUP
Locking group name- See Also:
- Constant Field Values
-
DEPENDENCY_CHECKER_GROUP
public static final java.lang.String DEPENDENCY_CHECKER_GROUP
Dependency checker group name.- See Also:
- Constant Field Values
-
QNAME_DISPLAY_STYLE_ABSOLUTE
public static final java.lang.String QNAME_DISPLAY_STYLE_ABSOLUTE
Qualified is calculated using named elements up to the project root - "Data"- See Also:
- Constant Field Values
-
QNAME_DISPLAY_STYLE_RELATIVE
public static final java.lang.String QNAME_DISPLAY_STYLE_RELATIVE
Qualified is calculated using named elements up to the nearest package with applied stereotype "ModelLibrary"- See Also:
- Constant Field Values
-
QNAME_DISPLAY_STYLE_MODEL_RELATIVE
public static final java.lang.String QNAME_DISPLAY_STYLE_MODEL_RELATIVE
Qualified is calculated using named elements up to the nearest "Model" element- See Also:
- Constant Field Values
-
QNAME_DISPLAY_STYLE_MODEL_OR_LIBRARY_RELATIVE
public static final java.lang.String 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:
- Constant Field Values
-
QNAME_DISPLAY_STYLE_OPTIONS
public static final java.util.List QNAME_DISPLAY_STYLE_OPTIONS
Collection of all possible qualified name display style modes.
-
LAYOUT_TEMPLATE_CREATION_MODE_USAGE
public static final java.lang.String LAYOUT_TEMPLATE_CREATION_MODE_USAGE
- See Also:
- Constant Field Values
-
LAYOUT_TEMPLATE_CREATION_MODE_DEFINITION
public static final java.lang.String LAYOUT_TEMPLATE_CREATION_MODE_DEFINITION
- See Also:
- Constant Field Values
-
LAYOUT_TEMPLATE_CREATION_MODES
public static final java.util.List LAYOUT_TEMPLATE_CREATION_MODES
-
NUMBERING_GROUP
public static final java.lang.String NUMBERING_GROUP
Numbering group name.- See Also:
- Constant Field Values
-
BROWSER_GROUP
public static final java.lang.String BROWSER_GROUP
Browser group- See Also:
- Constant Field Values
-
DIAGRAMS_GROUP
public static final java.lang.String DIAGRAMS_GROUP
Diagrams group name- See Also:
- Constant Field Values
-
GENERAL_GROUP
public static final java.lang.String GENERAL_GROUP
General group name- See Also:
- Constant Field Values
-
UNIQUE_ELEMENT_NUMBER_PROJECT_SCOPE
@Deprecated public static final java.lang.String UNIQUE_ELEMENT_NUMBER_PROJECT_SCOPE
Deprecated.option no longer exists- See Also:
- Constant Field Values
-
UNIQUE_ELEMENT_NUMBER_PACKAGE_SCOPE
@Deprecated public static final java.lang.String UNIQUE_ELEMENT_NUMBER_PACKAGE_SCOPE
Deprecated.option no longer exists- See Also:
- Constant Field Values
-
UNIQUE_ELEMENT_NUMBER_SCOPE_OPTIONS
@Deprecated public static final java.util.List UNIQUE_ELEMENT_NUMBER_SCOPE_OPTIONS
Deprecated.options no longer exists
-
KEY_LENGTH
private static final int KEY_LENGTH
- See Also:
- Constant Field Values
-
OPTIONS_LAST_DIR
private static final java.lang.String OPTIONS_LAST_DIR
- See Also:
- Constant Field Values
-
secretKey
private byte[] secretKey
-
project
private Project project
-
commonProjectOptions
private com.nomagic.magicdraw.core.project.options.CommonProjectOptions commonProjectOptions
-
userProjectOptions
private com.nomagic.magicdraw.core.project.options.UserProjectOptions userProjectOptions
-
NO_TIPS
@Deprecated public static final int NO_TIPS
Deprecated.Tool tips style constant. No tooltip is displayed if mouse cursor is over PresentationElement in diagram.- See Also:
- Constant Field Values
-
NAME_TIPS
@Deprecated public static final int NAME_TIPS
Deprecated.Tool tips style constant. Name as tooltip is displayed if mouse cursor is over PresentationElement in diagram.- See Also:
- Constant Field Values
-
DOC_TIPS
@Deprecated public static final int DOC_TIPS
Deprecated.Tool tips style constant. Model element documentation as tooltip is displayed if mouse cursor is over PresentationElement in diagram.- See Also:
- Constant Field Values
-
INDEX_NONE
public static final int INDEX_NONE
- See Also:
- Constant Field Values
-
INDEX_COMMON
public static final int INDEX_COMMON
- See Also:
- Constant Field Values
-
INDEX_CUSTOM
public static final int INDEX_CUSTOM
- See Also:
- Constant Field Values
-
configurators
private static final java.util.List<ProjectOptionsConfigurator> configurators
-
groupRemap
private static final java.util.Map<java.util.Collection<java.lang.String>,Group> groupRemap
-
WEEK_IN_MILLIS
private static final long WEEK_IN_MILLIS
- See Also:
- Constant Field Values
-
COMPOSITION_INSPECTION_SEVERITY_STANDARD
public static final java.lang.String COMPOSITION_INSPECTION_SEVERITY_STANDARD
- See Also:
- Constant Field Values
-
COMPOSITION_INSPECTION_SEVERITY_ADVANCED
public static final java.lang.String COMPOSITION_INSPECTION_SEVERITY_ADVANCED
- See Also:
- Constant Field Values
-
COMPOSITION_INSPECTION_SEVERITY_CHOICE
public static final java.util.List<java.lang.String> COMPOSITION_INSPECTION_SEVERITY_CHOICE
-
DECIMAL_PLACES_DEFAULT_VALUE
private static final int DECIMAL_PLACES_DEFAULT_VALUE
default value for decimal places- See Also:
- Constant Field Values
-
-
Method Detail
-
remapGroupInUI
public static void remapGroupInUI(java.util.Collection<java.lang.String> groupsToRemap, Group newGroup)
Remap properties group to a some other group in options UI- Parameters:
groupsToRemap
- groups to remapnewGroup
- new group
-
getGroupRemap
public static java.util.Map<java.util.Collection<java.lang.String>,Group> getGroupRemap()
-
registerListener
private void registerListener()
-
createDefaultProjectOptions
public static ProjectOptions createDefaultProjectOptions(Project project)
Create default options for a given project- Parameters:
project
- project- Returns:
- options with default settings
-
setProjectSpecificOptions
private static void setProjectSpecificOptions(Project project, ProjectOptions defaultOptions)
-
setProject
public void setProject(Project project)
Set project for the options.- Parameters:
project
- project
-
setDefaults
public void setDefaults()
Sets default project options.
-
initSecretKey
private void initSecretKey()
Initializes secret Key. The key is pseudo-random that changes every week
-
addManager
private static void addManager(java.lang.String name, Style style)
-
getStyle
public Style getStyle()
Gets style that holds two properties manager - one for visible and user editable properties, other for invisible project properties.- Returns:
- project properties
-
setStyle
public void setStyle(Style style)
Sets style that holds two properties manager - one for visible and user editable properties, other for invisible project properties.- Parameters:
style
- project properties
-
getPersonalOptionsStyle
public Style getPersonalOptionsStyle()
Gets personalOptionsStyle from the ProjectOptions. Personal options are GUI setting that are user specific in multiple user env.- Returns:
- Style object
-
getDiagramViewStyle
public Style getDiagramViewStyle()
Gets diagramViewStyle from the ProjectOptions. Personal options are GUI setting that are user specific in multiple user env.- Returns:
- Style object
-
getSymbolStyles
public StyleManager getSymbolStyles()
Gets symbol style manager.- Returns:
- symbol style manager.
-
configure
private static void configure(ProjectOptions options)
Configure options- Parameters:
options
- options
-
configureAfterLoad
private static void configureAfterLoad(ProjectOptions options)
Configure options after load- Parameters:
options
- given project options
-
addModuleDirectory
public void addModuleDirectory(java.lang.String directory)
Adds directory to project module directories.- Parameters:
directory
- directory to add.
-
checkAndAddModuleDirectory
public void checkAndAddModuleDirectory(java.lang.String directory)
Adds directory to project module directories if it was not added yet- Parameters:
directory
- directory to add.
-
setModulesDirectories
public void setModulesDirectories(java.util.Collection<java.lang.String> collection)
Sets project modules paths.- Parameters:
collection
- collections of String objects specifying paths to module directories.
-
getModulesDirectories
public java.util.List<java.lang.String> getModulesDirectories(boolean resolvePathVariables)
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 public void setTipsStyle(int st)
Deprecated.Set tooltips style.- Parameters:
st
- tips style constant.
-
getTipsStyle
@Deprecated public int getTipsStyle()
Deprecated.Get tooltips style.- Returns:
- tooltip style constant.
-
accept
public void accept(Visitor v) throws java.lang.Exception
Description copied from interface:MDElement
Method accepts visitor, and calls method visit<class name>(this) of visitor . See Visitor pattern for more details.
-
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent evt)
Listens for property change event.- Specified by:
propertyChange
in interfacejava.beans.PropertyChangeListener
-
setProperties
private void setProperties(java.lang.String managerId, PropertyManager newManager, Style style)
-
updateBrowserAfterFilterChange
public static void updateBrowserAfterFilterChange()
-
updateBrowserAfterFilterChange
public static void updateBrowserAfterFilterChange(java.util.function.Consumer<Browser> savedStateBrowserConsumer)
Updates aBrowser
after the filtering was done through the GUI element. Method does save the state oftrees
and restores it before returning from a call.- Parameters:
savedStateBrowserConsumer
- an implementation ofConsumer
that accepts aBrowser
whose state was already saved.
-
setBrowserItemsTypes
public void setBrowserItemsTypes(@CheckForNull java.util.Collection v)
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
public java.util.Collection 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
public void setChoosePackageLastSelection(Package pck)
-
getChoosePackageLastSelection
@CheckForNull public Package getChoosePackageLastSelection()
-
setDisableHighlightSuspended
public void setDisableHighlightSuspended(java.util.Collection<? extends BaseElement> elements)
-
getDisableHighlightSuspended
public java.util.Set<BaseElement> getDisableHighlightSuspended()
-
getManager
@CheckForNull public PropertyManager getManager(java.lang.String name)
Returns the manager for properties.- Returns:
- property manager name.
- See Also:
PROJECT_GENERAL_PROPERTIES
,PROJECT_INVISIBLE_PROPERTIES
,PERSONAL_INVISIBLE_PROPERTIES
,PERSONAL_VISIBLE_PROPERTIES
-
getProperty
@CheckForNull public Property getProperty(java.lang.String manager, java.lang.String id)
Returns property
-
addProperty
public void addProperty(java.lang.String manager, Property p)
Adds property
-
getRecentlyOpenedWindowsIDs
public java.util.List<java.lang.String> getRecentlyOpenedWindowsIDs()
-
setRecentlyOpenedWindowsIDs
public void setRecentlyOpenedWindowsIDs(java.util.List<java.lang.String> ids)
-
setBrowserLayout
public void setBrowserLayout(@CheckForNull java.lang.String rez)
- Parameters:
rez
- browser layout value
-
getBrowserLayout
@CheckForNull public java.lang.String getBrowserLayout()
-
setDiagramsLayout
public void setDiagramsLayout(@CheckForNull java.lang.String rez)
-
getDiagramsLayout
@CheckForNull public java.lang.String getDiagramsLayout()
-
setRecentTypes
public void setRecentTypes(@CheckForNull java.util.List<Classifier> recentMetaclasses)
Sets last selected metaclass for type creation- Parameters:
recentMetaclasses
- recent metaclasses
-
getRecentTypes
public java.util.List<Classifier> getRecentTypes()
Returns recent metaclasses for created types- Returns:
- recent metaclass list
-
setLayoutBeforeFullScreen
public void setLayoutBeforeFullScreen(@CheckForNull java.lang.String rez)
-
setLayoutBeforeExitFullScreen
public void setLayoutBeforeExitFullScreen(@CheckForNull java.lang.String rez)
-
getLayoutBeforeFullScreen
@CheckForNull public java.lang.String getLayoutBeforeFullScreen()
-
getLayoutBeforeExitFullScreen
@CheckForNull public java.lang.String getLayoutBeforeExitFullScreen()
-
setExitFullScreenToolbarBounds
public void setExitFullScreenToolbarBounds(@CheckForNull java.awt.Rectangle bounds)
Sets full screen toolbar bounds.- Parameters:
bounds
- new bounds.
-
getExitFullScreenToolbarBounds
@CheckForNull public java.awt.Rectangle getExitFullScreenToolbarBounds()
Getter for browser bounds.- Returns:
- browser bounds.
-
getAdditionalBrowserTrees
public java.util.List<java.lang.String> getAdditionalBrowserTrees()
-
setAdditionalBrowserTrees
public void setAdditionalBrowserTrees(java.util.Collection<java.lang.String> trees)
-
getHiddenBrowserTrees
public java.util.List<java.lang.String> getHiddenBrowserTrees()
-
setHiddenBrowserTrees
public void setHiddenBrowserTrees(java.util.Collection<java.lang.String> trees)
-
addHiddenBrowserTree
public void addHiddenBrowserTree(java.lang.String treeID)
-
removeHiddenBrowserTree
public void removeHiddenBrowserTree(java.lang.String treeID)
-
setUseDiagramInfoCustomMode
public void setUseDiagramInfoCustomMode(boolean value)
-
isUseDiagramInfoCustomMode
public boolean isUseDiagramInfoCustomMode()
-
setExportedVersionChanged
public void setExportedVersionChanged(boolean value)
-
isExportedVersionChanged
public boolean isExportedVersionChanged()
-
setDiagramInfoCustomHTML
public void setDiagramInfoCustomHTML(java.lang.String value)
-
getDiagramInfoCustomHTML
public java.lang.String getDiagramInfoCustomHTML()
-
setDiagramInfoKeywords
public void setDiagramInfoKeywords(java.util.Collection<java.lang.String> keywords)
-
getDiagramInfoKeywords
public java.util.List<java.lang.String> getDiagramInfoKeywords()
-
setSecretProperties
private void setSecretProperties(java.util.Properties props)
Sets secret properties- Parameters:
props
- properties
-
getSecretProperties
private java.util.Properties getSecretProperties()
Returns secret properties
-
setSecretProperty
public void setSecretProperty(java.lang.String key, @CheckForNull java.lang.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.- Parameters:
key
- key for the property.value
- value of the property.
-
getSecretProperty
public java.lang.String getSecretProperty(java.lang.String key)
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
public void setInvisibleProperties(PropertyManager newManager)
-
setLastSelectedTransformationName
public void setLastSelectedTransformationName(@CheckForNull java.lang.String name)
-
getLastSelectedTransformationName
@CheckForNull public java.lang.String getLastSelectedTransformationName()
-
setTransformationDestination
public void setTransformationDestination(@CheckForNull Package destination)
-
getTransformationDestination
@CheckForNull public Package getTransformationDestination()
-
setLastSelectedTypeMapProfileName
public void setLastSelectedTypeMapProfileName(@CheckForNull java.lang.String name)
-
getLastSelectedTypeMapProfileName
@CheckForNull public java.lang.String getLastSelectedTypeMapProfileName()
-
setLastSelectedTypeMapProfileDirection
public void setLastSelectedTypeMapProfileDirection(boolean forward)
-
getLastSelectedTypeMapProfileDirection
public boolean getLastSelectedTypeMapProfileDirection()
-
setTransformationInPlace
public void setTransformationInPlace(boolean inPlace)
-
isTransformationInPlace
public boolean isTransformationInPlace()
-
setLastSelectedElement
public void setLastSelectedElement(BaseElement element)
-
getLastSelectedElement
@CheckForNull public BaseElement getLastSelectedElement()
-
setIndexMode
public void setIndexMode(int status)
-
getIndexMode
public int getIndexMode()
-
setIndexScopeAll
public void setIndexScopeAll(boolean all)
-
isIndexScopeAll
public boolean isIndexScopeAll()
-
setIndexScope
public void setIndexScope(Package[] scope)
-
getIndexScope
@CheckForNull public Package[] getIndexScope()
-
setIndexTypes
public void setIndexTypes(java.util.Collection types)
-
getIndexTypes
@CheckForNull public java.util.Collection getIndexTypes()
-
setLastDirectory
@Deprecated public void setLastDirectory(java.lang.String path)
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 public java.lang.String getLastDirectory()
Deprecated.useProjectSpecificLocationRegister
to store and retrieve this informationReturns the last used project related directory.- Returns:
- the path
-
addStringListProperty
private void addStringListProperty(java.lang.String manager, java.lang.String propertyID, @CheckForNull java.lang.String[] initialValue)
-
addInvisibleProperty
public void addInvisibleProperty(Property property)
Adds invisible property that affects all users in multi user environment.- Parameters:
property
- property
-
getInvisibleProperty
@CheckForNull public Property getInvisibleProperty(java.lang.String id)
Gets invisible property that affects all users in multi user environment.- Parameters:
id
- property identifier- Returns:
- invisible property
-
addPersonalVisibleProperty
public void addPersonalVisibleProperty(Property property)
Adds personal visible property that affects one user in multi user environment- Parameters:
property
- property
-
getPersonalVisibleProperty
@CheckForNull public Property getPersonalVisibleProperty(java.lang.String id)
Gets personal visible property that affects one user in multi user environment- Parameters:
id
- property identifier- Returns:
- personal visible property
-
addConfigurator
public static void addConfigurator(ProjectOptionsConfigurator configurator)
Add project options configurator- Parameters:
configurator
- options configurator.
-
removeConfigurator
public static void removeConfigurator(ProjectOptionsConfigurator configurator)
Remove project options configurator- Parameters:
configurator
- options configurator.
-
getModelElementStyle
private Style getModelElementStyle()
Gets modelElementStyle from the ProjectOptions.- Returns:
- Style object
-
setModelElementStyle
public void setModelElementStyle(Style modelElementStyle)
Sets style for default property values for all uml entities.- Parameters:
modelElementStyle
- style
-
applyModifiedModelElementStyle
public void applyModifiedModelElementStyle(Style modelElementStyle)
Applies user modified values to model element style- Parameters:
modelElementStyle
- style to retrieve modified values from
-
getFullModelElementStyle
public Style 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
public Style getActualModelElementStyle()
Fast method. Returns default model element values.- Returns:
- all modified values and some unmodified (unmodified values are not filtered)
-
getModifiedModelElementsStyle
public Style getModifiedModelElementsStyle()
Returns default model element values.- Returns:
- all modified values, unchanged values are filtered
-
newModelElementStyle
private static Style newModelElementStyle()
- Returns:
- new model element style with name
-
createDefaultModelElementStyle
public Style 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
-
changeOwnershipForNavigability
public boolean changeOwnershipForNavigability()
Gets the CHANGE_OWNERSHIP_FOR_NAVIGABILITY property value- Returns:
- value of CHANGE_OWNERSHIP_FOR_NAVIGABILITY property or false if such property wasn't set.
-
setChangeOwnershipForNavigability
public void setChangeOwnershipForNavigability(boolean value)
Sets the HOW_DOT_NOTATION_FOR_ASSOCIATIONS property value. If such property wasn't yet created, then creates one.- Parameters:
value
- boolean property value
-
setBooleanProperty
public void setBooleanProperty(boolean value, java.lang.String manager, java.lang.String id, @CheckForNull java.lang.String group)
-
setBooleanProperty
private void setBooleanProperty(java.lang.String manager, java.lang.String id, boolean value, @CheckForNull java.lang.String group, com.nomagic.magicdraw.core.options.BooleanPropertyFactory propertyFactory)
-
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 public boolean 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
public java.lang.String getQNameDisplayStyle()
Gets the QNAME_DISPLAY_STYLE property value.- Returns:
- string that is one of the #QNAME_DISPLAY_STYLE_OPTIONS collection elements item.
-
setQNameDisplayAbsolute
@Deprecated public void setQNameDisplayAbsolute(boolean value)
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
public void setQNameDisplayStyle(java.lang.String newValue)
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
public java.lang.String getLayoutTemplateCreationMode()
-
setLayoutTemplateCreationMode
public void setLayoutTemplateCreationMode(java.lang.String newValue)
-
getTooltipsStyle
public ProjectOptions.TooltipsStyleChoice getTooltipsStyle()
Returns Tooltips Style property- Returns:
- selected value
-
getEnumProperty
private <T extends java.lang.Enum<T>> T getEnumProperty(java.lang.String manager, java.lang.String id, java.lang.Enum defaultChoice, java.lang.String group, java.lang.Class<T> enumType)
-
setTooltipsStyle
public void setTooltipsStyle(ProjectOptions.TooltipsStyleChoice value)
Sets Tooltips Style property- Parameters:
value
- new value.
-
setIgnoredValidationResults
public void setIgnoredValidationResults(@CheckForNull java.lang.String[] ignoredPairs)
-
setIgnoredValidationResultsPersonal
private void setIgnoredValidationResultsPersonal(@CheckForNull java.lang.String[] ignoredPairs)
-
getIgnoredActiveSuites
public java.util.Collection<Package> getIgnoredActiveSuites()
-
getIgnoredPassiveValidationSuites
public java.util.Collection<Package> getIgnoredPassiveValidationSuites()
-
getSuites
private java.util.Collection<Package> getSuites(java.lang.String propertyID)
-
getIgnoredValidationRules
public java.util.Collection<Constraint> getIgnoredValidationRules()
Return collection of ignored constraints.- Returns:
- collection of ignored constraints.
-
getIgnoredPassiveValidationRules
public java.util.Collection<Constraint> getIgnoredPassiveValidationRules()
Gets ignored passive validation rules- Returns:
- ignored passive validation rules.
-
getRules
private java.util.Collection<Constraint> getRules(java.lang.String propertyID)
-
getIgnoredDuplicatedModules
public java.util.Collection<java.lang.String> getIgnoredDuplicatedModules()
- Returns:
- modules for which warning that they found in duplicated path is not shown.
-
setIgnoredDuplicatedModules
public void setIgnoredDuplicatedModules(java.util.Collection<java.lang.String> value)
- Parameters:
value
- modules for which warning that they found in duplicated path is not shown.
-
setIgnoredActiveSuites
public void setIgnoredActiveSuites(@CheckForNull Package[] elements)
-
setIgnoredPassiveValidationSuites
public void setIgnoredPassiveValidationSuites(@CheckForNull Package[] elements)
-
setValidationSuitesProperty
private void setValidationSuitesProperty(@CheckForNull Package[] elements, java.lang.String propertyID, java.lang.String groupID)
-
setIgnoredValidationRules
public void setIgnoredValidationRules(@CheckForNull Constraint[] elements)
-
setIgnoredPassiveValidationRules
public void setIgnoredPassiveValidationRules(@CheckForNull Constraint[] elements)
-
setPublicBranchSyncMode
public void setPublicBranchSyncMode(SyncMode syncMode)
Element hiding public branch synchronization mode. Project and user specific option.- Parameters:
syncMode
- sync mode to set
-
getPublicBranchSyncMode
@CheckForNull public SyncMode 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
-
setPublicBranchSyncMode
private void setPublicBranchSyncMode(SyncMode syncMode, java.lang.String propertyID, java.lang.String group)
-
removePublicBranchSyncMode
private void removePublicBranchSyncMode()
-
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
-
setLockFreeEditingEnabled
private void setLockFreeEditingEnabled(boolean enabled, java.lang.String group)
-
removeLockFreeEditingEnabled
private void removeLockFreeEditingEnabled()
-
setValidationRulesProperty
private void setValidationRulesProperty(@CheckForNull Constraint[] elements, java.lang.String propertyID, java.lang.String group)
-
getActiveValidationScope
public java.util.Collection<Element> getActiveValidationScope()
-
setActiveValidationScope
public void setActiveValidationScope(@CheckForNull Element[] elements)
-
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
public java.util.List<Element> getFavoriteElements()
-
setFavoriteElements
public void setFavoriteElements(java.util.List<Element> elements)
-
getFavoriteElementsProperty
@CheckForNull public ElementListProperty getFavoriteElementsProperty()
-
setActiveValidationSeverity
public void setActiveValidationSeverity(@CheckForNull EnumerationLiteral literal)
-
setPassiveValidationSeverity
public void setPassiveValidationSeverity(@CheckForNull EnumerationLiteral literal)
-
setValidationSeverityProperty
private void setValidationSeverityProperty(@CheckForNull EnumerationLiteral literal, java.lang.String propertyID, java.lang.String group)
-
setPreCommitValidationSeverityProperty
private void setPreCommitValidationSeverityProperty(@CheckForNull EnumerationLiteral literal, java.lang.String propertyID, java.lang.String group)
-
getActiveValidationSeverity
@CheckForNull public EnumerationLiteral getActiveValidationSeverity()
-
getPassiveValidationSeverity
@CheckForNull public EnumerationLiteral getPassiveValidationSeverity()
-
setCompositionInspectionSeverity
public void setCompositionInspectionSeverity(java.lang.String severity)
-
getCompositionInspectionSeverity
public java.lang.String getCompositionInspectionSeverity()
-
setDetectIllegalModelReferences
public void setDetectIllegalModelReferences(boolean isDetectIllegalReferences)
-
getDetectIllegalModelReferences
public boolean getDetectIllegalModelReferences()
-
getEnumerationLiteral
@CheckForNull private EnumerationLiteral getEnumerationLiteral(java.lang.String propertyID)
-
setValidationIgnoredOption
public void setValidationIgnoredOption(@CheckForNull java.lang.String value)
-
getValidationIgnoredOption
@CheckForNull public java.lang.String 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
-
setBooleanProperty
private void setBooleanProperty(java.lang.String propertyId, java.lang.String propertyGroup, boolean value, @CheckForNull java.util.function.Consumer<Property> propertyConsumer)
-
setBooleanProperty
private void setBooleanProperty(java.lang.String propertyId, java.lang.String propertyGroup, boolean value, @CheckForNull java.util.function.Consumer<Property> propertyConsumer, @CheckForNull java.lang.String introductoryVersion)
-
getValidateOnlyLocallyChangedElementsPreCommit
@CheckForNull private BooleanProperty getValidateOnlyLocallyChangedElementsPreCommit()
-
removeValidateOnlyLocallyChangedElementsPreCommit
private void removeValidateOnlyLocallyChangedElementsPreCommit()
-
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
-
getExcludeElementsFromReadOnlyModulesPreCommit
@CheckForNull private BooleanProperty getExcludeElementsFromReadOnlyModulesPreCommit()
-
removeExcludeElementsFromReadOnlyModulesPreCommit
private void removeExcludeElementsFromReadOnlyModulesPreCommit()
-
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
public void setPreCommitValidationSuites(@CheckForNull Package[] elements)
Sets validation suites for pre-commit validation.- Parameters:
elements
- suites
-
getPreCommitValidationSuites
@CheckForNull public java.util.Collection<Package> getPreCommitValidationSuites()
Gets pre-commit validation suites.- Returns:
- suites or null, if the property does not exist
-
removePreCommitValidationSuites
private void removePreCommitValidationSuites()
-
setPreCommitValidationExcludedScope
public void setPreCommitValidationExcludedScope(@CheckForNull Element[] elements)
Sets elements, excluded from pre-commit validation. Creates the property, if it does not yet exist.- Parameters:
elements
- excluded elements
-
getPreCommitValidationExcludedScope
public java.util.Collection<Element> getPreCommitValidationExcludedScope()
Get elements, excluded from pre-commit validation.- Returns:
- excluded scope
-
removePreCommitValidationExcludedScope
private void removePreCommitValidationExcludedScope()
-
setMinimalSeverityProhibitingCommit
public void setMinimalSeverityProhibitingCommit(@CheckForNull EnumerationLiteral literal)
Set minimal severity which prohibits commit after pre-commit validation.- Parameters:
literal
- new severity. Null value sets the highest level - None (MDUML-99234)
-
getMinimalSeverityProhibitingCommit
@CheckForNull public EnumerationLiteral getMinimalSeverityProhibitingCommit()
Get minimal severity which prohibits commit after pre-commit validation.- Returns:
- minimal severity or null, if such property does not exist
-
removeMinimalSeverityProhibitingCommit
private void removeMinimalSeverityProhibitingCommit()
-
setMinimalSeverityProducingPreCommitWarning
public void setMinimalSeverityProducingPreCommitWarning(@CheckForNull EnumerationLiteral literal)
Sets minimal severity which produces warning after pre-commit validation.- Parameters:
literal
- new severity. Null value sets the highest level - None (MDUML-99234)
-
getMinimalSeverityProducingPreCommitWarning
@CheckForNull public EnumerationLiteral getMinimalSeverityProducingPreCommitWarning()
Gets minimal severity which produces warning after pre-commit validation.- Returns:
- minimal severity or null, if such property does not exist
-
removeMinimalSeverityProducingPreCommitWarning
private void removeMinimalSeverityProducingPreCommitWarning()
-
setLastSelectedModulePath
public void setLastSelectedModulePath(@CheckForNull java.lang.String path)
Set last selected module path.- Parameters:
path
- module path.
-
getLastSelectedModulePath
@CheckForNull public java.lang.String getLastSelectedModulePath()
Get last selected module path.- Returns:
- last module path.
-
setLocksFilterUsername
public void setLocksFilterUsername(java.lang.String userName)
Sets Lock view filter user name- Parameters:
userName
- name of user which was filtered in locks view.
-
getLocksFilterUsername
public java.lang.String getLocksFilterUsername()
Returns user name of lock view filter.- Returns:
- name of user which was filtered in locks view.
-
afterLoad
public void afterLoad()
-
configureOptionConfirmationDialogs
private static void configureOptionConfirmationDialogs(PropertyManager propertyManager)
-
getTooltipsStyleChoice
private static ProjectOptions.TooltipsStyleChoice getTooltipsStyleChoice(int tipsStyle)
-
fixValidationProperties
private void fixValidationProperties(PropertyManager propertyManager)
-
fixDiagramAspectsProperties
private void fixDiagramAspectsProperties()
-
fixElementListProperty
private static void fixElementListProperty(PropertyManager propertyManager, java.lang.String propertyID, ProjectOptions.PropertySetter propertySetter)
-
addToProjectSpellingIgnoreList
public void addToProjectSpellingIgnoreList(java.lang.String newTextToBeIgnored)
-
getProjectSpellingIgnoreList
@CheckForNull public java.lang.String[] 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
public DependencySeverityLevel getDependencySeverityLevel()
Returns dependency checker severity level.- Returns:
- true if checking for cyclic properties must be performed, otherwise - false.
-
setDependencySeverityLevel
public void setDependencySeverityLevel(DependencySeverityLevel value)
Sets check for cyclic dependencies property value.- Parameters:
value
- new value.
-
setEnumProperty
private void setEnumProperty(java.lang.String manager, java.lang.String id, java.lang.Enum choice, java.util.function.Consumer<ProjectOptions> getter)
-
setEnumProperty
private void setEnumProperty(java.lang.String manager, java.lang.String id, java.lang.Enum choice, java.util.function.Consumer<ProjectOptions> getter, @CheckForNull java.lang.String introductoryVersion)
-
getApplyPropertyImageProperty
public ProjectOptions.ApplyPropertyImageChoice getApplyPropertyImageProperty()
Returns Apply Property Image property- Returns:
- selected value
-
setApplyPropertyImageProperty
public void setApplyPropertyImageProperty(ProjectOptions.ApplyPropertyImageChoice value)
Sets Apply Property Image property- Parameters:
value
- new value.
-
getDiagramContextMode
public java.lang.String getDiagramContextMode()
Returns diagram context mode for project- Returns:
- diagram context mode
-
setDiagramContextMode
public void setDiagramContextMode(java.lang.String newValue)
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
public Project getProjectImpl()
- Specified by:
getProjectImpl
in interfaceMDElement
- Overrides:
getProjectImpl
in classcom.nomagic.magicdraw.uml.MDElementImpl
-
readDiagramViewOptions
@NotApi public void readDiagramViewOptions(com.nomagic.magicdraw.core.options.DiagramViewOptions options)
Applies corresponding PropertyManager to the given options.- Parameters:
options
- diagram view options
-
storeDiagramViewOptions
@NotApi public void storeDiagramViewOptions(java.util.Collection<com.nomagic.magicdraw.core.options.DiagramViewOptions> options)
Remember not empty property managersof given options.- Parameters:
options
- options
-
removeDiagramViewOptions
@NotApi public void removeDiagramViewOptions(com.nomagic.magicdraw.core.options.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
public java.util.Collection<Element> getUniqueElementNumberScope()
Get the Packages where autoIds are to be unique- Returns:
- a list of Packages
-
setUniqueElementNumberScope
public void setUniqueElementNumberScope(@CheckForNull Element[] elements)
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
@CheckForNull public java.lang.String getLastSelectedXpdlImportLocation()
The directory last accessed for XPDL import- Returns:
- location
-
setXpdlImportLocation
public void setXpdlImportLocation(java.lang.String importLocation)
-
getFavoriteHyperlinks
public java.util.List<java.lang.String> getFavoriteHyperlinks()
Get favorite hyperlinks.- Returns:
- URLs of hyperlinks.
-
setFavoriteHyperlinks
public void setFavoriteHyperlinks(java.util.List<java.lang.String> urls)
Set favorite hyperlinks.- Parameters:
urls
- URLs of hyperlinks.
-
updateProjectScopeProperties
private void updateProjectScopeProperties()
-
setUnlockedElementRemovalInfo
public void setUnlockedElementRemovalInfo(@CheckForNull java.util.Map<java.lang.String,java.lang.String> unlockedElementRemovalInfo)
-
getUnlockedElementRemovalInfo
@CheckForNull public java.util.Map<java.lang.String,java.lang.String> 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)
-
getIgnoredDiagramAspects
public java.util.Collection<Stereotype> getIgnoredDiagramAspects()
Gets ignored diagram aspects- Returns:
- ignored diagram aspects
-
setIgnoredDiagramAspects
public void setIgnoredDiagramAspects(@CheckForNull Stereotype[] aspects)
-
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
@CheckForNull public java.lang.Integer 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
public void setDecimalPlaces(@CheckForNull java.lang.Integer decimalPlaces)
Sets decimal places option value- Parameters:
decimalPlaces
- option, null indicates option off
-
-