Class SpecificationDialogManager
java.lang.Object
com.nomagic.magicdraw.core.project.ProjectEventListenerAdapter
com.nomagic.magicdraw.ui.dialogs.specifications.SpecificationDialogManager
- All Implemented Interfaces:
ProjectEventListener
The manager of specification windows for all types of model elements.
This manager knows exactly what specification dialog to open for every specific element.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addConfigurator
(Class<?> elementClass, ISpecificationNodeConfigurator configurator) Adds specification node configurator for given Element typevoid
editSpecification
(SpecificationRecord record) Opens non-modal specification dialog activated pane specified by record.void
editSpecification
(SpecificationRecord record, boolean modal) Opens specification dialog and activated pane specified by record.void
editSpecification
(Element element) Opens specification dialog for given ModelElement.void
editSpecification
(Element element, boolean modal) Opens specification dialog for given ModelElement.static SpecificationDialogManager
Returns shared instance of this manager.Returns current specification dialog title creator.void
removeConfigurator
(Class<?> elementClass, ISpecificationNodeConfigurator configurator) Removes specification dialog node configurator for given Element type.void
setTitleCreator
(SpecificationTitleCreator titleCreator) Sets specification dialog title creatorMethods inherited from class com.nomagic.magicdraw.core.project.ProjectEventListenerAdapter
projectActivatedFromGUI, projectClosed, projectCreated, projectOpenedFromGUI, projectPreActivated, projectPreClosedFinal, projectPreDeActivated, projectPreSaved, projectReplaced, projectSaved
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.nomagic.magicdraw.core.project.ProjectEventListener
projectPreOpenedFromGUI, projectUsedFromGUI
-
Method Details
-
getManager
Returns shared instance of this manager.- Returns:
- instance of this manager.
-
editSpecification
Opens specification dialog for given ModelElement. Dialog is not modal.- Parameters:
element
- the given Element.
-
editSpecification
Opens specification dialog for given ModelElement.- Parameters:
element
- the given Element.modal
- open modal specification window
-
editSpecification
Opens non-modal specification dialog activated pane specified by record.- Parameters:
record
- specification dialog record containing a reference to element and pane to activate
-
editSpecification
Opens specification dialog and activated pane specified by record.- Parameters:
record
- specification dialog record containing a reference to element and pane to activatemodal
- open modal specification window
-
addConfigurator
@OpenApi public void addConfigurator(Class<?> elementClass, ISpecificationNodeConfigurator configurator) Adds specification node configurator for given Element type- Parameters:
elementClass
- the specific class of Element(for example com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Classifier)configurator
- the given configurator.
-
removeConfigurator
@OpenApi public void removeConfigurator(Class<?> elementClass, ISpecificationNodeConfigurator configurator) Removes specification dialog node configurator for given Element type.- Parameters:
elementClass
- the specific class of Element(for example com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Classifier)configurator
- the given configurator.
-
getTitleCreator
Returns current specification dialog title creator.- Returns:
- title creator
-
setTitleCreator
Sets specification dialog title creator- Parameters:
titleCreator
- title creator.
-