public class GenericDiagramWizardContributor extends AbstractDiagramWizardContributor
Uses the following contribution parameters:
Constructor and Description |
---|
GenericDiagramWizardContributor() |
Modifier and Type | Method and Description |
---|---|
AbstractDiagram |
actionPerformed(ModelElement diagramContext,
java.lang.String diagramName,
java.lang.String diagramDescription)
Execute the creation action.
|
protected boolean |
checkCanCreateIn(ModelElement owner)
Called by
#accept(MObject) to check whether the given object has sufficient rights to create the wizard new element. |
void |
dispose()
Release resources allocated by this contributor.
|
ElementDescriptor |
getCreatedElementType()
Get the type of element which is created by this contributor.
|
accept, findStereotypeFromSpec, getDetails, getHelpUrl, getIconDescriptor, getIconImage, getInformation, getLabel, getModelViewTemplateId, getModule, getParameters, getPreviewImage, getScopes, getWizardPanel, setDetails, setHelpUrl, setIconDescriptor, setInformation, setLabel, setModelViewTemplateId, setModule, setParameters, setPreviewImage, setScopes
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
accept, getDetails, getHelpUrl, getIconDescriptor, getIconImage, getInformation, getLabel, getModelViewTemplateId, getModule, getPreviewImage, getScopes, getWizardPanel, setDetails, setHelpUrl, setIconDescriptor, setInformation, setLabel, setModelViewTemplateId, setModule, setParameters, setPreviewImage, setScopes
public AbstractDiagram actionPerformed(ModelElement diagramContext, java.lang.String diagramName, java.lang.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)
AbstractWizardContributor
#accept(MObject)
to check whether the given object has sufficient rights to create the wizard new element.checkCanCreateIn
in class AbstractWizardContributor
owner
- the new element owner.public ElementDescriptor getCreatedElementType()
IWizardContributor
public void dispose()
IWizardContributor
Should for example dispose the icon allocated by #getIcon()
if any.