org.eclipse.gmt.umlx.editor.regime
Class AbstractNodeRegimeCo0<M extends org.eclipse.emf.common.notify.Notifier,P>

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>
All Implemented Interfaces:
INodeRegimeCo0<M,P>, IRegime, IRegimeCo0<M,P>, IClassExtension
Direct Known Subclasses:
AbstractNodeRegimeCo1, ENamedElementRegime, GDummyRegime, GFolderRegime, GImportRegime, GRootFolderRegime, GSheetNodeRegimeCo0, OrphanageRegime, ResourceRegime

public abstract class AbstractNodeRegimeCo0<M extends org.eclipse.emf.common.notify.Notifier,P>
extends AbstractRegime<M,P>
implements INodeRegimeCo0<M,P>


Method Summary
 IErrorMessage cannotCreate(IActiveEditDomain editDomain, java.lang.Object coModel, java.lang.Object context, org.eclipse.draw2d.geometry.Point loc)
           
 INodeFigure createFigure(INodeViewElement view)
           
 INodeRegimeCo0<?,?> getCoRegime()
          Return the co-regime if it has one.
 INodeRegimeCo0<M,P> isNode()
           
 INodeRegimeCo1<M,P,?,?> isRegimeCo1()
          Return this non-null regime if it is suitable for use with one or more levels of co-model.
 INodeRegimeCo2<M,P,?,?> isRegimeCo2()
          Return this non-null regime if it is suitable for use with two or more levels of co-model.
 
Methods inherited from class org.eclipse.gmt.umlx.editor.regime.AbstractRegime
canCopy, canDelete, computeProblemMessage, createCreateChildLinkCommand, createCreateCommand, createDeleteCommand, createFacets, createLinkEnd, createModelObject, createOutline, createPropertySource, createView, getBackElement, getBasicClass, getCoModel, getCoModelClass, getCoModelParentClass, getFacets, getModelClass, getNewNamePrefix, getParentModelClass, getSheetClass, getSource, getSourceModelClass, getTarget, getTargetModelClass, initialise, isLink, isRegimeCo0, load, refreshProblemMessage, setCoModel, 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, createModelObject, createOutline, createPropertySource, createView, getFacets, getModelClass, getParentModelClass, isLink, isRegimeCo0, refreshProblemMessage, setCoModel
 
Methods inherited from interface org.eclipse.gmt.umlx.editor.regime.IRegime
createCreateChildLinkCommand, createCreateCommand, createLinkEnd, getBackElement, getCoModel, getCoModelClass, getCoModelParentClass, getIcon, getLabel, getNewNamePrefix, getSheetClass, 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 org.eclipse.emf.common.notify.Notifier,P>

createFigure

public INodeFigure createFigure(INodeViewElement view)
Specified by:
createFigure in interface INodeRegimeCo0<M extends org.eclipse.emf.common.notify.Notifier,P>

getCoRegime

public INodeRegimeCo0<?,?> getCoRegime()
Description copied from interface: IRegime
Return the co-regime if it has one.

Specified by:
getCoRegime in interface IRegime
Specified by:
getCoRegime in interface IRegimeCo0<M extends org.eclipse.emf.common.notify.Notifier,P>
Specified by:
getCoRegime in class AbstractRegime<M extends org.eclipse.emf.common.notify.Notifier,P>
Returns:
co-regime class or null

isNode

public INodeRegimeCo0<M,P> isNode()
Specified by:
isNode in interface IRegimeCo0<M extends org.eclipse.emf.common.notify.Notifier,P>
Overrides:
isNode in class AbstractRegime<M extends org.eclipse.emf.common.notify.Notifier,P>

isRegimeCo1

public INodeRegimeCo1<M,P,?,?> isRegimeCo1()
Description copied from interface: IRegime
Return this non-null regime if it is suitable for use with one or more levels of co-model.

Specified by:
isRegimeCo1 in interface INodeRegimeCo0<M extends org.eclipse.emf.common.notify.Notifier,P>
Specified by:
isRegimeCo1 in interface IRegime
Specified by:
isRegimeCo1 in interface IRegimeCo0<M extends org.eclipse.emf.common.notify.Notifier,P>
Overrides:
isRegimeCo1 in class AbstractRegime<M extends org.eclipse.emf.common.notify.Notifier,P>
Returns:
this or null

isRegimeCo2

public INodeRegimeCo2<M,P,?,?> isRegimeCo2()
Description copied from interface: IRegime
Return this non-null regime if it is suitable for use with two or more levels of co-model.

Specified by:
isRegimeCo2 in interface INodeRegimeCo0<M extends org.eclipse.emf.common.notify.Notifier,P>
Specified by:
isRegimeCo2 in interface IRegime
Specified by:
isRegimeCo2 in interface IRegimeCo0<M extends org.eclipse.emf.common.notify.Notifier,P>
Overrides:
isRegimeCo2 in class AbstractRegime<M extends org.eclipse.emf.common.notify.Notifier,P>
Returns:
this or null