public class DiagramCreationStandardHandler extends ElementCreationStandardHandler
Used parameters:
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
IS_TO_OPEN
Command parameter indicating wheter or not the created diagram is to be opened in an editor.
|
static java.lang.String |
STYLE_NAME
Command parameter containing created diagram style name.
|
CREATION_NAME, METACLASS_NAME, RELATION_NAME, STEREOTYPE_NAME
Constructor and Description |
---|
DiagramCreationStandardHandler()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
getStyle() |
void |
initialize(java.util.List<ElementScope> scopes,
java.util.Map<java.lang.String,java.lang.String> hParameters)
This method is called right after the constructor to initialize scopes and parameters for the handler.
|
protected boolean |
isToOpen() |
protected void |
postConfigureElement(MObject newElement,
IModule module)
Applies the diagram style and open the diagram if asked for.
|
accept, actionPerformed, getMetaclass, getName, getRelation, getStereotype
findStereotypeFromSpec, getParameter, getParameters, getScopes, isActiveFor
public static final java.lang.String IS_TO_OPEN
public static final java.lang.String STYLE_NAME
public DiagramCreationStandardHandler()
protected void postConfigureElement(MObject newElement, IModule module)
Deleting "newElement" in this method triggers an automatic rollback for the current transaction.
postConfigureElement
in class ElementCreationStandardHandler
newElement
- the new created elementmodule
- the modulepublic void initialize(java.util.List<ElementScope> scopes, java.util.Map<java.lang.String,java.lang.String> hParameters)
IModuleCommandHandler
initialize
in interface IModuleCommandHandler
initialize
in class ElementCreationStandardHandler
protected java.lang.String getStyle()
protected boolean isToOpen()