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

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.editor.regime.AbstractNodeRegimeCo2<M,P,CM,CP>
                      extended by org.eclipse.gmt.umlx.editor.regimes.GSheetNodeRegimeCo2<M,P,CM,CP>
                          extended by org.eclipse.gmt.umlx.tx.editor.regimes.TxVariableRegime<TxSheetAttributeVariable,TxRuleSheet,UAttributeVariable,org.eclipse.emf.ecore.ENamedElement>
                              extended by org.eclipse.gmt.umlx.tx.editor.regimes.TxSheetAttributeVariableRegime
All Implemented Interfaces:
INodeRegimeCo0<TxSheetAttributeVariable,TxRuleSheet>, INodeRegimeCo1<TxSheetAttributeVariable,TxRuleSheet,UAttributeVariable,org.eclipse.emf.ecore.ENamedElement>, INodeRegimeCo2<TxSheetAttributeVariable,TxRuleSheet,UAttributeVariable,org.eclipse.emf.ecore.ENamedElement>, IRegime, IRegimeCo0<TxSheetAttributeVariable,TxRuleSheet>, IRegimeCo1<TxSheetAttributeVariable,TxRuleSheet,UAttributeVariable,org.eclipse.emf.ecore.ENamedElement>, IRegimeCo2<TxSheetAttributeVariable,TxRuleSheet,UAttributeVariable,org.eclipse.emf.ecore.ENamedElement>, IClassExtension

public class TxSheetAttributeVariableRegime
extends TxVariableRegime<TxSheetAttributeVariable,TxRuleSheet,UAttributeVariable,org.eclipse.emf.ecore.ENamedElement>


Field Summary
static TxSheetAttributeVariableRegime INSTANCE
           
 
Method Summary
 IErrorMessage cannotCreate(IActiveEditDomain editDomain, java.lang.Object coModel, java.lang.Object context, org.eclipse.draw2d.geometry.Point loc)
           
 CreateCommand createCreateCommand(IActiveEditDomain editDomain, java.lang.Object coModel, java.lang.Object context)
          Create a command to create an instance of the model element managed by this regime, with the created element a child of parent, and instantiating coModel.
 TxSheetAttributeVariable createModelObject()
          Create a new and uninitialised EMF object of the type managed by this regime.
 AbstractPropertySource createPropertySource(TxSheetAttributeVariable model)
           
 TxSheetAttributeVariableView createView(SheetViewer viewer, TxSheetAttributeVariable model)
           
 EAttributeRegime getCoCoRegime()
           
 UAttributeVariableRegime 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).
static org.eclipse.gef.palette.PaletteEntry getPaletteEntry()
           
 boolean loadCoCoModelClass()
           
 boolean loadCoModelClass()
           
 
Methods inherited from class org.eclipse.gmt.umlx.tx.editor.regimes.TxVariableRegime
createFigure
 
Methods inherited from class org.eclipse.gmt.umlx.editor.regimes.GSheetNodeRegimeCo2
createDeleteCommand, createFacets, getCoModel, getSheetClass, setCoModel
 
Methods inherited from class org.eclipse.gmt.umlx.editor.regime.AbstractNodeRegimeCo2
canCoCoChange, cannotCoCoCreate, getCoCoModelFor, getParentCoModel, getThisChangeContext, getThisCreateContext, isLink, isNode, isRegimeCo2
 
Methods inherited from class org.eclipse.gmt.umlx.editor.regime.AbstractNodeRegimeCo1
canCoChange, coModelIsOptional, createChangeCoModelCommand, getCoModelClass, getCoModelFor, getCoModelFor, getCoModelParentClass, getLabel, isRegimeCo1
 
Methods inherited from class org.eclipse.gmt.umlx.editor.regime.AbstractRegime
canCopy, canDelete, computeProblemMessage, createCreateChildLinkCommand, createLinkEnd, createOutline, getBackElement, getBasicClass, getFacets, getModelClass, getNewNamePrefix, getParentModelClass, 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.IRegimeCo2
getCoModelFor
 
Methods inherited from interface org.eclipse.gmt.umlx.editor.regime.IRegimeCo1
canCoChange, coModelIsOptional, createChangeCoModelCommand, getCoModelClass, getCoModelFor
 
Methods inherited from interface org.eclipse.gmt.umlx.editor.regime.IRegimeCo0
canCopy, canDelete, computeProblemMessage, createOutline, getFacets, getModelClass, getParentModelClass, isRegimeCo0, refreshProblemMessage
 
Methods inherited from interface org.eclipse.gmt.umlx.editor.regime.IRegime
createCreateChildLinkCommand, createLinkEnd, getBackElement, getCoModelParentClass, getLabel, getNewNamePrefix, 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.INodeRegimeCo1
isRegimeCo1
 
Methods inherited from interface org.eclipse.gmt.umlx.editor.regime.IRegimeCo1
canCoChange, coModelIsOptional, createChangeCoModelCommand, getCoModelClass, getCoModelFor
 
Methods inherited from interface org.eclipse.gmt.umlx.editor.regime.IRegimeCo0
canCopy, canDelete, computeProblemMessage, createOutline, getFacets, getModelClass, getParentModelClass, isRegimeCo0, refreshProblemMessage
 
Methods inherited from interface org.eclipse.gmt.umlx.editor.regime.IRegime
createCreateChildLinkCommand, createLinkEnd, getBackElement, getCoModelParentClass, getLabel, getNewNamePrefix, 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.IRegimeCo0
canCopy, canDelete, computeProblemMessage, createOutline, getFacets, getModelClass, getParentModelClass, isRegimeCo0, refreshProblemMessage
 
Methods inherited from interface org.eclipse.gmt.umlx.editor.regime.IRegime
createCreateChildLinkCommand, createLinkEnd, getBackElement, getCoModelParentClass, getLabel, getNewNamePrefix, getSource, getSourceModelClass, getTarget, getTargetModelClass
 
Methods inherited from interface org.eclipse.gmt.umlx.utils.IClassExtension
getBasicClass, toDebugString, toUserString
 

Field Detail

INSTANCE

public static final TxSheetAttributeVariableRegime INSTANCE
Method Detail

getPaletteEntry

public static org.eclipse.gef.palette.PaletteEntry getPaletteEntry()

cannotCreate

public IErrorMessage cannotCreate(IActiveEditDomain editDomain,
                                  java.lang.Object coModel,
                                  java.lang.Object context,
                                  org.eclipse.draw2d.geometry.Point loc)
Specified by:
cannotCreate in interface INodeRegimeCo0<TxSheetAttributeVariable,TxRuleSheet>
Overrides:
cannotCreate in class AbstractNodeRegimeCo0<TxSheetAttributeVariable,TxRuleSheet>

createCreateCommand

public CreateCommand createCreateCommand(IActiveEditDomain editDomain,
                                         java.lang.Object coModel,
                                         java.lang.Object context)
Description copied from interface: IRegime
Create a command to create an instance of the model element managed by this regime, with the created element a child of parent, and instantiating coModel.

Specified by:
createCreateCommand in interface IRegime
Overrides:
createCreateCommand in class AbstractRegime<TxSheetAttributeVariable,TxRuleSheet>

createModelObject

public TxSheetAttributeVariable 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<TxSheetAttributeVariable,TxRuleSheet>
Overrides:
createModelObject in class AbstractRegime<TxSheetAttributeVariable,TxRuleSheet>

createPropertySource

public AbstractPropertySource createPropertySource(TxSheetAttributeVariable model)
Specified by:
createPropertySource in interface IRegimeCo0<TxSheetAttributeVariable,TxRuleSheet>
Overrides:
createPropertySource in class AbstractRegime<TxSheetAttributeVariable,TxRuleSheet>

createView

public TxSheetAttributeVariableView createView(SheetViewer viewer,
                                               TxSheetAttributeVariable model)
Specified by:
createView in interface IRegimeCo0<TxSheetAttributeVariable,TxRuleSheet>
Overrides:
createView in class AbstractRegime<TxSheetAttributeVariable,TxRuleSheet>

getCoCoRegime

public EAttributeRegime getCoCoRegime()

getCoRegime

public UAttributeVariableRegime getCoRegime()
Description copied from interface: IRegime
Return the co-regime if it has one.

Specified by:
getCoRegime in interface INodeRegimeCo1<TxSheetAttributeVariable,TxRuleSheet,UAttributeVariable,org.eclipse.emf.ecore.ENamedElement>
Specified by:
getCoRegime in interface INodeRegimeCo2<TxSheetAttributeVariable,TxRuleSheet,UAttributeVariable,org.eclipse.emf.ecore.ENamedElement>
Specified by:
getCoRegime in interface IRegime
Specified by:
getCoRegime in interface IRegimeCo0<TxSheetAttributeVariable,TxRuleSheet>
Specified by:
getCoRegime in interface IRegimeCo1<TxSheetAttributeVariable,TxRuleSheet,UAttributeVariable,org.eclipse.emf.ecore.ENamedElement>
Specified by:
getCoRegime in interface IRegimeCo2<TxSheetAttributeVariable,TxRuleSheet,UAttributeVariable,org.eclipse.emf.ecore.ENamedElement>
Specified by:
getCoRegime in class AbstractNodeRegimeCo2<TxSheetAttributeVariable,TxRuleSheet,UAttributeVariable,org.eclipse.emf.ecore.ENamedElement>
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

loadCoCoModelClass

public boolean loadCoCoModelClass()
Specified by:
loadCoCoModelClass in interface IRegimeCo2<TxSheetAttributeVariable,TxRuleSheet,UAttributeVariable,org.eclipse.emf.ecore.ENamedElement>
Overrides:
loadCoCoModelClass in class AbstractNodeRegimeCo2<TxSheetAttributeVariable,TxRuleSheet,UAttributeVariable,org.eclipse.emf.ecore.ENamedElement>

loadCoModelClass

public boolean loadCoModelClass()
Specified by:
loadCoModelClass in interface IRegimeCo1<TxSheetAttributeVariable,TxRuleSheet,UAttributeVariable,org.eclipse.emf.ecore.ENamedElement>
Overrides:
loadCoModelClass in class AbstractNodeRegimeCo1<TxSheetAttributeVariable,TxRuleSheet,UAttributeVariable,org.eclipse.emf.ecore.ENamedElement>