public class MatrixWizardStandardContributor extends AbstractMatrixWizardContributor
IMatrixWizardContributor that creates a matrix from the attached matrix descriptor.
Used parameters:
getDescriptor()| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PARAM_QUERY_USE_ADDITIONS |
| Constructor and Description |
|---|
MatrixWizardStandardContributor() |
| Modifier and Type | Method and Description |
|---|---|
MatrixDefinition |
actionPerformed(ModelElement matrixContext,
java.lang.String matrixName,
java.lang.String matrixDescription)
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.
|
protected MatrixDescriptor |
getDescriptor()
Get the descriptor associated with this wizard contribution.
|
void |
setDescriptor(MatrixDescriptor desc)
initialize the descriptor associated with this wizard contribution.
|
createExternProcessor, createMatrixValueDefinition, createQueryDefinitionaccept, 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 static final java.lang.String PARAM_QUERY_USE_ADDITIONS
public MatrixDefinition actionPerformed(ModelElement matrixContext, java.lang.String matrixName, java.lang.String matrixDescription)
AbstractWizardContributorNote : a model transaction is already open by the caller.
actionPerformed in interface IMatrixWizardContributoractionPerformed in interface IWizardContributoractionPerformed in class AbstractWizardContributormatrixContext - the model element on which the wizard is runmatrixName - the name of the element to create.matrixDescription - the description of the element to create.public void setDescriptor(MatrixDescriptor desc)
IMatrixWizardContributordesc - the matrix descriptorprotected MatrixDescriptor getDescriptor()
public ElementDescriptor getCreatedElementType()
IWizardContributorpublic void dispose()
IWizardContributor
Should for example dispose the icon allocated by #getIcon() if any.
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.