public class GenericDiagramWizardContributor extends AbstractDiagramWizardContributor
Uses the following contribution parameters:
Constructor and Description |
---|
GenericDiagramWizardContributor() |
Modifier and Type | Method and Description |
---|---|
AbstractDiagram |
actionPerformed(ModelElement diagramContext,
String diagramName,
String diagramDescription)
Execute the creation action.
|
protected boolean |
checkCanCreateIn(ModelElement owner)
Called by
AbstractDiagramWizardContributor.accept(MObject) to check whether the given object has
sufficient rights to create the wizard new element. |
accept, getWizardPanel
dispose, findStereotypeFromSpec, getDetails, getHelpUrl, getIcon, getInformation, getLabel, getModule, getParameters, getPreviewImage, getScopes, setDetails, setHelpUrl, setIcon, setInformation, setLabel, setModule, setParameters, setPreviewImage, setScopes
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
dispose, getDetails, getHelpUrl, getIcon, getInformation, getLabel, getModule, getPreviewImage, getScopes, setDetails, setHelpUrl, setIcon, setInformation, setLabel, setModule, setParameters, setPreviewImage, setScopes
public AbstractDiagram actionPerformed(ModelElement diagramContext, String diagramName, String diagramDescription)
AbstractWizardContributor
Note : a model transaction is already open by the caller.
actionPerformed
in interface IDiagramWizardContributor
actionPerformed
in interface IWizardContributor
actionPerformed
in class AbstractWizardContributor
diagramContext
- the model element on which the wizard is rundiagramName
- the name of the element to create.diagramDescription
- the description of the element to create.protected boolean checkCanCreateIn(ModelElement owner)
AbstractDiagramWizardContributor
AbstractDiagramWizardContributor.accept(MObject)
to check whether the given object has
sufficient rights to create the wizard new element.checkCanCreateIn
in class AbstractDiagramWizardContributor
owner
- the new element owner.