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

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<UAttributeVariable,UAttributeVariable2UExpressionVariable,UExpressionVariable,URelation>
              extended by org.eclipse.gmt.umlx.tx.editor.regimes.UAttributeVariable2UExpressionVariableRegime
All Implemented Interfaces:
ILinkRegimeCo0<UAttributeVariable,UAttributeVariable2UExpressionVariable,UExpressionVariable,URelation>, ILinkRegimeEnums, IRegime, IRegimeCo0<UAttributeVariable2UExpressionVariable,URelation>, IClassExtension

public class UAttributeVariable2UExpressionVariableRegime
extends AbstractLinkRegimeCo0<UAttributeVariable,UAttributeVariable2UExpressionVariable,UExpressionVariable,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 UAttributeVariable2UExpressionVariableRegime INSTANCE
           
 
Method Summary
 IErrorMessage cannotConnectFrom0(UAttributeVariable source, UExpressionVariable target, ILinkRegimeEnums.IsCreate isCreate)
           
 IErrorMessage cannotConnectTo0(UAttributeVariable source, UExpressionVariable target, ILinkRegimeEnums.IsCreate isCreate)
           
 UAttributeVariable2UExpressionVariable createModelObject()
          Create a new and uninitialised EMF object of the type managed by this regime.
 AbstractOutline createOutline(OutlineViewer viewer, UAttributeVariable2UExpressionVariable coModel)
           
 AbstractPropertySource createPropertySource(UAttributeVariable2UExpressionVariable coModel)
           
 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
 UAttributeVariable getSource0(UAttributeVariable2UExpressionVariable model)
           
 java.util.List<UAttributeVariable2UExpressionVariable> getSourceConnections(java.lang.Object source)
           
 UExpressionVariable getTarget0(UAttributeVariable2UExpressionVariable model)
           
 java.util.List<UAttributeVariable2UExpressionVariable> getTargetConnections(java.lang.Object target)
           
 
Methods inherited from class org.eclipse.gmt.umlx.editor.regime.AbstractLinkRegimeCo0
addConnection, canBeReversed, cannotConnectBetween, cannotConnectFrom, cannotConnectTo, createCreateCommand, createFacets, createFigure, createLinkEnd, createModelObject, createReconnectCommand, getActualConnection, getActualConnectionsBetween, getBendpoints, getCoCoModelsFor, getCoRegime, getPotentialCoConnection, getPotentialCoConnectionsBetween, getPotentialConnection, getPotentialConnectionsBetween, getSource, getSourceLinkEnd, getSourceModelClass, getSourceNode, getTarget, getTargetLinkEnd, getTargetModelClass, getTargetNode, isContainment, isLink, isRegimeCo1, isRegimeCo2, removeConnection, resolveRegime, sourceIsOptional, targetIsOptional
 
Methods inherited from class org.eclipse.gmt.umlx.editor.regime.AbstractRegime
canCopy, canDelete, computeProblemMessage, createCreateChildLinkCommand, createCreateCommand, createDeleteCommand, createView, getBackElement, getBasicClass, getCoModel, getCoModelClass, getCoModelParentClass, getFacets, getModelClass, getNewNamePrefix, getParentModelClass, getSheetClass, initialise, isNode, isRegimeCo0, load, refreshProblemMessage, setCoModel, 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, createView, getFacets, getModelClass, getParentModelClass, isNode, isRegimeCo0, refreshProblemMessage, setCoModel
 
Methods inherited from interface org.eclipse.gmt.umlx.editor.regime.IRegime
createCreateChildLinkCommand, createCreateCommand, getBackElement, getCoModel, getCoModelClass, getCoModelParentClass, getNewNamePrefix, getSheetClass
 
Methods inherited from interface org.eclipse.gmt.umlx.utils.IClassExtension
getBasicClass, toDebugString, toUserString
 

Field Detail

INSTANCE

public static final UAttributeVariable2UExpressionVariableRegime INSTANCE
Method Detail

cannotConnectFrom0

public IErrorMessage cannotConnectFrom0(UAttributeVariable source,
                                        UExpressionVariable target,
                                        ILinkRegimeEnums.IsCreate isCreate)

cannotConnectTo0

public IErrorMessage cannotConnectTo0(UAttributeVariable source,
                                      UExpressionVariable target,
                                      ILinkRegimeEnums.IsCreate isCreate)

createModelObject

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

createOutline

public AbstractOutline createOutline(OutlineViewer viewer,
                                     UAttributeVariable2UExpressionVariable coModel)
Specified by:
createOutline in interface IRegimeCo0<UAttributeVariable2UExpressionVariable,URelation>
Overrides:
createOutline in class AbstractRegime<UAttributeVariable2UExpressionVariable,URelation>

createPropertySource

public AbstractPropertySource createPropertySource(UAttributeVariable2UExpressionVariable coModel)
Specified by:
createPropertySource in interface IRegimeCo0<UAttributeVariable2UExpressionVariable,URelation>
Overrides:
createPropertySource in class AbstractRegime<UAttributeVariable2UExpressionVariable,URelation>

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

getSource0

public UAttributeVariable getSource0(UAttributeVariable2UExpressionVariable model)
Specified by:
getSource0 in interface ILinkRegimeCo0<UAttributeVariable,UAttributeVariable2UExpressionVariable,UExpressionVariable,URelation>
Specified by:
getSource0 in class AbstractLinkRegimeCo0<UAttributeVariable,UAttributeVariable2UExpressionVariable,UExpressionVariable,URelation>

getSourceConnections

public java.util.List<UAttributeVariable2UExpressionVariable> getSourceConnections(java.lang.Object source)
Specified by:
getSourceConnections in interface ILinkRegimeCo0<UAttributeVariable,UAttributeVariable2UExpressionVariable,UExpressionVariable,URelation>
Overrides:
getSourceConnections in class AbstractLinkRegimeCo0<UAttributeVariable,UAttributeVariable2UExpressionVariable,UExpressionVariable,URelation>

getTarget0

public UExpressionVariable getTarget0(UAttributeVariable2UExpressionVariable model)
Specified by:
getTarget0 in interface ILinkRegimeCo0<UAttributeVariable,UAttributeVariable2UExpressionVariable,UExpressionVariable,URelation>
Specified by:
getTarget0 in class AbstractLinkRegimeCo0<UAttributeVariable,UAttributeVariable2UExpressionVariable,UExpressionVariable,URelation>

getTargetConnections

public java.util.List<UAttributeVariable2UExpressionVariable> getTargetConnections(java.lang.Object target)
Specified by:
getTargetConnections in interface ILinkRegimeCo0<UAttributeVariable,UAttributeVariable2UExpressionVariable,UExpressionVariable,URelation>
Overrides:
getTargetConnections in class AbstractLinkRegimeCo0<UAttributeVariable,UAttributeVariable2UExpressionVariable,UExpressionVariable,URelation>