org.eclipse.gmt.umlx.mm.editor.regimes
Class GClassifierRegime<M extends GSheetNode,P extends GSheet,CM extends org.eclipse.emf.ecore.EClassifier>

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.regimes.GModelElementRegime<M,P,CM,CP>
                      extended by org.eclipse.gmt.umlx.editor.regimes.GSheetNodeRegimeCo1<M,P,CM,org.eclipse.emf.ecore.EPackage>
                          extended by org.eclipse.gmt.umlx.mm.editor.regimes.GClassifierRegime<M,P,CM>
All Implemented Interfaces:
INodeRegimeCo0<M,P>, INodeRegimeCo1<M,P,CM,org.eclipse.emf.ecore.EPackage>, IRegime, IRegimeCo0<M,P>, IRegimeCo1<M,P,CM,org.eclipse.emf.ecore.EPackage>, IClassExtension
Direct Known Subclasses:
GClassRegime, GDataTypeRegime, GEnumRegime

public abstract class GClassifierRegime<M extends GSheetNode,P extends GSheet,CM extends org.eclipse.emf.ecore.EClassifier>
extends GSheetNodeRegimeCo1<M,P,CM,org.eclipse.emf.ecore.EPackage>


Method Summary
 IErrorMessage cannotCreate(IActiveEditDomain editDomain, java.lang.Object coModel, java.lang.Object context, org.eclipse.draw2d.geometry.Point loc)
           
 org.eclipse.emf.ecore.EPackage getEPackage(IActiveEditDomain editDomain, CM coModel, MmSheet sheet)
           
 org.eclipse.emf.ecore.EPackage 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.
 
Methods inherited from class org.eclipse.gmt.umlx.editor.regimes.GSheetNodeRegimeCo1
createDeleteCommand, createFacets, getSheetClass
 
Methods inherited from class org.eclipse.gmt.umlx.editor.regimes.GModelElementRegime
getCoModel, setCoModel
 
Methods inherited from class org.eclipse.gmt.umlx.editor.regime.AbstractNodeRegimeCo1
canCoChange, coModelIsOptional, createChangeCoModelCommand, getCoModelClass, getCoModelFor, getCoModelFor, getCoModelParentClass, getCoRegime, getLabel, isLink, isNode, isRegimeCo1, isRegimeCo2, loadCoModelClass
 
Methods inherited from class org.eclipse.gmt.umlx.editor.regime.AbstractNodeRegimeCo0
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.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, getIcon, 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
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, getIcon, getNewNamePrefix, getSource, getSourceModelClass, getTarget, getTargetModelClass
 
Methods inherited from interface org.eclipse.gmt.umlx.utils.IClassExtension
getBasicClass, toDebugString, toUserString
 

Method Detail

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<M extends GSheetNode,P extends GSheet>
Overrides:
cannotCreate in class AbstractNodeRegimeCo0<M extends GSheetNode,P extends GSheet>

getEPackage

public org.eclipse.emf.ecore.EPackage getEPackage(IActiveEditDomain editDomain,
                                                  CM coModel,
                                                  MmSheet sheet)

getParentCoModel

public org.eclipse.emf.ecore.EPackage 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<M extends GSheetNode,P extends GSheet,CM extends org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EPackage>
Specified by:
getParentCoModel in class AbstractNodeRegimeCo1<M extends GSheetNode,P extends GSheet,CM extends org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EPackage>
Parameters:
editDomain - edit domain containing objects
parent - parent of graphical model
Returns:
co-model of parent