org.eclipse.gmt.umlx.tx.editor.regimes
Class UExpressionVariableRegime
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,P,CM,CP>
org.eclipse.gmt.umlx.tx.editor.regimes.UVariableRegime<UExpressionVariable,URelation,UExpression,org.eclipse.emf.ecore.EObject>
org.eclipse.gmt.umlx.tx.editor.regimes.UExpressionVariableRegime
- All Implemented Interfaces:
- INodeRegimeCo0<UExpressionVariable,URelation>, INodeRegimeCo1<UExpressionVariable,URelation,UExpression,org.eclipse.emf.ecore.EObject>, IRegime, IRegimeCo0<UExpressionVariable,URelation>, IRegimeCo1<UExpressionVariable,URelation,UExpression,org.eclipse.emf.ecore.EObject>, IClassExtension
public class UExpressionVariableRegime
- extends UVariableRegime<UExpressionVariable,URelation,UExpression,org.eclipse.emf.ecore.EObject>
Methods inherited from class org.eclipse.gmt.umlx.editor.regime.AbstractNodeRegimeCo1 |
canCoChange, coModelIsOptional, createChangeCoModelCommand, getCoModelClass, getCoModelFor, getCoModelFor, getCoModelParentClass, getLabel, isLink, isNode, isRegimeCo1, isRegimeCo2, loadCoModelClass |
Methods inherited from class org.eclipse.gmt.umlx.editor.regime.AbstractRegime |
canCopy, canDelete, computeProblemMessage, createCreateChildLinkCommand, createCreateCommand, createDeleteCommand, createLinkEnd, createView, getBackElement, getBasicClass, getFacets, getModelClass, getParentModelClass, getSheetClass, 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 UExpressionVariableRegime INSTANCE
createModelObject
public UExpressionVariable 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<UExpressionVariable,URelation>
- Overrides:
createModelObject
in class AbstractRegime<UExpressionVariable,URelation>
createOutline
public AbstractOutline createOutline(OutlineViewer viewer,
UExpressionVariable coModel)
- Specified by:
createOutline
in interface IRegimeCo0<UExpressionVariable,URelation>
- Overrides:
createOutline
in class AbstractRegime<UExpressionVariable,URelation>
createPropertySource
public AbstractPropertySource createPropertySource(UExpressionVariable model)
- Specified by:
createPropertySource
in interface IRegimeCo0<UExpressionVariable,URelation>
- Overrides:
createPropertySource
in class AbstractRegime<UExpressionVariable,URelation>
getCoModel
public UExpression getCoModel(java.lang.Object model)
- Description copied from interface:
IRegime
- Return the co-model of model if it has one.
- Specified by:
getCoModel
in interface IRegime
- Specified by:
getCoModel
in interface IRegimeCo1<UExpressionVariable,URelation,UExpression,org.eclipse.emf.ecore.EObject>
- Specified by:
getCoModel
in class AbstractNodeRegimeCo1<UExpressionVariable,URelation,UExpression,org.eclipse.emf.ecore.EObject>
- Parameters:
model
- model
- Returns:
- co-model or null
getCoRegime
public UExpressionRegime getCoRegime()
- Description copied from interface:
IRegime
- Return the co-regime if it has one.
- Specified by:
getCoRegime
in interface INodeRegimeCo1<UExpressionVariable,URelation,UExpression,org.eclipse.emf.ecore.EObject>
- Specified by:
getCoRegime
in interface IRegime
- Specified by:
getCoRegime
in interface IRegimeCo0<UExpressionVariable,URelation>
- Specified by:
getCoRegime
in interface IRegimeCo1<UExpressionVariable,URelation,UExpression,org.eclipse.emf.ecore.EObject>
- Specified by:
getCoRegime
in class UVariableRegime<UExpressionVariable,URelation,UExpression,org.eclipse.emf.ecore.EObject>
- 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
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 UVariableRegime<UExpressionVariable,URelation,UExpression,org.eclipse.emf.ecore.EObject>
- Returns:
- prefix
getParentCoModel
public org.eclipse.emf.ecore.EAttribute getParentCoModel(IActiveEditDomain editDomain,
java.lang.Object parent)
- Description copied from interface:
IRegimeCo1
- Return the object to be coModel of the parent of a model created by this
regime in editDomain. The return is nominally just parent.coModel() after
type validation, but derived implementations may add policies to provide
defaults parents for orphans.
- Specified by:
getParentCoModel
in interface IRegimeCo1<UExpressionVariable,URelation,UExpression,org.eclipse.emf.ecore.EObject>
- Specified by:
getParentCoModel
in class UVariableRegime<UExpressionVariable,URelation,UExpression,org.eclipse.emf.ecore.EObject>
- Parameters:
editDomain
- edit domain containing objectsparent
- parent of graphical model
- Returns:
- co-model of parent
setCoModel
public void setCoModel(UExpressionVariable model,
java.lang.Object coModel)
- Specified by:
setCoModel
in interface IRegimeCo0<UExpressionVariable,URelation>
- Specified by:
setCoModel
in class AbstractNodeRegimeCo1<UExpressionVariable,URelation,UExpression,org.eclipse.emf.ecore.EObject>