@OpenApi public class SpecificationDialogManager extends ProjectEventListenerAdapter
| Modifier and Type | Method and Description |
|---|---|
void |
addConfigurator(java.lang.Class elementClass,
ISpecificationNodeConfigurator configurator)
Adds specification node configurator for given Element type
|
void |
editSpecification(Element element)
Opens specification dialog for given ModelElement.
|
void |
editSpecification(Element element,
boolean modal)
Opens specification dialog for given ModelElement.
|
void |
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.
|
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
|
projectActivated, projectActivatedFromGUI, projectClosed, projectCreated, projectDeActivated, projectOpened, projectOpenedFromGUI, projectPreActivated, projectPreClosed, projectPreClosedFinal, projectPreDeActivated, projectPreReplaced, projectPreSaved, projectReplaced, projectSaved@OpenApi public static SpecificationDialogManager getManager()
@OpenApi public void editSpecification(Element element)
element - the given Element.@OpenApi public void editSpecification(Element element, boolean modal)
element - the given Element.modal - open modal specification window@OpenApi public void editSpecification(SpecificationRecord record)
record - specification dialog record containing a reference to element and pane to activate@OpenApi public void editSpecification(SpecificationRecord record, boolean modal)
record - specification dialog record containing a reference to element and pane to activatemodal - open modal specification window@OpenApi
public void addConfigurator(java.lang.Class elementClass,
ISpecificationNodeConfigurator configurator)
elementClass - the specific class of Element(for example com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Classifier)configurator - the given configurator.@OpenApi
public void removeConfigurator(java.lang.Class elementClass,
ISpecificationNodeConfigurator configurator)
elementClass - the specific class of Element(for example com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Classifier)configurator - the given configurator.@OpenApi public SpecificationTitleCreator getTitleCreator()
@OpenApi public void setTitleCreator(SpecificationTitleCreator titleCreator)
titleCreator - title creator.