public class DiagramCreationStandardHandler extends ElementCreationStandardHandler
Used parameters:
Modifier and Type | Field and Description |
---|---|
static String |
IS_TO_OPEN
Command parameter indicating wheter or not the created diagram is to be opened in an editor.
|
static 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 String |
getStyle() |
void |
initialize(List<ElementScope> scopes,
Map<String,String> hParameters)
This method is called right after the constructor to initialize scopes and parameters for the handler.
|
protected boolean |
isToOpen() |
protected void |
postConfigureElement(Element 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 String IS_TO_OPEN
public static final String STYLE_NAME
public DiagramCreationStandardHandler()
protected void postConfigureElement(Element newElement, IModule module)
postConfigureElement
in class ElementCreationStandardHandler
newElement
- the new created elementmodule
- the modulepublic void initialize(List<ElementScope> scopes, Map<String,String> hParameters)
IModuleCommandHandler
initialize
in interface IModuleCommandHandler
initialize
in class ElementCreationStandardHandler
protected String getStyle()
protected boolean isToOpen()