org.eclipse.gmt.umlx.tx.editor.regimes
Class TxRuleSheetRegime
java.lang.Object
org.eclipse.gmt.umlx.utils.ClassExtension<M>
org.eclipse.gmt.umlx.editor.regime.AbstractRegime<M,P>
org.eclipse.gmt.umlx.editor.regime.AbstractNodeRegimeCo0<M,P>
org.eclipse.gmt.umlx.editor.regime.AbstractNodeRegimeCo1<M,GDiagramParent,CM,CP>
org.eclipse.gmt.umlx.editor.regimes.GSheetRegime<TxRuleSheet,URelation,UTransformation>
org.eclipse.gmt.umlx.tx.editor.regimes.TxRuleSheetRegime
- All Implemented Interfaces:
- INodeRegimeCo0<TxRuleSheet,GDiagramParent>, INodeRegimeCo1<TxRuleSheet,GDiagramParent,URelation,UTransformation>, IRegime, IRegimeCo0<TxRuleSheet,GDiagramParent>, IRegimeCo1<TxRuleSheet,GDiagramParent,URelation,UTransformation>, IClassExtension
public class TxRuleSheetRegime
- extends GSheetRegime<TxRuleSheet,URelation,UTransformation>
Methods inherited from class org.eclipse.gmt.umlx.editor.regime.AbstractNodeRegimeCo1 |
canCoChange, coModelIsOptional, createChangeCoModelCommand, getCoModelClass, getCoModelFor, getCoModelFor, getCoModelParentClass, isLink, isNode, isRegimeCo1, isRegimeCo2, loadCoModelClass |
Methods inherited from class org.eclipse.gmt.umlx.editor.regime.AbstractRegime |
computeProblemMessage, createCreateChildLinkCommand, createCreateCommand, createLinkEnd, getBackElement, getBasicClass, getFacets, getModelClass, getParentModelClass, getSource, getSourceModelClass, getTarget, getTargetModelClass, initialise, isRegimeCo0, load, refreshProblemMessage, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
INSTANCE
public static final TxRuleSheetRegime INSTANCE
createModelObject
public TxRuleSheet createModelObject()
- Description copied from interface:
IRegime
- Create a new and uninitialised EMF object of the type managed by this regime.
- Specified by:
createModelObject
in interface IRegime
- Specified by:
createModelObject
in interface IRegimeCo0<TxRuleSheet,GDiagramParent>
- Overrides:
createModelObject
in class AbstractRegime<TxRuleSheet,GDiagramParent>
createOutline
public AbstractOutline createOutline(OutlineViewer viewer,
TxRuleSheet modelObject)
- Specified by:
createOutline
in interface IRegimeCo0<TxRuleSheet,GDiagramParent>
- Overrides:
createOutline
in class AbstractRegime<TxRuleSheet,GDiagramParent>
createPropertySource
public AbstractPropertySource createPropertySource(TxRuleSheet model)
- Specified by:
createPropertySource
in interface IRegimeCo0<TxRuleSheet,GDiagramParent>
- Overrides:
createPropertySource
in class AbstractRegime<TxRuleSheet,GDiagramParent>
getCoRegime
public INodeRegimeCo0<URelation,UTransformation> getCoRegime()
- Description copied from interface:
IRegime
- Return the co-regime if it has one.
- Specified by:
getCoRegime
in interface INodeRegimeCo1<TxRuleSheet,GDiagramParent,URelation,UTransformation>
- Specified by:
getCoRegime
in interface IRegime
- Specified by:
getCoRegime
in interface IRegimeCo0<TxRuleSheet,GDiagramParent>
- Specified by:
getCoRegime
in interface IRegimeCo1<TxRuleSheet,GDiagramParent,URelation,UTransformation>
- Specified by:
getCoRegime
in class AbstractNodeRegimeCo1<TxRuleSheet,GDiagramParent,URelation,UTransformation>
- Returns:
- co-regime class or null
getIcon
public java.lang.Enum getIcon()
- Description copied from interface:
IRegime
- Return the icon to be shown in the construction context (the Palette for
GCore objects, the Outline for ECore objects).
- Returns:
- the icon
getLabel
public java.lang.String getLabel()
- Description copied from interface:
IRegime
- Return a descriptive label for the managed object type
- Specified by:
getLabel
in interface IRegime
- Overrides:
getLabel
in class AbstractNodeRegimeCo1<TxRuleSheet,GDiagramParent,URelation,UTransformation>
- Returns:
- label
getNewNamePrefix
public java.lang.String getNewNamePrefix()
- Description copied from interface:
IRegime
- Return a prefix for autogenerated names.
- Specified by:
getNewNamePrefix
in interface IRegime
- Overrides:
getNewNamePrefix
in class GSheetRegime<TxRuleSheet,URelation,UTransformation>
- Returns:
- prefix