org.eclipse.gmt.umlx.mm.editor.regimes
Class GAttributionRegime
java.lang.Object
org.eclipse.gmt.umlx.utils.ClassExtension<M>
org.eclipse.gmt.umlx.editor.regime.AbstractRegime<LM,P>
org.eclipse.gmt.umlx.editor.regime.AbstractLinkRegimeCo0<SM,LM,TM,P>
org.eclipse.gmt.umlx.editor.regime.AbstractLinkRegimeCo1<SM,LM,TM,P,CM,CP>
org.eclipse.gmt.umlx.editor.regimes.GSheetLinkRegimeCo1<SM,LM,TM,P,CM,Orphanage>
org.eclipse.gmt.umlx.editor.regimes.GSheetTransientLinkRegimeCo1<GClass,GAttribution,GSheetAttribute,MmSheet,E2Attribution>
org.eclipse.gmt.umlx.mm.editor.regimes.GAttributionRegime
- All Implemented Interfaces:
- ILinkRegimeCo0<GClass,GAttribution,GSheetAttribute,MmSheet>, ILinkRegimeCo1<GClass,GAttribution,GSheetAttribute,MmSheet,E2Attribution,Orphanage>, ILinkRegimeEnums, IRegime, IRegimeCo0<GAttribution,MmSheet>, IRegimeCo1<GAttribution,MmSheet,E2Attribution,Orphanage>, IClassExtension
public class GAttributionRegime
- extends GSheetTransientLinkRegimeCo1<GClass,GAttribution,GSheetAttribute,MmSheet,E2Attribution>
Methods inherited from class org.eclipse.gmt.umlx.editor.regimes.GSheetLinkRegimeCo1 |
cannotCoCreate, createFacets, createPropertySource, getBendpoints, getCoModel, getSheetClass, getSource0, getSourceConnections, getTarget0, getTargetConnections, removeConnection, setCoModel |
Methods inherited from class org.eclipse.gmt.umlx.editor.regime.AbstractLinkRegimeCo1 |
canCoChange, coModelIsOptional, createChangeCoModelCommand, getCoModelClass, getCoModelFor, getCoModelParentClass, getParentCoModel, isLink, isNode, isRegimeCo1, isRegimeCo2, loadCoModelClass |
Methods inherited from class org.eclipse.gmt.umlx.editor.regime.AbstractLinkRegimeCo0 |
addConnection, canBeReversed, cannotConnectBetween, cannotConnectFrom, cannotConnectTo, createCreateCommand, createLinkEnd, createModelObject, createReconnectCommand, getActualConnection, getActualConnectionsBetween, getCoCoModelsFor, getPotentialCoConnection, getPotentialCoConnectionsBetween, getPotentialConnection, getPotentialConnectionsBetween, getSource, getSourceLinkEnd, getSourceModelClass, getSourceNode, getTarget, getTargetLinkEnd, getTargetModelClass, getTargetNode, isContainment, resolveRegime, sourceIsOptional, targetIsOptional |
Methods inherited from class org.eclipse.gmt.umlx.editor.regime.AbstractRegime |
canCopy, canDelete, computeProblemMessage, createCreateChildLinkCommand, createCreateCommand, createDeleteCommand, createOutline, getBasicClass, getFacets, getModelClass, getNewNamePrefix, getParentModelClass, initialise, isRegimeCo0, load, refreshProblemMessage, toString |
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.ILinkRegimeCo0 |
addConnection, canBeReversed, cannotConnectBetween, cannotConnectFrom, cannotConnectTo, createCreateCommand, createModelObject, createReconnectCommand, getActualConnection, getActualConnectionsBetween, getCoCoModelsFor, getPotentialCoConnection, getPotentialConnection, getPotentialConnectionsBetween, getSource, getSourceLinkEnd, getSourceModelClass, getSourceNode, getTarget, getTargetLinkEnd, getTargetModelClass, getTargetNode, isContainment, resolveRegime, sourceIsOptional, targetIsOptional |
INSTANCE
public static final GAttributionRegime INSTANCE
getPaletteEntry
public static org.eclipse.gef.palette.PaletteEntry getPaletteEntry()
createFigure
public LinkFigure createFigure(ILinkViewElement view)
- Description copied from interface:
ILinkRegimeCo0
- Create the figure object to be drawn in the sheet editor.
- Specified by:
createFigure
in interface ILinkRegimeCo0<GClass,GAttribution,GSheetAttribute,MmSheet>
- Overrides:
createFigure
in class AbstractLinkRegimeCo0<GClass,GAttribution,GSheetAttribute,MmSheet>
- Returns:
- a figure
createModelObject
public GAttribution 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<GAttribution,MmSheet>
- Overrides:
createModelObject
in class AbstractRegime<GAttribution,MmSheet>
createView
public AttributionView createView(SheetViewer viewer,
GAttribution model)
- Specified by:
createView
in interface IRegimeCo0<GAttribution,MmSheet>
- Overrides:
createView
in class AbstractRegime<GAttribution,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<GAttribution,MmSheet>
- Returns:
- the non-opaque model element behind the graphical editModel
getCoRegime
public E2AttributionRegime getCoRegime()
- Description copied from interface:
IRegime
- Return the co-regime if it has one.
- Specified by:
getCoRegime
in interface ILinkRegimeCo0<GClass,GAttribution,GSheetAttribute,MmSheet>
- Specified by:
getCoRegime
in interface ILinkRegimeCo1<GClass,GAttribution,GSheetAttribute,MmSheet,E2Attribution,Orphanage>
- Specified by:
getCoRegime
in interface IRegime
- Specified by:
getCoRegime
in interface IRegimeCo0<GAttribution,MmSheet>
- Specified by:
getCoRegime
in interface IRegimeCo1<GAttribution,MmSheet,E2Attribution,Orphanage>
- Specified by:
getCoRegime
in class AbstractLinkRegimeCo1<GClass,GAttribution,GSheetAttribute,MmSheet,E2Attribution,Orphanage>
- 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
- Returns:
- label