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, setScopesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaccept, getDetails, getHelpUrl, getIconDescriptor, getIconImage, getInformation, getLabel, getModelViewTemplateId, getModule, getPreviewImage, getScopes, getWizardPanel, setDetails, setHelpUrl, setIconDescriptor, setInformation, setLabel, setModelViewTemplateId, setModule, setParameters, setPreviewImage, setScopespublic AbstractDiagram actionPerformed(ModelElement diagramContext, java.lang.String diagramName, java.lang.String diagramDescription)
AbstractWizardContributorNote : a model transaction is already open by the caller.
actionPerformed in interface IDiagramWizardContributoractionPerformed in interface IWizardContributoractionPerformed in class AbstractWizardContributordiagramContext - 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 AbstractWizardContributorowner - the new element owner.public ElementDescriptor getCreatedElementType()
IWizardContributorpublic void dispose()
IWizardContributor
Should for example dispose the icon allocated by #getIcon() if any.