org.eclipse.gmt.umlx.tx.editor.regimes
Class TxTransformationRegime
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,P,CM,CP>
org.eclipse.gmt.umlx.editor.regimes.GSheetNodeRegimeCo1<TxTransformation,TxContextSheet,UTransformation,org.eclipse.emf.common.notify.Notifier>
org.eclipse.gmt.umlx.tx.editor.regimes.TxTransformationRegime
- All Implemented Interfaces:
- INodeRegimeCo0<TxTransformation,TxContextSheet>, INodeRegimeCo1<TxTransformation,TxContextSheet,UTransformation,org.eclipse.emf.common.notify.Notifier>, IRegime, IRegimeCo0<TxTransformation,TxContextSheet>, IRegimeCo1<TxTransformation,TxContextSheet,UTransformation,org.eclipse.emf.common.notify.Notifier>, IClassExtension
public class TxTransformationRegime
- extends GSheetNodeRegimeCo1<TxTransformation,TxContextSheet,UTransformation,org.eclipse.emf.common.notify.Notifier>
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, getBackElement, getBasicClass, getFacets, getModelClass, 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 TxTransformationRegime INSTANCE
getPaletteEntry
public static org.eclipse.gef.palette.PaletteEntry getPaletteEntry()
createFigure
public INodeFigure createFigure(INodeViewElement view)
- Specified by:
createFigure
in interface INodeRegimeCo0<TxTransformation,TxContextSheet>
- Overrides:
createFigure
in class AbstractNodeRegimeCo0<TxTransformation,TxContextSheet>
createModelObject
public TxTransformation 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<TxTransformation,TxContextSheet>
- Overrides:
createModelObject
in class AbstractRegime<TxTransformation,TxContextSheet>
createPropertySource
public AbstractPropertySource createPropertySource(TxTransformation model)
- Specified by:
createPropertySource
in interface IRegimeCo0<TxTransformation,TxContextSheet>
- Overrides:
createPropertySource
in class AbstractRegime<TxTransformation,TxContextSheet>
createView
public TxTransformationView createView(SheetViewer viewer,
TxTransformation view)
- Specified by:
createView
in interface IRegimeCo0<TxTransformation,TxContextSheet>
- Overrides:
createView
in class AbstractRegime<TxTransformation,TxContextSheet>
getCoRegime
public UTransformationRegime getCoRegime()
- Description copied from interface:
IRegime
- Return the co-regime if it has one.
- Specified by:
getCoRegime
in interface INodeRegimeCo1<TxTransformation,TxContextSheet,UTransformation,org.eclipse.emf.common.notify.Notifier>
- Specified by:
getCoRegime
in interface IRegime
- Specified by:
getCoRegime
in interface IRegimeCo0<TxTransformation,TxContextSheet>
- Specified by:
getCoRegime
in interface IRegimeCo1<TxTransformation,TxContextSheet,UTransformation,org.eclipse.emf.common.notify.Notifier>
- Specified by:
getCoRegime
in class AbstractNodeRegimeCo1<TxTransformation,TxContextSheet,UTransformation,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
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<TxTransformation,TxContextSheet>
- Returns:
- prefix
getParentCoModel
public org.eclipse.emf.common.notify.Notifier getParentCoModel(IActiveEditDomain editDomain,
java.lang.Object parent)
- Description copied from interface:
IRegimeCo1
- Return the object to be coModel of the parent of a model created by this
regime in editDomain. The return is nominally just parent.coModel() after
type validation, but derived implementations may add policies to provide
defaults parents for orphans.
- Specified by:
getParentCoModel
in interface IRegimeCo1<TxTransformation,TxContextSheet,UTransformation,org.eclipse.emf.common.notify.Notifier>
- Specified by:
getParentCoModel
in class AbstractNodeRegimeCo1<TxTransformation,TxContextSheet,UTransformation,org.eclipse.emf.common.notify.Notifier>
- Parameters:
editDomain
- edit domain containing objectsparent
- parent of graphical model
- Returns:
- co-model of parent