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 TypeMethodDescriptionvoidaddConfigurator(Class<?> elementClass, ISpecificationNodeConfigurator configurator) Adds specification node configurator for given Element typevoideditSpecification(SpecificationRecord record) Opens non-modal specification dialog activated pane specified by record.voideditSpecification(SpecificationRecord record, boolean modal) Opens specification dialog and activated pane specified by record.voideditSpecification(Element element) Opens specification dialog for given ModelElement.voideditSpecification(Element element, boolean modal) Opens specification dialog for given ModelElement.static SpecificationDialogManagerReturns shared instance of this manager.Returns current specification dialog title creator.voidremoveConfigurator(Class<?> elementClass, ISpecificationNodeConfigurator configurator) Removes specification dialog node configurator for given Element type.voidsetTitleCreator(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, projectSavedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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.
-