org.eclipse.gmt.umlx.mm.editor.regimes
Class MmSheetRegime

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,GDiagramParent,CM,CP>
                  extended by org.eclipse.gmt.umlx.editor.regimes.GSheetRegime<MmSheet,org.eclipse.emf.ecore.EPackage,org.eclipse.emf.common.notify.Notifier>
                      extended by org.eclipse.gmt.umlx.mm.editor.regimes.MmSheetRegime
All Implemented Interfaces:
INodeRegimeCo0<MmSheet,GDiagramParent>, INodeRegimeCo1<MmSheet,GDiagramParent,org.eclipse.emf.ecore.EPackage,org.eclipse.emf.common.notify.Notifier>, IRegime, IRegimeCo0<MmSheet,GDiagramParent>, IRegimeCo1<MmSheet,GDiagramParent,org.eclipse.emf.ecore.EPackage,org.eclipse.emf.common.notify.Notifier>, IClassExtension

public class MmSheetRegime
extends GSheetRegime<MmSheet,org.eclipse.emf.ecore.EPackage,org.eclipse.emf.common.notify.Notifier>


Field Summary
static MmSheetRegime INSTANCE
           
 
Method Summary
 boolean coModelIsOptional()
          Returnb true if the coModel is optional (as is the case for a meta-model sheet).
 MmSheet createModelObject()
          Create a new and uninitialised EMF object of the type managed by this regime.
 AbstractOutline createOutline(OutlineViewer viewer, MmSheet modelObject)
           
 AbstractPropertySource createPropertySource(MmSheet model)
           
 INodeRegimeCo0<org.eclipse.emf.ecore.EPackage,org.eclipse.emf.common.notify.Notifier> 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).
 java.lang.String getLabel()
          Return a descriptive label for the managed object type
 java.lang.String getNewNamePrefix()
          Return a prefix for autogenerated names.
 boolean loadCoModelClass()
           
 
Methods inherited from class org.eclipse.gmt.umlx.editor.regimes.GSheetRegime
canCopy, canDelete, createDeleteCommand, createFacets, createView, getCoModel, getParentCoModel, getSheetClass, setCoModel
 
Methods inherited from class org.eclipse.gmt.umlx.editor.regime.AbstractNodeRegimeCo1
canCoChange, createChangeCoModelCommand, getCoModelClass, getCoModelFor, getCoModelFor, getCoModelParentClass, isLink, isNode, isRegimeCo1, isRegimeCo2
 
Methods inherited from class org.eclipse.gmt.umlx.editor.regime.AbstractNodeRegimeCo0
cannotCreate, createFigure
 
Methods inherited from class org.eclipse.gmt.umlx.editor.regime.AbstractRegime
computeProblemMessage, createCreateChildLinkCommand, createCreateCommand, createLinkEnd, getBackElement, getBasicClass, getFacets, getModelClass, 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
computeProblemMessage, getFacets, getModelClass, getParentModelClass, isRegimeCo0, refreshProblemMessage
 
Methods inherited from interface org.eclipse.gmt.umlx.editor.regime.IRegime
createCreateChildLinkCommand, createCreateCommand, createLinkEnd, getBackElement, 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
computeProblemMessage, getFacets, getModelClass, getParentModelClass, isRegimeCo0, refreshProblemMessage
 
Methods inherited from interface org.eclipse.gmt.umlx.editor.regime.IRegime
createCreateChildLinkCommand, createCreateCommand, createLinkEnd, getBackElement, getSource, getSourceModelClass, getTarget, getTargetModelClass
 
Methods inherited from interface org.eclipse.gmt.umlx.utils.IClassExtension
getBasicClass, toDebugString, toUserString
 

Field Detail

INSTANCE

public static final MmSheetRegime INSTANCE
Method Detail

coModelIsOptional

public boolean coModelIsOptional()
Description copied from interface: IRegimeCo1
Returnb true if the coModel is optional (as is the case for a meta-model sheet).

Specified by:
coModelIsOptional in interface IRegimeCo1<MmSheet,GDiagramParent,org.eclipse.emf.ecore.EPackage,org.eclipse.emf.common.notify.Notifier>
Overrides:
coModelIsOptional in class AbstractNodeRegimeCo1<MmSheet,GDiagramParent,org.eclipse.emf.ecore.EPackage,org.eclipse.emf.common.notify.Notifier>
Returns:
if a null co-model is not an error

createModelObject

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

createOutline

public AbstractOutline createOutline(OutlineViewer viewer,
                                     MmSheet modelObject)
Specified by:
createOutline in interface IRegimeCo0<MmSheet,GDiagramParent>
Overrides:
createOutline in class AbstractRegime<MmSheet,GDiagramParent>

createPropertySource

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

getCoRegime

public INodeRegimeCo0<org.eclipse.emf.ecore.EPackage,org.eclipse.emf.common.notify.Notifier> getCoRegime()
Description copied from interface: IRegime
Return the co-regime if it has one.

Specified by:
getCoRegime in interface INodeRegimeCo1<MmSheet,GDiagramParent,org.eclipse.emf.ecore.EPackage,org.eclipse.emf.common.notify.Notifier>
Specified by:
getCoRegime in interface IRegime
Specified by:
getCoRegime in interface IRegimeCo0<MmSheet,GDiagramParent>
Specified by:
getCoRegime in interface IRegimeCo1<MmSheet,GDiagramParent,org.eclipse.emf.ecore.EPackage,org.eclipse.emf.common.notify.Notifier>
Specified by:
getCoRegime in class AbstractNodeRegimeCo1<MmSheet,GDiagramParent,org.eclipse.emf.ecore.EPackage,org.eclipse.emf.common.notify.Notifier>
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

getLabel

public java.lang.String getLabel()
Description copied from interface: IRegime
Return a descriptive label for the managed object type

Specified by:
getLabel in interface IRegime
Overrides:
getLabel in class AbstractNodeRegimeCo1<MmSheet,GDiagramParent,org.eclipse.emf.ecore.EPackage,org.eclipse.emf.common.notify.Notifier>
Returns:
label

getNewNamePrefix

public java.lang.String getNewNamePrefix()
Description copied from interface: IRegime
Return a prefix for autogenerated names.

Specified by:
getNewNamePrefix in interface IRegime
Overrides:
getNewNamePrefix in class GSheetRegime<MmSheet,org.eclipse.emf.ecore.EPackage,org.eclipse.emf.common.notify.Notifier>
Returns:
prefix

loadCoModelClass

public boolean loadCoModelClass()
Specified by:
loadCoModelClass in interface IRegimeCo1<MmSheet,GDiagramParent,org.eclipse.emf.ecore.EPackage,org.eclipse.emf.common.notify.Notifier>
Overrides:
loadCoModelClass in class AbstractNodeRegimeCo1<MmSheet,GDiagramParent,org.eclipse.emf.ecore.EPackage,org.eclipse.emf.common.notify.Notifier>