org.eclipse.gmt.umlx.tx.editor.regimes
Class UClassVariableRegime
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<UClassVariable,URelation,org.eclipse.emf.ecore.EClass,org.eclipse.emf.ecore.EPackage>
org.eclipse.gmt.umlx.tx.editor.regimes.UClassVariableRegime
- All Implemented Interfaces:
- INodeRegimeCo0<UClassVariable,URelation>, INodeRegimeCo1<UClassVariable,URelation,org.eclipse.emf.ecore.EClass,org.eclipse.emf.ecore.EPackage>, IRegime, IRegimeCo0<UClassVariable,URelation>, IRegimeCo1<UClassVariable,URelation,org.eclipse.emf.ecore.EClass,org.eclipse.emf.ecore.EPackage>, IClassExtension
public class UClassVariableRegime
- extends UVariableRegime<UClassVariable,URelation,org.eclipse.emf.ecore.EClass,org.eclipse.emf.ecore.EPackage>
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 UClassVariableRegime INSTANCE
createModelObject
public UClassVariable 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<UClassVariable,URelation>
- Overrides:
createModelObject
in class AbstractRegime<UClassVariable,URelation>
createOutline
public AbstractOutline createOutline(OutlineViewer viewer,
UClassVariable coModel)
- Specified by:
createOutline
in interface IRegimeCo0<UClassVariable,URelation>
- Overrides:
createOutline
in class AbstractRegime<UClassVariable,URelation>
createPropertySource
public AbstractPropertySource createPropertySource(UClassVariable model)
- Specified by:
createPropertySource
in interface IRegimeCo0<UClassVariable,URelation>
- Overrides:
createPropertySource
in class AbstractRegime<UClassVariable,URelation>
getCoModel
public org.eclipse.emf.ecore.EClass 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<UClassVariable,URelation,org.eclipse.emf.ecore.EClass,org.eclipse.emf.ecore.EPackage>
- Specified by:
getCoModel
in class AbstractNodeRegimeCo1<UClassVariable,URelation,org.eclipse.emf.ecore.EClass,org.eclipse.emf.ecore.EPackage>
- Parameters:
model
- model
- Returns:
- co-model or null
getCoRegime
public EClassRegime getCoRegime()
- Description copied from interface:
IRegime
- Return the co-regime if it has one.
- Specified by:
getCoRegime
in interface INodeRegimeCo1<UClassVariable,URelation,org.eclipse.emf.ecore.EClass,org.eclipse.emf.ecore.EPackage>
- Specified by:
getCoRegime
in interface IRegime
- Specified by:
getCoRegime
in interface IRegimeCo0<UClassVariable,URelation>
- Specified by:
getCoRegime
in interface IRegimeCo1<UClassVariable,URelation,org.eclipse.emf.ecore.EClass,org.eclipse.emf.ecore.EPackage>
- Specified by:
getCoRegime
in class UVariableRegime<UClassVariable,URelation,org.eclipse.emf.ecore.EClass,org.eclipse.emf.ecore.EPackage>
- 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
getParentCoModel
public org.eclipse.emf.ecore.EPackage 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<UClassVariable,URelation,org.eclipse.emf.ecore.EClass,org.eclipse.emf.ecore.EPackage>
- Specified by:
getParentCoModel
in class UVariableRegime<UClassVariable,URelation,org.eclipse.emf.ecore.EClass,org.eclipse.emf.ecore.EPackage>
- Parameters:
editDomain
- edit domain containing objectsparent
- parent of graphical model
- Returns:
- co-model of parent
setCoModel
public void setCoModel(UClassVariable model,
java.lang.Object coModel)
- Specified by:
setCoModel
in interface IRegimeCo0<UClassVariable,URelation>
- Specified by:
setCoModel
in class AbstractNodeRegimeCo1<UClassVariable,URelation,org.eclipse.emf.ecore.EClass,org.eclipse.emf.ecore.EPackage>