Class SpecificationDialogManager
- java.lang.Object
-
- com.nomagic.magicdraw.core.project.ProjectEventListenerAdapter
-
- com.nomagic.magicdraw.ui.dialogs.specifications.SpecificationDialogManager
-
- All Implemented Interfaces:
ProjectEventListener
@OpenApi public final class SpecificationDialogManager extends ProjectEventListenerAdapter
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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addConfigurator(java.lang.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
getManager()
Returns shared instance of this manager.SpecificationTitleCreator
getTitleCreator()
Returns current specification dialog title creator.void
removeConfigurator(java.lang.Class<?> elementClass, ISpecificationNodeConfigurator configurator)
Removes specification dialog node configurator for given Element type.void
setTitleCreator(SpecificationTitleCreator titleCreator)
Sets specification dialog title creator-
Methods 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
-
-
-
-
Method Detail
-
getManager
@OpenApi public static SpecificationDialogManager getManager()
Returns shared instance of this manager.- Returns:
- instance of this manager.
-
editSpecification
@OpenApi public void editSpecification(Element element)
Opens specification dialog for given ModelElement. Dialog is not modal.- Parameters:
element
- the given Element.
-
editSpecification
@OpenApi public void editSpecification(Element element, boolean modal)
Opens specification dialog for given ModelElement.- Parameters:
element
- the given Element.modal
- open modal specification window
-
editSpecification
@OpenApi public void editSpecification(SpecificationRecord record)
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
@OpenApi public void editSpecification(SpecificationRecord record, boolean modal)
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(java.lang.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(java.lang.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
@OpenApi public SpecificationTitleCreator getTitleCreator()
Returns current specification dialog title creator.- Returns:
- title creator
-
setTitleCreator
@OpenApi public void setTitleCreator(SpecificationTitleCreator titleCreator)
Sets specification dialog title creator- Parameters:
titleCreator
- title creator.
-
-