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

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.regime.AbstractLinkRegimeCo2<SM,LM,TM,P,CM,CP>
                      extended by org.eclipse.gmt.umlx.editor.regimes.GSheetLinkRegimeCo2<TxClassVariable,TxClassVariable2TxClassVariable,TxClassVariable,TxRuleSheet,UClassVariable2UClassVariable,URelation>
                          extended by org.eclipse.gmt.umlx.tx.editor.regimes.TxClassVariable2TxClassVariableRegime
All Implemented Interfaces:
ILinkRegimeCo0<TxClassVariable,TxClassVariable2TxClassVariable,TxClassVariable,TxRuleSheet>, ILinkRegimeCo1<TxClassVariable,TxClassVariable2TxClassVariable,TxClassVariable,TxRuleSheet,UClassVariable2UClassVariable,URelation>, ILinkRegimeCo2<TxClassVariable,TxClassVariable2TxClassVariable,TxClassVariable,TxRuleSheet,UClassVariable2UClassVariable,URelation>, ILinkRegimeEnums, IRegime, IRegimeCo0<TxClassVariable2TxClassVariable,TxRuleSheet>, IRegimeCo1<TxClassVariable2TxClassVariable,TxRuleSheet,UClassVariable2UClassVariable,URelation>, IRegimeCo2<TxClassVariable2TxClassVariable,TxRuleSheet,UClassVariable2UClassVariable,URelation>, IClassExtension

public class TxClassVariable2TxClassVariableRegime
extends GSheetLinkRegimeCo2<TxClassVariable,TxClassVariable2TxClassVariable,TxClassVariable,TxRuleSheet,UClassVariable2UClassVariable,URelation>


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 TxClassVariable2TxClassVariableRegime INSTANCE
           
 
Method Summary
 LinkFigure createFigure(ILinkViewElement view)
          Create the figure object to be drawn in the sheet editor.
 TxClassVariable2TxClassVariable createModelObject()
          Create a new and uninitialised EMF object of the type managed by this regime.
 TxClassVariable2TxClassVariableView createView(SheetViewer viewer, TxClassVariable2TxClassVariable model)
           
 java.util.List<?> getCoCoModelsFor(java.lang.Object coSource, java.lang.Object coTarget)
           
 E2AssociationRegime getCoCoRegime()
           
 UClassVariable2UClassVariableRegime 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()
           
 URelation getParentCoModel(IActiveEditDomain editDomain, GModelElement source, java.lang.Object parent, GModelElement target)
          Return the object to be coModel of the parent of a model created by this regime in editDomain between coSource and coTarget.
 URelation getParentCoModel(IActiveEditDomain editDomain, java.lang.Object parent)
          Return the object to be coModel of the parent of a model created by this regime in editDomain.
 
Methods inherited from class org.eclipse.gmt.umlx.editor.regimes.GSheetLinkRegimeCo2
createFacets, createPropertySource, getBendpoints, getCoModel, getCoModelFor, getSheetClass, getSource0, getSourceConnections, getTarget0, getTargetConnections, setCoModel
 
Methods inherited from class org.eclipse.gmt.umlx.editor.regime.AbstractLinkRegimeCo2
canCoCoChange, cannotCoCoCreate, getCoCoModelFor, getThisChangeContext, getThisCreateContext, isLink, isNode, isRegimeCo2, loadCoCoModelClass
 
Methods inherited from class org.eclipse.gmt.umlx.editor.regime.AbstractLinkRegimeCo1
canCoChange, cannotCoCreate, coModelIsOptional, createChangeCoModelCommand, getCoModelClass, getCoModelFor, getCoModelParentClass, isRegimeCo1, loadCoModelClass
 
Methods inherited from class org.eclipse.gmt.umlx.editor.regime.AbstractLinkRegimeCo0
addConnection, canBeReversed, cannotConnectBetween, cannotConnectFrom, cannotConnectTo, createCreateCommand, createLinkEnd, createModelObject, createReconnectCommand, getActualConnection, getActualConnectionsBetween, getPotentialCoConnection, getPotentialCoConnectionsBetween, getPotentialConnection, getPotentialConnectionsBetween, getSource, getSourceLinkEnd, getSourceModelClass, getSourceNode, getTarget, getTargetLinkEnd, getTargetModelClass, getTargetNode, isContainment, removeConnection, 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.IRegimeCo1
canCoChange, coModelIsOptional, createChangeCoModelCommand, getCoModelClass, getCoModelFor, loadCoModelClass
 
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, getCoModelParentClass, getNewNamePrefix
 
Methods inherited from interface org.eclipse.gmt.umlx.utils.IClassExtension
getBasicClass, toDebugString, toUserString
 
Methods inherited from interface org.eclipse.gmt.umlx.editor.regime.ILinkRegimeCo1
cannotCoCreate, isRegimeCo1
 
Methods inherited from interface org.eclipse.gmt.umlx.editor.regime.IRegimeCo1
canCoChange, coModelIsOptional, createChangeCoModelCommand, getCoModelClass, getCoModelFor, loadCoModelClass
 
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, getCoModelParentClass, 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, getPotentialCoConnection, getPotentialConnection, getPotentialConnectionsBetween, getSource, getSourceLinkEnd, getSourceModelClass, getSourceNode, getTarget, getTargetLinkEnd, getTargetModelClass, getTargetNode, isContainment, removeConnection, 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, getCoModelParentClass, getNewNamePrefix
 
Methods inherited from interface org.eclipse.gmt.umlx.utils.IClassExtension
getBasicClass, toDebugString, toUserString
 

Field Detail

INSTANCE

public static final TxClassVariable2TxClassVariableRegime 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<TxClassVariable,TxClassVariable2TxClassVariable,TxClassVariable,TxRuleSheet>
Overrides:
createFigure in class AbstractLinkRegimeCo0<TxClassVariable,TxClassVariable2TxClassVariable,TxClassVariable,TxRuleSheet>
Returns:
a figure

createModelObject

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

createView

public TxClassVariable2TxClassVariableView createView(SheetViewer viewer,
                                                      TxClassVariable2TxClassVariable model)
Specified by:
createView in interface IRegimeCo0<TxClassVariable2TxClassVariable,TxRuleSheet>
Overrides:
createView in class AbstractRegime<TxClassVariable2TxClassVariable,TxRuleSheet>

getCoCoModelsFor

public java.util.List<?> getCoCoModelsFor(java.lang.Object coSource,
                                          java.lang.Object coTarget)
Specified by:
getCoCoModelsFor in interface ILinkRegimeCo0<TxClassVariable,TxClassVariable2TxClassVariable,TxClassVariable,TxRuleSheet>
Specified by:
getCoCoModelsFor in class AbstractLinkRegimeCo2<TxClassVariable,TxClassVariable2TxClassVariable,TxClassVariable,TxRuleSheet,UClassVariable2UClassVariable,URelation>

getCoCoRegime

public E2AssociationRegime getCoCoRegime()

getCoRegime

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

Specified by:
getCoRegime in interface ILinkRegimeCo0<TxClassVariable,TxClassVariable2TxClassVariable,TxClassVariable,TxRuleSheet>
Specified by:
getCoRegime in interface ILinkRegimeCo1<TxClassVariable,TxClassVariable2TxClassVariable,TxClassVariable,TxRuleSheet,UClassVariable2UClassVariable,URelation>
Specified by:
getCoRegime in interface ILinkRegimeCo2<TxClassVariable,TxClassVariable2TxClassVariable,TxClassVariable,TxRuleSheet,UClassVariable2UClassVariable,URelation>
Specified by:
getCoRegime in interface IRegime
Specified by:
getCoRegime in interface IRegimeCo0<TxClassVariable2TxClassVariable,TxRuleSheet>
Specified by:
getCoRegime in interface IRegimeCo1<TxClassVariable2TxClassVariable,TxRuleSheet,UClassVariable2UClassVariable,URelation>
Specified by:
getCoRegime in interface IRegimeCo2<TxClassVariable2TxClassVariable,TxRuleSheet,UClassVariable2UClassVariable,URelation>
Specified by:
getCoRegime in class AbstractLinkRegimeCo2<TxClassVariable,TxClassVariable2TxClassVariable,TxClassVariable,TxRuleSheet,UClassVariable2UClassVariable,URelation>
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

getParentCoModel

public URelation 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<TxClassVariable2TxClassVariable,TxRuleSheet,UClassVariable2UClassVariable,URelation>
Overrides:
getParentCoModel in class AbstractLinkRegimeCo1<TxClassVariable,TxClassVariable2TxClassVariable,TxClassVariable,TxRuleSheet,UClassVariable2UClassVariable,URelation>
Parameters:
editDomain - edit domain containing objects
parent - parent of graphical model
Returns:
co-model of parent

getParentCoModel

public URelation getParentCoModel(IActiveEditDomain editDomain,
                                  GModelElement source,
                                  java.lang.Object parent,
                                  GModelElement target)
Description copied from interface: ILinkRegimeCo1
Return the object to be coModel of the parent of a model created by this regime in editDomain between coSource and coTarget. 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 ILinkRegimeCo1<TxClassVariable,TxClassVariable2TxClassVariable,TxClassVariable,TxRuleSheet,UClassVariable2UClassVariable,URelation>
Specified by:
getParentCoModel in class AbstractLinkRegimeCo1<TxClassVariable,TxClassVariable2TxClassVariable,TxClassVariable,TxRuleSheet,UClassVariable2UClassVariable,URelation>
Parameters:
editDomain - domain in which to create
source - connection source
parent - parent of instantiation
target - connection target
Returns:
the parent co-model