org.eclipse.gmt.umlx.tx.editor.regimes
Class TxTransformation2TxTypedModelRegime

java.lang.Object
  extended by org.eclipse.gmt.umlx.utils.ClassExtension<M>
      extended by org.eclipse.gmt.umlx.editor.regime.AbstractRegime<LM,P>
          extended by org.eclipse.gmt.umlx.editor.regime.AbstractLinkRegimeCo0<SM,LM,TM,P>
              extended by org.eclipse.gmt.umlx.editor.regime.AbstractLinkRegimeCo1<SM,LM,TM,P,CM,CP>
                  extended by org.eclipse.gmt.umlx.editor.regimes.GSheetLinkRegimeCo1<SM,LM,TM,P,CM,Orphanage>
                      extended by org.eclipse.gmt.umlx.editor.regimes.GSheetTransientLinkRegimeCo1<TxTransformation,TxTransformation2TxTypedModel,TxTypedModel,TxContextSheet,UTransformation2UTypedModel>
                          extended by org.eclipse.gmt.umlx.tx.editor.regimes.TxTransformation2TxTypedModelRegime
All Implemented Interfaces:
ILinkRegimeCo0<TxTransformation,TxTransformation2TxTypedModel,TxTypedModel,TxContextSheet>, ILinkRegimeCo1<TxTransformation,TxTransformation2TxTypedModel,TxTypedModel,TxContextSheet,UTransformation2UTypedModel,Orphanage>, ILinkRegimeEnums, IRegime, IRegimeCo0<TxTransformation2TxTypedModel,TxContextSheet>, IRegimeCo1<TxTransformation2TxTypedModel,TxContextSheet,UTransformation2UTypedModel,Orphanage>, IClassExtension

public class TxTransformation2TxTypedModelRegime
extends GSheetTransientLinkRegimeCo1<TxTransformation,TxTransformation2TxTypedModel,TxTypedModel,TxContextSheet,UTransformation2UTypedModel>


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.gmt.umlx.editor.regime.ILinkRegimeEnums
ILinkRegimeEnums.IsCreate, ILinkRegimeEnums.IsReconnect, ILinkRegimeEnums.IsReCreate
 
Field Summary
static TxTransformation2TxTypedModelRegime INSTANCE
           
 
Method Summary
 LinkFigure createFigure(ILinkViewElement view)
          Create the figure object to be drawn in the sheet editor.
 TxTransformation2TxTypedModel createModelObject()
          Create a new and uninitialised EMF object of the type managed by this regime.
 TxTransformation2TxTypedModelView createView(SheetViewer viewer, TxTransformation2TxTypedModel model)
           
 UTransformation2UTypedModelRegime 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 getLabel()
          Return a descriptive label for the managed object type
static org.eclipse.gef.palette.PaletteEntry getPaletteEntry()
           
 
Methods inherited from class org.eclipse.gmt.umlx.editor.regimes.GSheetTransientLinkRegimeCo1
getParentCoModel
 
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, getBackElement, getBasicClass, getFacets, getModelClass, getNewNamePrefix, getParentModelClass, 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, getBackElement, getNewNamePrefix
 
Methods inherited from interface org.eclipse.gmt.umlx.utils.IClassExtension
getBasicClass, toDebugString, toUserString
 
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
 
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, getBackElement, getNewNamePrefix
 
Methods inherited from interface org.eclipse.gmt.umlx.utils.IClassExtension
getBasicClass, toDebugString, toUserString
 

Field Detail

INSTANCE

public static final TxTransformation2TxTypedModelRegime INSTANCE
Method Detail

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<TxTransformation,TxTransformation2TxTypedModel,TxTypedModel,TxContextSheet>
Overrides:
createFigure in class AbstractLinkRegimeCo0<TxTransformation,TxTransformation2TxTypedModel,TxTypedModel,TxContextSheet>
Returns:
a figure

createModelObject

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

createView

public TxTransformation2TxTypedModelView createView(SheetViewer viewer,
                                                    TxTransformation2TxTypedModel model)
Specified by:
createView in interface IRegimeCo0<TxTransformation2TxTypedModel,TxContextSheet>
Overrides:
createView in class AbstractRegime<TxTransformation2TxTypedModel,TxContextSheet>

getCoRegime

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

Specified by:
getCoRegime in interface ILinkRegimeCo0<TxTransformation,TxTransformation2TxTypedModel,TxTypedModel,TxContextSheet>
Specified by:
getCoRegime in interface ILinkRegimeCo1<TxTransformation,TxTransformation2TxTypedModel,TxTypedModel,TxContextSheet,UTransformation2UTypedModel,Orphanage>
Specified by:
getCoRegime in interface IRegime
Specified by:
getCoRegime in interface IRegimeCo0<TxTransformation2TxTypedModel,TxContextSheet>
Specified by:
getCoRegime in interface IRegimeCo1<TxTransformation2TxTypedModel,TxContextSheet,UTransformation2UTypedModel,Orphanage>
Specified by:
getCoRegime in class AbstractLinkRegimeCo1<TxTransformation,TxTransformation2TxTypedModel,TxTypedModel,TxContextSheet,UTransformation2UTypedModel,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