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, createQueryDefinition
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 static final java.lang.String PARAM_QUERY_USE_ADDITIONS
public MatrixDefinition actionPerformed(ModelElement matrixContext, java.lang.String matrixName, java.lang.String matrixDescription)
AbstractWizardContributor
Note : a model transaction is already open by the caller.
actionPerformed
in interface IMatrixWizardContributor
actionPerformed
in interface IWizardContributor
actionPerformed
in class AbstractWizardContributor
matrixContext
- 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)
IMatrixWizardContributor
desc
- the matrix descriptorprotected MatrixDescriptor getDescriptor()
public ElementDescriptor getCreatedElementType()
IWizardContributor
public 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 AbstractWizardContributor
owner
- the new element owner.