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