@OpenApiAll public class ProjectOptions extends ElementImpl implements java.io.Serializable, java.beans.PropertyChangeListener
Modifier and Type | Class and Description |
---|---|
static class |
ProjectOptions.ApplyPropertyImageChoice |
static interface |
ProjectOptions.PropertySetter |
static class |
ProjectOptions.TooltipsStyleChoice |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ACTIVE_VALIDATION_GROUP
Real time validation group name
|
static java.lang.String |
BROWSER_GROUP
Browser group
|
static java.lang.String |
COLLABORATION_GROUP
Collaboration group name
|
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 |
static java.lang.String |
CREATE_AUTOMATICALLY |
static 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 name
|
static java.lang.String |
DO_NOT_CREATE |
static int |
DOC_TIPS
Deprecated.
|
static java.lang.String |
ELEMENT_HIDING_GROUP
Element hiding group name
|
static java.lang.String |
GENERAL_GROUP
General group name
|
static int |
INDEX_COMMON |
static int |
INDEX_CUSTOM |
static int |
INDEX_NONE |
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 name
|
static int |
NAME_TIPS
Deprecated.
|
static int |
NO_TIPS
Deprecated.
|
static java.lang.String |
NUMBERING_GROUP
Numbering group name.
|
static java.lang.String |
OPTIONS_LOCK
Options lock event property name.
|
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 environment
|
static java.lang.String |
PRE_COMMIT_VALIDATION_GROUP |
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" element
|
static 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"
|
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 exists
|
static java.lang.String |
UNIQUE_ELEMENT_NUMBER_PROJECT_SCOPE
Deprecated.
option no longer exists
|
static java.util.List |
UNIQUE_ELEMENT_NUMBER_SCOPE_OPTIONS
Deprecated.
options no longer exists
|
static java.lang.String |
VALIDATION_GROUP |
Constructor and Description |
---|
ProjectOptions()
Constructor.
|
Modifier and Type | Method and 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 configurator
|
void |
addHiddenBrowserTree(java.lang.String treeID) |
void |
addInvisibleProperty(Property property)
Adds invisible property that affects all users in multi user environment.
|
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 environment
|
void |
addProperty(java.lang.String manager,
Property p)
Adds property
|
void |
addToProjectSpellingIgnoreList(java.lang.String newTextToBeIgnored) |
void |
afterLoad() |
boolean |
changeOwnershipForNavigability()
Gets the CHANGE_OWNERSHIP_FOR_NAVIGABILITY property value
|
void |
checkAndAddModuleDirectory(java.lang.String directory)
Adds directory to project module directories if it was not added yet
|
Style |
createDefaultModelElementStyle()
Returns default model element values.
|
static ProjectOptions |
createDefaultProjectOptions(Project project)
Create default options for a given project
|
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 property
|
java.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 specification
|
com.nomagic.magicdraw.core.options.DependencySeverityLevel |
getDependencySeverityLevel()
Returns dependency checker severity level.
|
boolean |
getDetectIllegalModelReferences() |
java.lang.String |
getDiagramContextMode()
Returns diagram context mode for project
|
java.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() |
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.
|
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 aspects
|
java.util.Collection<java.lang.String> |
getIgnoredDuplicatedModules() |
java.util.Collection<Constraint> |
getIgnoredPassiveValidationRules()
Gets ignored passive validation rules
|
java.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.
use
ProjectSpecificLocationRegister to store and retrieve this information |
BaseElement |
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 import
|
java.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.
|
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 environment
|
java.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 property
|
com.nomagic.magicdraw.properties.SyncMode |
getPublicBranchSyncMode()
Method to get element hiding feature public branch synchronization mode.
|
boolean |
getQNameDisplayAbsolute()
Deprecated.
use
getQNameDisplayStyle() 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 types
|
int |
getReportExtensionIndex() |
java.lang.String |
getSecretProperty(java.lang.String key)
Retrieves secret property value according given key.
|
java.util.List<Element> |
getSelectedFavoriteElements() |
Style |
getStyle()
Gets style that holds two properties manager - one for visible and user editable properties, other for
invisible project properties.
|
StyleManager |
getSymbolStyles()
Gets symbol style manager.
|
int |
getTipsStyle()
Deprecated.
|
ProjectOptions.TooltipsStyleChoice |
getTooltipsStyle()
Returns Tooltips Style property
|
Package |
getTransformationDestination() |
java.util.Collection<Element> |
getUniqueElementNumberScope()
Get the Packages where autoIds are to be unique
|
java.util.Map<java.lang.String,java.lang.String> |
getUnlockedElementRemovalInfo() |
com.nomagic.magicdraw.core.project.options.UserProjectOptions |
getUserProjectOptions() |
java.lang.String |
getValidationIgnoredOption() |
boolean |
isAutomaticBehaviorCreationMode()
Gets automatic behavior creation property value.
|
boolean |
isAutomaticTypeCreationMode()
Gets automatic type creation property value.
|
boolean |
isAutoNumbering()
Get the state of the autoNumber Option
|
boolean |
isAutoSynchronizeParametersAndArguments() |
boolean |
isBrowserVisible()
Gets browser visibility flag
|
boolean |
isCheckElementNumberUniques()
Get the value to check element id uniques in all id properties
|
boolean |
isCheckForCyclicDependencies()
Returns whether check for cyclic dependencies must be performed.
|
boolean |
isCheckIdUniques()
Get the value to check element id uniques in all id properties
|
boolean |
isDisplayAllActivityParameterNodesInDiagrams()
Indicates if activity parameter nodes should be displayed in diagrams.
|
boolean |
isDisplayAllPinsInDiagrams() |
boolean |
isDisplayElementNumberInBrowser()
Get the value of display/hide autoId in the Browser
|
boolean |
isDisplayNestedInstances()
Get the state of the display nested instances property
|
boolean |
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-Only
|
boolean |
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 project
|
boolean |
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.
|
void |
propertyChange(java.beans.PropertyChangeEvent evt)
Listens for property change event.
|
void |
registerDiagramViewOptions(com.nomagic.magicdraw.core.options.DiagramViewOptions options)
Associates DiagramViewOptions object with corresponding PropertyManager.
|
static void |
remapGroupInUI(java.util.Collection<java.lang.String> groupsToRemap,
Group newGroup)
Remap properties group to a some other group in options UI
|
static void |
removeConfigurator(ProjectOptionsConfigurator configurator)
Remove project options configurator
|
void |
removeHiddenBrowserTree(java.lang.String treeID) |
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 property
|
void |
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 option
|
void |
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) |
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 flag
|
void |
setChangeOwnershipForNavigability(boolean value)
Sets the HOW_DOT_NOTATION_FOR_ASSOCIATIONS property value.
|
void |
setCheckElementNumberUniques(boolean value)
Set the value to check element number uniques
|
void |
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 properties
|
void |
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 value
|
void |
setDefaults()
Sets default project options.
|
void |
setDependencySeverityLevel(com.nomagic.magicdraw.core.options.DependencySeverityLevel value)
Sets check for cyclic dependencies property value.
|
void |
setDetectIllegalModelReferences(boolean isDetectIllegalReferences) |
void |
setDiagramContextMode(java.lang.String newValue)
Sets diagram context mode for project
|
void |
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 Browser
|
void |
setDisplayNestedInstances(boolean value)
Set Display Nested instances option
|
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) |
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.
use
ProjectSpecificLocationRegister to store and retrieve this information |
void |
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 number
|
void |
setLockFreeEditingEnabled(boolean enabled)
Enables or disables lock free editing
|
void |
setLocksFilterUsername(java.lang.String userName)
Sets Lock view filter user name
|
void |
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.
|
void |
setPreCommitValidationSuites(Package[] elements)
Sets validation suites for pre-commit validation.
|
void |
setProject(Project project)
Set project for the options.
|
void |
setPublicBranchSyncMode(com.nomagic.magicdraw.properties.SyncMode syncMode)
Element hiding public branch synchronization mode.
|
void |
setQNameDisplayAbsolute(boolean value)
Deprecated.
use
setQNameDisplayStyle(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 creation
|
void |
setReportExtensionIndex(int index) |
void |
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 |
setSelectedFavoriteElements(java.util.List<Element> elements) |
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 property
|
void |
setTransformationDestination(Package destination) |
void |
setTransformationInPlace(boolean inPlace) |
void |
setUniqueElementNumberScope(Element[] elements)
Set the Packages where AutoIds are to be unique
|
void |
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 diagrams
|
void |
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) |
void |
setXpdlImportLocation(java.lang.String importLocation) |
boolean |
showDotNotationForAssociations()
Gets the SHOW_DOT_NOTATION_FOR_ASSOCIATIONS property value
|
void |
unregisterDiagramViewOptions(com.nomagic.magicdraw.core.options.DiagramViewOptions options)
Removes corresponding PropertyManager from project options.
|
static void |
updateBrowserAfterFilterChange()
Updates a
Browser after the filtering was done through
the GUI element. |
static void |
updateBrowserAfterFilterChange(java.util.function.Consumer<Browser> savedStateBrowserConsumer)
Updates a
Browser after the filtering was done through
the GUI element. |
clone
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, setMDElement, setProjectProvider, sGetID, toString
public static final java.lang.String OPTIONS_LOCK
public static final java.lang.String PROJECT_GENERAL_PROPERTIES
getManager(String)
,
Constant Field Valuespublic static final java.lang.String PROJECT_INVISIBLE_PROPERTIES
getManager(String)
,
Constant Field Valuespublic static final java.lang.String PERSONAL_INVISIBLE_PROPERTIES
getManager(String)
,
Constant Field Valuespublic static final java.lang.String PERSONAL_VISIBLE_PROPERTIES
public static final java.lang.String STYLE_USER_PROPERTIES
public static final java.lang.String STYLE_PERSONAL_PROPERTIES
public static final java.lang.String STYLE_DIAGRAM_PROPERTIES
public static final java.lang.String STYLE_MODEL_ELEMENT_DEFAULTS
public static final java.lang.String ACTIVE_VALIDATION_GROUP
public static final java.lang.String VALIDATION_GROUP
public static final java.lang.String PRE_COMMIT_VALIDATION_GROUP
public static final java.lang.String COMPOSITION_INSPECTION_GROUP
public static final java.lang.String DIAGRAM_ASPECTS_GROUP
public static final java.lang.String COMPLETE_DIAGRAMS
public static final java.lang.String CREATE_AUTOMATICALLY
public static final java.lang.String DO_NOT_CREATE
public static final java.util.List DIAGRAM_CONTEXT_MODES
public static final java.lang.String COLLABORATION_GROUP
public static final java.lang.String ELEMENT_HIDING_GROUP
public static final java.lang.String LOCKING_GROUP
public static final java.lang.String DEPENDENCY_CHECKER_GROUP
public static final java.lang.String QNAME_DISPLAY_STYLE_ABSOLUTE
public static final java.lang.String QNAME_DISPLAY_STYLE_RELATIVE
public static final java.lang.String QNAME_DISPLAY_STYLE_MODEL_RELATIVE
public static final java.lang.String QNAME_DISPLAY_STYLE_MODEL_OR_LIBRARY_RELATIVE
public static final java.util.List QNAME_DISPLAY_STYLE_OPTIONS
public static final java.lang.String LAYOUT_TEMPLATE_CREATION_MODE_USAGE
public static final java.lang.String LAYOUT_TEMPLATE_CREATION_MODE_DEFINITION
public static final java.util.List LAYOUT_TEMPLATE_CREATION_MODES
public static final java.lang.String NUMBERING_GROUP
public static final java.lang.String BROWSER_GROUP
public static final java.lang.String DIAGRAMS_GROUP
public static final java.lang.String GENERAL_GROUP
@Deprecated public static final java.lang.String UNIQUE_ELEMENT_NUMBER_PROJECT_SCOPE
@Deprecated public static final java.lang.String UNIQUE_ELEMENT_NUMBER_PACKAGE_SCOPE
@Deprecated public static final java.util.List UNIQUE_ELEMENT_NUMBER_SCOPE_OPTIONS
@Deprecated public static final int NO_TIPS
@Deprecated public static final int NAME_TIPS
@Deprecated public static final int DOC_TIPS
public static final int INDEX_NONE
public static final int INDEX_COMMON
public static final int INDEX_CUSTOM
public static final java.lang.String COMPOSITION_INSPECTION_SEVERITY_STANDARD
public static final java.lang.String COMPOSITION_INSPECTION_SEVERITY_ADVANCED
public static final java.util.List<java.lang.String> COMPOSITION_INSPECTION_SEVERITY_CHOICE
public ProjectOptions()
public static void remapGroupInUI(java.util.Collection<java.lang.String> groupsToRemap, Group newGroup)
groupsToRemap
- groups to remapnewGroup
- new grouppublic static java.util.Map<java.util.Collection<java.lang.String>,Group> getGroupRemap()
public static ProjectOptions createDefaultProjectOptions(Project project)
project
- projectpublic void setProject(Project project)
project
- projectpublic void setDefaults()
public Style getStyle()
public void setStyle(Style style)
style
- project propertiespublic Style getPersonalOptionsStyle()
public Style getDiagramViewStyle()
public StyleManager getSymbolStyles()
public void addModuleDirectory(java.lang.String directory)
directory
- directory to add.public void checkAndAddModuleDirectory(java.lang.String directory)
directory
- directory to add.public void setModulesDirectories(java.util.Collection<java.lang.String> collection)
collection
- collections of String objects specifying paths to module directories.public java.util.List<java.lang.String> getModulesDirectories(boolean resolvePathVariables)
resolvePathVariables
- true if path variables must be resolved (real paths returned)@Deprecated public void setTipsStyle(int st)
setTooltipsStyle(TooltipsStyleChoice)
st
- tips style constant.@Deprecated public int getTipsStyle()
getTooltipsStyle()
public void accept(Visitor v) throws java.lang.Exception
MDElement
public void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange
in interface java.beans.PropertyChangeListener
public static void updateBrowserAfterFilterChange()
public static void updateBrowserAfterFilterChange(java.util.function.Consumer<Browser> savedStateBrowserConsumer)
Browser
after the filtering was done through
the GUI element.
Method does save the state of trees
and restores it before returning from a call.savedStateBrowserConsumer
- an implementation of Consumer
that accepts a Browser
whose state
was already saved.public void setBrowserItemsTypes(@CheckForNull java.util.Collection v)
v
- collection of String objects short name of class type (something like ClassTypes.getShortName(Actor.class)
).public java.util.Collection getBrowserItemsTypes()
ClassTypes.getShortName(Actor.class)
).public void setBrowserVisible(boolean v)
public boolean isBrowserVisible()
public void setChoosePackageLastSelection(Package pck)
@CheckForNull public Package getChoosePackageLastSelection()
public void setDisableHighlightSuspended(java.util.Collection<? extends BaseElement> elements)
public java.util.Set<BaseElement> getDisableHighlightSuspended()
@CheckForNull public PropertyManager getManager(java.lang.String name)
PROJECT_GENERAL_PROPERTIES
,
PROJECT_INVISIBLE_PROPERTIES
,
PERSONAL_INVISIBLE_PROPERTIES
,
PERSONAL_VISIBLE_PROPERTIES
@CheckForNull public Property getProperty(java.lang.String manager, java.lang.String id)
public void addProperty(java.lang.String manager, Property p)
public java.util.List<java.lang.String> getRecentlyOpenedWindowsIDs()
public void setRecentlyOpenedWindowsIDs(java.util.List<java.lang.String> ids)
public void setBrowserLayout(@CheckForNull java.lang.String rez)
rez
- browser layout value@CheckForNull public java.lang.String getBrowserLayout()
public void setDiagramsLayout(@CheckForNull java.lang.String rez)
@CheckForNull public java.lang.String getDiagramsLayout()
public void setRecentTypes(@CheckForNull java.util.List<Classifier> recentMetaclasses)
recentMetaclasses
- recent metaclassespublic java.util.List<Classifier> getRecentTypes()
public void setLayoutBeforeFullScreen(@CheckForNull java.lang.String rez)
public void setLayoutBeforeExitFullScreen(@CheckForNull java.lang.String rez)
@CheckForNull public java.lang.String getLayoutBeforeFullScreen()
@CheckForNull public java.lang.String getLayoutBeforeExitFullScreen()
public void setExitFullScreenToolbarBounds(@CheckForNull java.awt.Rectangle bounds)
bounds
- new bounds.@CheckForNull public java.awt.Rectangle getExitFullScreenToolbarBounds()
public java.util.List<java.lang.String> getAdditionalBrowserTrees()
public void setAdditionalBrowserTrees(java.util.Collection<java.lang.String> trees)
public java.util.List<java.lang.String> getHiddenBrowserTrees()
public void setHiddenBrowserTrees(java.util.Collection<java.lang.String> trees)
public void addHiddenBrowserTree(java.lang.String treeID)
public void removeHiddenBrowserTree(java.lang.String treeID)
public void setUseDiagramInfoCustomMode(boolean value)
public boolean isUseDiagramInfoCustomMode()
public void setExportedVersionChanged(boolean value)
public boolean isExportedVersionChanged()
public void setDiagramInfoCustomHTML(java.lang.String value)
public java.lang.String getDiagramInfoCustomHTML()
public void setDiagramInfoKeywords(java.util.Collection<java.lang.String> keywords)
public java.util.List<java.lang.String> getDiagramInfoKeywords()
public void setSecretProperty(java.lang.String key, @CheckForNull java.lang.String value)
key
- key for the property.value
- value of the property.public java.lang.String getSecretProperty(java.lang.String key)
key
- key of the property.public void setInvisibleProperties(PropertyManager newManager)
public void setLastSelectedTransformationName(@CheckForNull java.lang.String name)
@CheckForNull public java.lang.String getLastSelectedTransformationName()
public void setTransformationDestination(@CheckForNull Package destination)
@CheckForNull public Package getTransformationDestination()
public void setLastSelectedTypeMapProfileName(@CheckForNull java.lang.String name)
@CheckForNull public java.lang.String getLastSelectedTypeMapProfileName()
public void setLastSelectedTypeMapProfileDirection(boolean forward)
public boolean getLastSelectedTypeMapProfileDirection()
public void setTransformationInPlace(boolean inPlace)
public boolean isTransformationInPlace()
public void setLastSelectedElement(BaseElement element)
@CheckForNull public BaseElement getLastSelectedElement()
public void setIndexMode(int status)
public int getIndexMode()
public void setIndexScopeAll(boolean all)
public boolean isIndexScopeAll()
public void setIndexScope(Package[] scope)
@CheckForNull public Package[] getIndexScope()
public void setIndexTypes(java.util.Collection types)
@CheckForNull public java.util.Collection getIndexTypes()
@Deprecated public void setLastDirectory(java.lang.String path)
ProjectSpecificLocationRegister
to store and retrieve this informationpath
- last dir path.public int getReportExtensionIndex()
public void setReportExtensionIndex(int index)
@Deprecated public java.lang.String getLastDirectory()
ProjectSpecificLocationRegister
to store and retrieve this informationpublic void addInvisibleProperty(Property property)
property
- property@CheckForNull public Property getInvisibleProperty(java.lang.String id)
id
- property identifierpublic void addPersonalVisibleProperty(Property property)
property
- property@CheckForNull public Property getPersonalVisibleProperty(java.lang.String id)
id
- property identifierpublic static void addConfigurator(ProjectOptionsConfigurator configurator)
configurator
- options configurator.public static void removeConfigurator(ProjectOptionsConfigurator configurator)
configurator
- options configurator.public void setModelElementStyle(Style modelElementStyle)
modelElementStyle
- stylepublic Style getFullModelElementStyle()
public Style getActualModelElementStyle()
public Style getModifiedModelElementsStyle()
public Style createDefaultModelElementStyle()
public boolean showDotNotationForAssociations()
public void setShowDotNotationForAssociations(boolean value)
value
- boolean property valuepublic boolean changeOwnershipForNavigability()
public void setChangeOwnershipForNavigability(boolean value)
value
- boolean property valuepublic void setBooleanProperty(boolean value, java.lang.String manager, java.lang.String id, @CheckForNull java.lang.String group)
public boolean isDisplayAllActivityParameterNodesInDiagrams()
public void setDisplayAllActivityParameterNodesInDiagrams(boolean displayAllActivityParameterNodesInDiagrams)
displayAllActivityParameterNodesInDiagrams
- property value to set.public boolean isDisplayAllPinsInDiagrams()
public void setDisplayAllPinsInDiagrams(boolean displayAllPinsInDiagrams)
public boolean isSeparateDecisionMergeAndJoinForkNotation()
public void setSeparateDecisionMergeAndJoinForkNotation(boolean separateDecisionMergeAndJoinForkNotation)
public boolean isAutoSynchronizeParametersAndArguments()
public boolean isLayoutScenarioDiagram()
public void setLayoutScenarioDiagram(boolean value)
value
- value of the property.public void setAutoSynchronizeParametersAndArguments(boolean value)
value
- - value of the property.public void setGlobalPermission(boolean value)
value
- - value of the property.@Deprecated public boolean getQNameDisplayAbsolute()
getQNameDisplayStyle()
instead.public java.lang.String getQNameDisplayStyle()
@Deprecated public void setQNameDisplayAbsolute(boolean value)
setQNameDisplayStyle(String)
instead.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.public void setQNameDisplayStyle(java.lang.String newValue)
newValue
- one of the #QNAME_DISPLAY_STYLE_OPTIONS collection elements item, otherwise nothing happens -
property remains unchanged.public java.lang.String getLayoutTemplateCreationMode()
public void setLayoutTemplateCreationMode(java.lang.String newValue)
public ProjectOptions.TooltipsStyleChoice getTooltipsStyle()
public void setTooltipsStyle(ProjectOptions.TooltipsStyleChoice value)
value
- new value.public void setIgnoredValidationResults(@CheckForNull java.lang.String[] ignoredPairs)
public java.util.Collection<Package> getIgnoredActiveSuites()
public java.util.Collection<Package> getIgnoredPassiveValidationSuites()
public java.util.Collection<Constraint> getIgnoredValidationRules()
public java.util.Collection<Constraint> getIgnoredPassiveValidationRules()
public java.util.Collection<java.lang.String> getIgnoredDuplicatedModules()
public void setIgnoredDuplicatedModules(java.util.Collection<java.lang.String> value)
value
- modules for which warning that they found in duplicated path is not shown.public void setIgnoredActiveSuites(@CheckForNull Package[] elements)
public void setIgnoredPassiveValidationSuites(@CheckForNull Package[] elements)
public void setIgnoredValidationRules(@CheckForNull Constraint[] elements)
public void setIgnoredPassiveValidationRules(@CheckForNull Constraint[] elements)
public void setPublicBranchSyncMode(com.nomagic.magicdraw.properties.SyncMode syncMode)
syncMode
- sync mode to set@CheckForNull public com.nomagic.magicdraw.properties.SyncMode getPublicBranchSyncMode()
public boolean isLockFreeEditingEnabled()
true
if enabled, false
otherwisepublic boolean isGlobalEditingEnabled()
true
if Read-Write, false
if Read-Onlypublic void setLockFreeEditingEnabled(boolean enabled)
enabled
- true
to enable, false
to disablepublic java.util.Collection<Element> getActiveValidationScope()
public void setActiveValidationScope(@CheckForNull Element[] elements)
public boolean isFilterExcludesAuxiliaryResources()
public void setFilterExcludesAuxiliaryResources(boolean value)
public void setFilterHidesIrrelevantElements(boolean value)
public boolean isFilterHidesIrrelevantElements()
public void setFilterShowsImportedElements(boolean value)
public boolean isFilterShowsImportedElements()
public void setFilterEnabled(boolean value)
public boolean isFilterEnabled()
public void setSelectedFavoriteElements(java.util.List<Element> elements)
public java.util.List<Element> getSelectedFavoriteElements()
public java.util.List<Element> getFavoriteElements()
public void setFavoriteElements(java.util.List<Element> elements)
@CheckForNull public ElementListProperty getFavoriteElementsProperty()
public void setActiveValidationSeverity(@CheckForNull EnumerationLiteral literal)
public void setPassiveValidationSeverity(@CheckForNull EnumerationLiteral literal)
@CheckForNull public EnumerationLiteral getActiveValidationSeverity()
@CheckForNull public EnumerationLiteral getPassiveValidationSeverity()
public void setCompositionInspectionSeverity(java.lang.String severity)
public java.lang.String getCompositionInspectionSeverity()
public void setDetectIllegalModelReferences(boolean isDetectIllegalReferences)
public boolean getDetectIllegalModelReferences()
public void setValidationIgnoredOption(@CheckForNull java.lang.String value)
@CheckForNull public java.lang.String getValidationIgnoredOption()
public void setMarkInTreeAndDiagrams(boolean mark)
public boolean isMarkInTreeAndDiagrams()
public void setExcludeReadonlyElements(boolean exclude)
public boolean isExcludeElementsFromReadOnlyModules()
public void setValidateOnlyActiveDiagrams(boolean validateOnlyActiveDiagrams)
public boolean isValidateOnlyActiveDiagrams()
public void setValidateOnlyLocallyChangedElementsPreCommit(boolean validateOnlyLocallyChangedElements)
validateOnlyLocallyChangedElements
- new valuepublic void setExcludeElementsFromReadOnlyModulesPreCommit(boolean excludeFromUsedReadOnly)
excludeFromUsedReadOnly
- new valuepublic boolean isValidateOnlyLocallyChangedElementsPreCommit()
public boolean isExcludeElementsFromReadOnlyModulesPreCommit()
public void setPreCommitValidationSuites(@CheckForNull Package[] elements)
elements
- suites@CheckForNull public java.util.Collection<Package> getPreCommitValidationSuites()
public void setPreCommitValidationExcludedScope(@CheckForNull Element[] elements)
elements
- excluded elementspublic java.util.Collection<Element> getPreCommitValidationExcludedScope()
public void setMinimalSeverityProhibitingCommit(@CheckForNull EnumerationLiteral literal)
literal
- new severity. Null value sets the highest level - None (MDUML-99234)@CheckForNull public EnumerationLiteral getMinimalSeverityProhibitingCommit()
public void setMinimalSeverityProducingPreCommitWarning(@CheckForNull EnumerationLiteral literal)
literal
- new severity. Null value sets the highest level - None (MDUML-99234)@CheckForNull public EnumerationLiteral getMinimalSeverityProducingPreCommitWarning()
public void setLastSelectedModulePath(@CheckForNull java.lang.String path)
path
- module path.@CheckForNull public java.lang.String getLastSelectedModulePath()
public void setLocksFilterUsername(java.lang.String userName)
userName
- name of user which was filtered in locks view.public java.lang.String getLocksFilterUsername()
public void afterLoad()
public void addToProjectSpellingIgnoreList(java.lang.String newTextToBeIgnored)
@CheckForNull public java.lang.String[] getProjectSpellingIgnoreList()
public boolean isCheckForCyclicDependencies()
public void setCheckForCyclicDependencies(boolean value)
value
- new value.public com.nomagic.magicdraw.core.options.DependencySeverityLevel getDependencySeverityLevel()
public void setDependencySeverityLevel(com.nomagic.magicdraw.core.options.DependencySeverityLevel value)
value
- new value.public ProjectOptions.ApplyPropertyImageChoice getApplyPropertyImageProperty()
public void setApplyPropertyImageProperty(ProjectOptions.ApplyPropertyImageChoice value)
value
- new value.public java.lang.String getDiagramContextMode()
public void setDiagramContextMode(java.lang.String newValue)
newValue
- context modepublic boolean isIgnoreStandardProfiles()
public void setIgnoreStandardProfiles(boolean value)
value
- new value.public Project getProjectImpl()
getProjectImpl
in class com.nomagic.magicdraw.uml.MDElementImpl
public void registerDiagramViewOptions(com.nomagic.magicdraw.core.options.DiagramViewOptions options)
options
- diagram view optionspublic void unregisterDiagramViewOptions(com.nomagic.magicdraw.core.options.DiagramViewOptions options)
options
- optionspublic com.nomagic.magicdraw.core.project.options.CommonProjectOptions getCommonProjectOptions()
public void setCommonProjectOptions(com.nomagic.magicdraw.core.project.options.CommonProjectOptions commonProjectOptions)
public com.nomagic.magicdraw.core.project.options.UserProjectOptions getUserProjectOptions()
public void setUserProjectOptions(com.nomagic.magicdraw.core.project.options.UserProjectOptions userProjectOptions)
public void setAutoNumbering(boolean value)
value
- true of autoNumber option is onpublic boolean isAutoNumbering()
public void setDisplayNestedInstances(boolean value)
value
- true if to display nested instances, else falsepublic boolean isDisplayNestedInstances()
public void setDisplayElementNumberInBrowser(boolean value)
value
- true if autoIds are to be shownpublic void setLockElementNumber(boolean value)
value
- true if lock numbers, else falsepublic void setCheckIdUniques(boolean value)
value
- true if to check id uniques, else falsepublic void setCheckElementNumberUniques(boolean value)
value
- true if to check id uniques, else falsepublic boolean isDisplayElementNumberInBrowser()
public boolean isLockedElementNumber()
public boolean isCheckIdUniques()
public boolean isCheckElementNumberUniques()
public java.util.Collection<Element> getUniqueElementNumberScope()
public void setUniqueElementNumberScope(@CheckForNull Element[] elements)
elements
- the Packagespublic void setUseI18NTextInDiagrams(boolean value)
value
- valuepublic boolean isUseI18NTextInDiagrams()
@CheckForNull public java.lang.String getLastSelectedXpdlImportLocation()
public void setXpdlImportLocation(java.lang.String importLocation)
public java.util.List<java.lang.String> getFavoriteHyperlinks()
public void setFavoriteHyperlinks(java.util.List<java.lang.String> urls)
urls
- URLs of hyperlinks.public void setUnlockedElementRemovalInfo(@CheckForNull java.util.Map<java.lang.String,java.lang.String> unlockedElementRemovalInfo)
@CheckForNull public java.util.Map<java.lang.String,java.lang.String> getUnlockedElementRemovalInfo()
public boolean isUseDiagramsAspects()
public void setUseDiagramsAspects(boolean use)
public boolean isSuspendAutoResizingOfShapes()
public void setSuspendAutoResizingOfShapes(boolean suspend)
public boolean isSuspendAutoDisplayingOfLabels()
public void setSuspendAutoDisplayingOfLabels(boolean suspend)
public boolean isHighlightSuspended()
public void setHighlightSuspended(boolean highlight)
public java.util.Collection<Stereotype> getIgnoredDiagramAspects()
public void setIgnoredDiagramAspects(@CheckForNull Stereotype[] aspects)
public void setAutomaticTypeCreationMode(boolean val)
val
- - automatic type creation property valuepublic boolean isAutomaticTypeCreationMode()
public void setAutomaticBehaviorCreationMode(boolean val)
val
- - automatic behavior creation property valuepublic boolean isAutomaticBehaviorCreationMode()
@CheckForNull public java.lang.Integer getDecimalPlaces()
public void setDecimalPlaces(@CheckForNull java.lang.Integer decimalPlaces)
decimalPlaces
- option, null indicates option off