org.eclipse.gmt.umlx.mm.editor.regimes
Class GOperationRegime
java.lang.Object
org.eclipse.gmt.umlx.utils.ClassExtension<M>
org.eclipse.gmt.umlx.editor.regime.AbstractRegime<M,P>
org.eclipse.gmt.umlx.editor.regime.AbstractNodeRegimeCo0<M,P>
org.eclipse.gmt.umlx.editor.regime.AbstractNodeRegimeCo1<M,P,CM,CP>
org.eclipse.gmt.umlx.editor.regimes.GModelElementRegime<M,GClass,CM,org.eclipse.emf.ecore.EClass>
org.eclipse.gmt.umlx.mm.editor.regimes.GClassChildRegime<GClassOperation,org.eclipse.emf.ecore.EOperation>
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>
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 java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
INSTANCE
public static final GOperationRegime INSTANCE
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