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

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<TxPreservationInstance,TxRuleSheet,UPreservationInstance,URelation>
                          extended by org.eclipse.gmt.umlx.tx.editor.regimes.TxPreservationInstanceRegime
All Implemented Interfaces:
INodeRegimeCo0<TxPreservationInstance,TxRuleSheet>, INodeRegimeCo1<TxPreservationInstance,TxRuleSheet,UPreservationInstance,URelation>, INodeRegimeCo2<TxPreservationInstance,TxRuleSheet,UPreservationInstance,URelation>, IRegime, IRegimeCo0<TxPreservationInstance,TxRuleSheet>, IRegimeCo1<TxPreservationInstance,TxRuleSheet,UPreservationInstance,URelation>, IRegimeCo2<TxPreservationInstance,TxRuleSheet,UPreservationInstance,URelation>, IClassExtension

public class TxPreservationInstanceRegime
extends GSheetNodeRegimeCo2<TxPreservationInstance,TxRuleSheet,UPreservationInstance,URelation>


Field Summary
static TxPreservationInstanceRegime INSTANCE
           
 
Method Summary
 INodeFigure createFigure(INodeViewElement view)
           
 TxPreservationInstance createModelObject()
          Create a new and uninitialised EMF object of the type managed by this regime.
 AbstractPropertySource createPropertySource(TxPreservationInstance model)
           
 TxPreservationInstanceView createView(SheetViewer viewer, TxPreservationInstance model)
           
 UPreservationInstanceRegime 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()
           
 
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, loadCoCoModelClass
 
Methods inherited from class org.eclipse.gmt.umlx.editor.regime.AbstractNodeRegimeCo1
canCoChange, coModelIsOptional, createChangeCoModelCommand, getCoModelClass, getCoModelFor, getCoModelFor, getCoModelParentClass, getLabel, isRegimeCo1, loadCoModelClass
 
Methods inherited from class org.eclipse.gmt.umlx.editor.regime.AbstractNodeRegimeCo0
cannotCreate
 
Methods inherited from class org.eclipse.gmt.umlx.editor.regime.AbstractRegime
canCopy, canDelete, computeProblemMessage, createCreateChildLinkCommand, createCreateCommand, 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, loadCoModelClass
 
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, createCreateCommand, 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, loadCoModelClass
 
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, createCreateCommand, 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.INodeRegimeCo0
cannotCreate
 
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, createCreateCommand, 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 TxPreservationInstanceRegime INSTANCE
Method Detail

getPaletteEntry

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

createFigure

public INodeFigure createFigure(INodeViewElement view)
Specified by:
createFigure in interface INodeRegimeCo0<TxPreservationInstance,TxRuleSheet>
Overrides:
createFigure in class AbstractNodeRegimeCo0<TxPreservationInstance,TxRuleSheet>

createModelObject

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

createPropertySource

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

createView

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

getCoRegime

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

Specified by:
getCoRegime in interface INodeRegimeCo1<TxPreservationInstance,TxRuleSheet,UPreservationInstance,URelation>
Specified by:
getCoRegime in interface INodeRegimeCo2<TxPreservationInstance,TxRuleSheet,UPreservationInstance,URelation>
Specified by:
getCoRegime in interface IRegime
Specified by:
getCoRegime in interface IRegimeCo0<TxPreservationInstance,TxRuleSheet>
Specified by:
getCoRegime in interface IRegimeCo1<TxPreservationInstance,TxRuleSheet,UPreservationInstance,URelation>
Specified by:
getCoRegime in interface IRegimeCo2<TxPreservationInstance,TxRuleSheet,UPreservationInstance,URelation>
Specified by:
getCoRegime in class AbstractNodeRegimeCo2<TxPreservationInstance,TxRuleSheet,UPreservationInstance,URelation>
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