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

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<GEnum,MmSheet,org.eclipse.emf.ecore.EEnum>
                              extended by org.eclipse.gmt.umlx.mm.editor.regimes.GEnumRegime
All Implemented Interfaces:
INodeRegimeCo0<GEnum,MmSheet>, INodeRegimeCo1<GEnum,MmSheet,org.eclipse.emf.ecore.EEnum,org.eclipse.emf.ecore.EPackage>, IRegime, IRegimeCo0<GEnum,MmSheet>, IRegimeCo1<GEnum,MmSheet,org.eclipse.emf.ecore.EEnum,org.eclipse.emf.ecore.EPackage>, IClassExtension

public class GEnumRegime
extends GClassifierRegime<GEnum,MmSheet,org.eclipse.emf.ecore.EEnum>


Field Summary
static GEnumRegime INSTANCE
           
 
Method Summary
 INodeFigure createFigure(INodeViewElement view)
           
 GEnum createModelObject()
          Create a new and uninitialised EMF object of the type managed by this regime.
 AbstractPropertySource createPropertySource(GEnum model)
           
 EnumView createView(SheetViewer viewer, GEnum view)
           
 GModelElement getBackElement(java.lang.Object editModel)
          Return the non-opaque model element behind the graphical editModel.
 EEnumRegime 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 getNewNamePrefix()
          Return a prefix for autogenerated names.
static org.eclipse.gef.palette.PaletteEntry getPaletteEntry()
           
 
Methods inherited from class org.eclipse.gmt.umlx.mm.editor.regimes.GClassifierRegime
cannotCreate, getEPackage, getParentCoModel
 
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, getLabel, isLink, isNode, isRegimeCo1, isRegimeCo2, loadCoModelClass
 
Methods inherited from class org.eclipse.gmt.umlx.editor.regime.AbstractRegime
canCopy, canDelete, computeProblemMessage, createCreateChildLinkCommand, createCreateCommand, createLinkEnd, createOutline, 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
canCopy, canDelete, computeProblemMessage, createOutline, getFacets, getModelClass, getParentModelClass, isRegimeCo0, refreshProblemMessage
 
Methods inherited from interface org.eclipse.gmt.umlx.editor.regime.IRegime
createCreateChildLinkCommand, createCreateCommand, createLinkEnd, 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.IRegimeCo0
canCopy, canDelete, computeProblemMessage, createOutline, getFacets, getModelClass, getParentModelClass, isRegimeCo0, refreshProblemMessage
 
Methods inherited from interface org.eclipse.gmt.umlx.editor.regime.IRegime
createCreateChildLinkCommand, createCreateCommand, createLinkEnd, getSource, getSourceModelClass, getTarget, getTargetModelClass
 
Methods inherited from interface org.eclipse.gmt.umlx.utils.IClassExtension
getBasicClass, toDebugString, toUserString
 

Field Detail

INSTANCE

public static final GEnumRegime INSTANCE
Method Detail

getPaletteEntry

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

createFigure

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

createModelObject

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

createPropertySource

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

createView

public EnumView createView(SheetViewer viewer,
                           GEnum view)
Specified by:
createView in interface IRegimeCo0<GEnum,MmSheet>
Overrides:
createView in class AbstractRegime<GEnum,MmSheet>

getBackElement

public GModelElement getBackElement(java.lang.Object editModel)
Description copied from interface: IRegime
Return the non-opaque model element behind the graphical editModel.

Specified by:
getBackElement in interface IRegime
Overrides:
getBackElement in class AbstractRegime<GEnum,MmSheet>
Returns:
the non-opaque model element behind the graphical editModel

getCoRegime

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

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

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 AbstractRegime<GEnum,MmSheet>
Returns:
prefix