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

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,GClass,CM,org.eclipse.emf.ecore.EClass>
                      extended by org.eclipse.gmt.umlx.mm.editor.regimes.GClassChildRegime<GClassOperation,org.eclipse.emf.ecore.EOperation>
                          extended by org.eclipse.gmt.umlx.mm.editor.regimes.GOperationRegime
All Implemented Interfaces:
INodeRegimeCo0<GClassOperation,GClass>, INodeRegimeCo1<GClassOperation,GClass,org.eclipse.emf.ecore.EOperation,org.eclipse.emf.ecore.EClass>, IRegime, IRegimeCo0<GClassOperation,GClass>, IRegimeCo1<GClassOperation,GClass,org.eclipse.emf.ecore.EOperation,org.eclipse.emf.ecore.EClass>, IClassExtension

public class GOperationRegime
extends GClassChildRegime<GClassOperation,org.eclipse.emf.ecore.EOperation>


Field Summary
static GOperationRegime INSTANCE
           
 
Method Summary
 IErrorMessage cannotCreate(IActiveEditDomain editDomain, java.lang.Object coModel, java.lang.Object context, org.eclipse.draw2d.geometry.Point loc)
           
 GClassOperation createModelObject()
          Create a new and uninitialised EMF object of the type managed by this regime.
 AbstractPropertySource createPropertySource(GClassOperation model)
           
 OperationView createView(SheetViewer viewer, GClassOperation model)
           
 GModelElement getBackElement(java.lang.Object editModel)
          Return the non-opaque model element behind the graphical editModel.
 EOperationRegime 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).
static org.eclipse.gef.palette.PaletteEntry getPaletteEntry()
           
 
Methods inherited from class org.eclipse.gmt.umlx.mm.editor.regimes.GClassChildRegime
createFigure, getParentCoModel, 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, createDeleteCommand, createFacets, createLinkEnd, createOutline, 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, createDeleteCommand, createOutline, getFacets, getModelClass, getParentModelClass, isRegimeCo0, refreshProblemMessage
 
Methods inherited from interface org.eclipse.gmt.umlx.editor.regime.IRegime
createCreateChildLinkCommand, createCreateCommand, createLinkEnd, 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.IRegimeCo0
canCopy, canDelete, computeProblemMessage, createDeleteCommand, createOutline, getFacets, getModelClass, getParentModelClass, isRegimeCo0, refreshProblemMessage
 
Methods inherited from interface org.eclipse.gmt.umlx.editor.regime.IRegime
createCreateChildLinkCommand, createCreateCommand, createLinkEnd, getNewNamePrefix, getSource, getSourceModelClass, getTarget, getTargetModelClass
 
Methods inherited from interface org.eclipse.gmt.umlx.utils.IClassExtension
getBasicClass, toDebugString, toUserString
 

Field Detail

INSTANCE

public static final GOperationRegime INSTANCE
Method Detail

getPaletteEntry

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

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<GClassOperation,GClass>
Overrides:
cannotCreate in class AbstractNodeRegimeCo0<GClassOperation,GClass>

createModelObject

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

createPropertySource

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

createView

public OperationView createView(SheetViewer viewer,
                                GClassOperation model)
Specified by:
createView in interface IRegimeCo0<GClassOperation,GClass>
Overrides:
createView in class AbstractRegime<GClassOperation,GClass>

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 GClassChildRegime<GClassOperation,org.eclipse.emf.ecore.EOperation>
Returns:
the non-opaque model element behind the graphical editModel

getCoRegime

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

Specified by:
getCoRegime in interface INodeRegimeCo1<GClassOperation,GClass,org.eclipse.emf.ecore.EOperation,org.eclipse.emf.ecore.EClass>
Specified by:
getCoRegime in interface IRegime
Specified by:
getCoRegime in interface IRegimeCo0<GClassOperation,GClass>
Specified by:
getCoRegime in interface IRegimeCo1<GClassOperation,GClass,org.eclipse.emf.ecore.EOperation,org.eclipse.emf.ecore.EClass>
Specified by:
getCoRegime in class AbstractNodeRegimeCo1<GClassOperation,GClass,org.eclipse.emf.ecore.EOperation,org.eclipse.emf.ecore.EClass>
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