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

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.tx.editor.regimes.URelationshipRegime<UClassVariable,UClassVariable2UClassVariable,UClassVariable,URelation,E2DirectedAssociation,E2Association>
                      extended by org.eclipse.gmt.umlx.tx.editor.regimes.UClassVariable2UClassVariableRegime
All Implemented Interfaces:
ILinkRegimeCo0<UClassVariable,UClassVariable2UClassVariable,UClassVariable,URelation>, ILinkRegimeCo1<UClassVariable,UClassVariable2UClassVariable,UClassVariable,URelation,E2DirectedAssociation,E2Association>, ILinkRegimeEnums, IRegime, IRegimeCo0<UClassVariable2UClassVariable,URelation>, IRegimeCo1<UClassVariable2UClassVariable,URelation,E2DirectedAssociation,E2Association>, IClassExtension

public class UClassVariable2UClassVariableRegime
extends URelationshipRegime<UClassVariable,UClassVariable2UClassVariable,UClassVariable,URelation,E2DirectedAssociation,E2Association>


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 UClassVariable2UClassVariableRegime INSTANCE
           
 
Method Summary
 IModelStateCommand createCreateCommand(IActiveEditDomain editDomain, java.lang.Object coModel, java.lang.Object context, ILinkEnd sourceLinkEnd, ILinkEnd targetLinkEnd)
           
 UClassVariable2UClassVariable createModelObject()
          Create a new and uninitialised EMF object of the type managed by this regime.
 AbstractOutline createOutline(OutlineViewer viewer, UClassVariable2UClassVariable coModel)
           
 AbstractPropertySource createPropertySource(UClassVariable2UClassVariable model)
           
 E2DirectedAssociation getCoModel(java.lang.Object model)
          Return the co-model of model if it has one.
 E2DirectedAssociationRegime 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
 java.util.List<UClassVariable2UClassVariable> getSourceConnections(java.lang.Object source)
           
 java.util.List<UClassVariable2UClassVariable> getTargetConnections(java.lang.Object target)
           
 void setCoModel(UClassVariable2UClassVariable model, java.lang.Object coModel)
           
 
Methods inherited from class org.eclipse.gmt.umlx.tx.editor.regimes.URelationshipRegime
getParentCoModel, getSource0, getTarget0
 
Methods inherited from class org.eclipse.gmt.umlx.editor.regime.AbstractLinkRegimeCo1
canCoChange, cannotCoCreate, 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, createFacets, createFigure, createLinkEnd, createModelObject, createReconnectCommand, getActualConnection, getActualConnectionsBetween, getBendpoints, getCoCoModelsFor, 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, createView, getBackElement, getBasicClass, getFacets, getModelClass, getNewNamePrefix, getParentModelClass, getSheetClass, 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, createView, getFacets, getModelClass, getParentModelClass, isRegimeCo0, refreshProblemMessage
 
Methods inherited from interface org.eclipse.gmt.umlx.editor.regime.IRegime
createCreateChildLinkCommand, createCreateCommand, createLinkEnd, getBackElement, getNewNamePrefix, getSheetClass
 
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, createFigure, createModelObject, createReconnectCommand, getActualConnection, getActualConnectionsBetween, getBendpoints, getCoCoModelsFor, 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, createView, getFacets, getModelClass, getParentModelClass, isRegimeCo0, refreshProblemMessage
 
Methods inherited from interface org.eclipse.gmt.umlx.editor.regime.IRegime
createCreateChildLinkCommand, createCreateCommand, createLinkEnd, getBackElement, getNewNamePrefix, getSheetClass
 
Methods inherited from interface org.eclipse.gmt.umlx.utils.IClassExtension
getBasicClass, toDebugString, toUserString
 

Field Detail

INSTANCE

public static final UClassVariable2UClassVariableRegime INSTANCE
Method Detail

createCreateCommand

public IModelStateCommand createCreateCommand(IActiveEditDomain editDomain,
                                              java.lang.Object coModel,
                                              java.lang.Object context,
                                              ILinkEnd sourceLinkEnd,
                                              ILinkEnd targetLinkEnd)
Specified by:
createCreateCommand in interface ILinkRegimeCo0<UClassVariable,UClassVariable2UClassVariable,UClassVariable,URelation>
Overrides:
createCreateCommand in class AbstractLinkRegimeCo0<UClassVariable,UClassVariable2UClassVariable,UClassVariable,URelation>

createModelObject

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

createOutline

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

createPropertySource

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

getCoModel

public E2DirectedAssociation getCoModel(java.lang.Object model)
Description copied from interface: IRegime
Return the co-model of model if it has one.

Specified by:
getCoModel in interface IRegime
Specified by:
getCoModel in interface IRegimeCo1<UClassVariable2UClassVariable,URelation,E2DirectedAssociation,E2Association>
Specified by:
getCoModel in class AbstractLinkRegimeCo1<UClassVariable,UClassVariable2UClassVariable,UClassVariable,URelation,E2DirectedAssociation,E2Association>
Parameters:
model - model
Returns:
co-model or null

getCoRegime

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

Specified by:
getCoRegime in interface ILinkRegimeCo0<UClassVariable,UClassVariable2UClassVariable,UClassVariable,URelation>
Specified by:
getCoRegime in interface ILinkRegimeCo1<UClassVariable,UClassVariable2UClassVariable,UClassVariable,URelation,E2DirectedAssociation,E2Association>
Specified by:
getCoRegime in interface IRegime
Specified by:
getCoRegime in interface IRegimeCo0<UClassVariable2UClassVariable,URelation>
Specified by:
getCoRegime in interface IRegimeCo1<UClassVariable2UClassVariable,URelation,E2DirectedAssociation,E2Association>
Specified by:
getCoRegime in class AbstractLinkRegimeCo1<UClassVariable,UClassVariable2UClassVariable,UClassVariable,URelation,E2DirectedAssociation,E2Association>
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

getSourceConnections

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

getTargetConnections

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

setCoModel

public void setCoModel(UClassVariable2UClassVariable model,
                       java.lang.Object coModel)
Specified by:
setCoModel in interface IRegimeCo0<UClassVariable2UClassVariable,URelation>
Specified by:
setCoModel in class AbstractLinkRegimeCo1<UClassVariable,UClassVariable2UClassVariable,UClassVariable,URelation,E2DirectedAssociation,E2Association>