org.eclipse.gmt.umlx.editor.regimes
Class GSheetNodeRegimeCo2<M extends GSheetNode,P extends GSheet,CM extends org.eclipse.emf.ecore.EModelElement,CP>

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>
All Implemented Interfaces:
INodeRegimeCo0<M,P>, INodeRegimeCo1<M,P,CM,CP>, INodeRegimeCo2<M,P,CM,CP>, IRegime, IRegimeCo0<M,P>, IRegimeCo1<M,P,CM,CP>, IRegimeCo2<M,P,CM,CP>, IClassExtension
Direct Known Subclasses:
TxDomainRegime, TxEvolutionInstanceRegime, TxPreservationInstanceRegime, TxRelationInstanceRegime, TxVariableRegime

public abstract class GSheetNodeRegimeCo2<M extends GSheetNode,P extends GSheet,CM extends org.eclipse.emf.ecore.EModelElement,CP>
extends AbstractNodeRegimeCo2<M,P,CM,CP>


Method Summary
 DeleteCommand createDeleteCommand(DeleteDomain deleteDomain, M model)
           
 void createFacets(java.util.List<IFacet<? super M>> facetList)
           
 CM getCoModel(java.lang.Object model)
          Return the co-model of model if it has one.
 java.lang.Class<? extends GSheet> getSheetClass()
          Return the class of the sheet that this regime supports
 void setCoModel(M model, java.lang.Object coModel)
           
 
Methods inherited from class org.eclipse.gmt.umlx.editor.regime.AbstractNodeRegimeCo2
canCoCoChange, cannotCoCoCreate, getCoCoModelFor, getCoRegime, 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, createFigure
 
Methods inherited from class org.eclipse.gmt.umlx.editor.regime.AbstractRegime
canCopy, canDelete, computeProblemMessage, createCreateChildLinkCommand, createCreateCommand, createLinkEnd, createModelObject, createOutline, createPropertySource, createView, 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, createModelObject, createOutline, createPropertySource, createView, getFacets, getModelClass, getParentModelClass, isRegimeCo0, refreshProblemMessage
 
Methods inherited from interface org.eclipse.gmt.umlx.editor.regime.IRegime
createCreateChildLinkCommand, createCreateCommand, createLinkEnd, getBackElement, getCoModelParentClass, getIcon, 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, createModelObject, createOutline, createPropertySource, createView, getFacets, getModelClass, getParentModelClass, isRegimeCo0, refreshProblemMessage
 
Methods inherited from interface org.eclipse.gmt.umlx.editor.regime.IRegime
createCreateChildLinkCommand, createCreateCommand, createLinkEnd, getBackElement, getCoModelParentClass, getIcon, 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, createFigure
 
Methods inherited from interface org.eclipse.gmt.umlx.editor.regime.IRegimeCo0
canCopy, canDelete, computeProblemMessage, createModelObject, createOutline, createPropertySource, createView, getFacets, getModelClass, getParentModelClass, isRegimeCo0, refreshProblemMessage
 
Methods inherited from interface org.eclipse.gmt.umlx.editor.regime.IRegime
createCreateChildLinkCommand, createCreateCommand, createLinkEnd, getBackElement, getCoModelParentClass, getIcon, getLabel, getNewNamePrefix, getSource, getSourceModelClass, getTarget, getTargetModelClass
 
Methods inherited from interface org.eclipse.gmt.umlx.utils.IClassExtension
getBasicClass, toDebugString, toUserString
 

Method Detail

createDeleteCommand

public DeleteCommand createDeleteCommand(DeleteDomain deleteDomain,
                                         M model)
Specified by:
createDeleteCommand in interface IRegimeCo0<M extends GSheetNode,P extends GSheet>
Overrides:
createDeleteCommand in class AbstractRegime<M extends GSheetNode,P extends GSheet>

createFacets

public void createFacets(java.util.List<IFacet<? super M>> facetList)
Overrides:
createFacets in class AbstractRegime<M extends GSheetNode,P extends GSheet>

getCoModel

public CM 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<M extends GSheetNode,P extends GSheet,CM extends org.eclipse.emf.ecore.EModelElement,CP>
Specified by:
getCoModel in class AbstractNodeRegimeCo1<M extends GSheetNode,P extends GSheet,CM extends org.eclipse.emf.ecore.EModelElement,CP>
Parameters:
model - model
Returns:
co-model or null

getSheetClass

public java.lang.Class<? extends GSheet> getSheetClass()
Description copied from interface: IRegime
Return the class of the sheet that this regime supports

Specified by:
getSheetClass in interface IRegime
Overrides:
getSheetClass in class AbstractRegime<M extends GSheetNode,P extends GSheet>
Returns:
sheet class or null.

setCoModel

public void setCoModel(M model,
                       java.lang.Object coModel)
Specified by:
setCoModel in interface IRegimeCo0<M extends GSheetNode,P extends GSheet>
Specified by:
setCoModel in class AbstractNodeRegimeCo1<M extends GSheetNode,P extends GSheet,CM extends org.eclipse.emf.ecore.EModelElement,CP>