org.eclipse.gmt.umlx.tx.editor.regimes
Class UAttributeVariableRegime

java.lang.Object
  extended by org.eclipse.gmt.umlx.utils.ClassExtension<M>
      extended by org.eclipse.gmt.umlx.editor.regime.AbstractRegime<M,P>
          extended by org.eclipse.gmt.umlx.editor.regime.AbstractNodeRegimeCo0<M,P>
              extended by org.eclipse.gmt.umlx.editor.regime.AbstractNodeRegimeCo1<M,P,CM,CP>
                  extended by org.eclipse.gmt.umlx.tx.editor.regimes.UVariableRegime<UAttributeVariable,org.eclipse.emf.ecore.ENamedElement,org.eclipse.emf.ecore.EAttribute,org.eclipse.emf.ecore.EClass>
                      extended by 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>


Field Summary
static UAttributeVariableRegime INSTANCE
           
 
Method Summary
 void createFacets(java.util.List<IFacet<? super UAttributeVariable>> facetList)
           
 UAttributeVariable createModelObject()
          Create a new and uninitialised EMF object of the type managed by this regime.
 AbstractOutline createOutline(OutlineViewer viewer, UAttributeVariable coModel)
           
 AbstractPropertySource createPropertySource(UAttributeVariable model)
           
 org.eclipse.emf.ecore.EAttribute getCoModel(java.lang.Object model)
          Return the co-model of model if it has one.
 EAttributeRegime getCoRegime()
          Return the co-regime if it has one.
 java.lang.Enum getIcon()
          Return the icon to be shown in the construction context (the Palette for GCore objects, the Outline for ECore objects).
 org.eclipse.emf.ecore.EClass getParentCoModel(IActiveEditDomain editDomain, java.lang.Object parent)
          Return the object to be coModel of the parent of a model created by this regime in editDomain.
 void setCoModel(UAttributeVariable model, java.lang.Object coModel)
           
 
Methods inherited from class org.eclipse.gmt.umlx.tx.editor.regimes.UVariableRegime
getNewNamePrefix
 
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.AbstractNodeRegimeCo0
cannotCreate, createFigure
 
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 org.eclipse.gmt.umlx.utils.ClassExtension
toDebugString, toUserString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.gmt.umlx.editor.regime.IRegimeCo0
canCopy, canDelete, computeProblemMessage, createDeleteCommand, createView, getFacets, getModelClass, getParentModelClass, isRegimeCo0, refreshProblemMessage
 
Methods inherited from interface org.eclipse.gmt.umlx.editor.regime.IRegime
createCreateChildLinkCommand, createCreateCommand, createLinkEnd, getBackElement, getSheetClass, getSource, getSourceModelClass, getTarget, getTargetModelClass
 
Methods inherited from interface org.eclipse.gmt.umlx.utils.IClassExtension
getBasicClass, toDebugString, toUserString
 
Methods inherited from interface org.eclipse.gmt.umlx.editor.regime.INodeRegimeCo0
cannotCreate, createFigure
 
Methods inherited from interface org.eclipse.gmt.umlx.editor.regime.IRegimeCo0
canCopy, canDelete, computeProblemMessage, createDeleteCommand, createView, getFacets, getModelClass, getParentModelClass, isRegimeCo0, refreshProblemMessage
 
Methods inherited from interface org.eclipse.gmt.umlx.editor.regime.IRegime
createCreateChildLinkCommand, createCreateCommand, createLinkEnd, getBackElement, getSheetClass, getSource, getSourceModelClass, getTarget, getTargetModelClass
 
Methods inherited from interface org.eclipse.gmt.umlx.utils.IClassExtension
getBasicClass, toDebugString, toUserString
 

Field Detail

INSTANCE

public static final UAttributeVariableRegime INSTANCE
Method Detail

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 objects
parent - 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>