|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.gmt.umlx.utils.ClassExtension<M>
org.eclipse.gmt.umlx.editor.regime.AbstractRegime<LM,P>
org.eclipse.gmt.umlx.editor.regime.AbstractLinkRegimeCo0<org.eclipse.emf.ecore.EReference,E2Association,org.eclipse.emf.ecore.EReference,Orphanage>
org.eclipse.gmt.umlx.mm.editor.regimes.E2AssociationRegime
public class E2AssociationRegime
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 E2AssociationRegime |
INSTANCE
|
Constructor Summary | |
---|---|
E2AssociationRegime(E2Direction direction)
|
Method Summary | |
---|---|
void |
addConnection(int sourceIndex,
ILinkEnd newSourceEnd,
E2Association link,
ILinkEnd newTargetEnd,
int targetIndex)
|
IErrorMessage |
cannotConnectFrom(java.lang.Object source,
ILinkRegimeEnums.IsCreate isCreate)
Return a reason why a connection cannot start from source or null if it can. |
IErrorMessage |
cannotConnectFrom0(org.eclipse.emf.ecore.EReference source,
org.eclipse.emf.ecore.EReference target,
ILinkRegimeEnums.IsCreate isCreate)
|
IErrorMessage |
cannotConnectTo(java.lang.Object target,
ILinkRegimeEnums.IsCreate isCreate)
Return a reason why a connection cannot finish at target or null if it can. |
IErrorMessage |
cannotConnectTo0(org.eclipse.emf.ecore.EReference source,
org.eclipse.emf.ecore.EReference target,
ILinkRegimeEnums.IsCreate isCreate)
|
CreateCommand |
createCreateCommand(IActiveEditDomain editDomain,
java.lang.Object coModel,
java.lang.Object context,
ILinkEnd sourceLinkEnd,
ILinkEnd targetLinkEnd)
|
DeleteCommand |
createDeleteCommand(DeleteDomain deleteDomain,
E2Association model)
|
void |
createFacets(java.util.List<IFacet<? super E2Association>> facetList)
|
E2AssociationLinkEnd |
createLinkEnd(java.lang.Object object)
Create an object to describe the end of a link terminating at object. |
E2Association |
createModelObject(ILinkEnd sourceLinkEnd,
ILinkEnd targetLinkEnd)
|
AbstractOutline |
createOutline(OutlineViewer viewer,
E2Association modelObject)
|
AbstractPropertySource |
createPropertySource(E2Association coModel)
|
ReconnectCommand |
createReconnectCommand(java.lang.Object newSource,
java.lang.Object link,
java.lang.Object newTarget)
|
IErrorMessage |
getActualConnectionsBetween(ILinkEnd sourceLinkEnd,
ILinkEnd targetLinkEnd,
CandidateLinks candidates)
Compute a list of the connections that currently exist between source and target or return an error message if connections are not possible. |
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 |
E2Association |
getPotentialConnection(org.eclipse.emf.ecore.EReference source,
org.eclipse.emf.ecore.EReference target)
Return the connection between source and target that could be present in the model. |
org.eclipse.emf.ecore.EReference |
getSource0(E2Association model)
|
ILinkEnd |
getSourceLinkEnd(java.lang.Object model)
|
org.eclipse.emf.ecore.EObject |
getSourceNode(java.lang.Object model)
Return the node at the source of this link. |
org.eclipse.emf.ecore.EReference |
getTarget0(E2Association model)
|
ILinkEnd |
getTargetLinkEnd(java.lang.Object model)
|
org.eclipse.emf.ecore.EObject |
getTargetNode(java.lang.Object model)
Return the node at the target of this link. |
java.lang.Integer[] |
removeConnection(org.eclipse.emf.ecore.EReference source,
E2Association link,
org.eclipse.emf.ecore.EReference target)
|
boolean |
sourceIsOptional()
Return true if source need not be present in a valid model. |
boolean |
targetIsOptional()
Return true if target need not be present in a valid model. |
Methods inherited from class org.eclipse.gmt.umlx.editor.regime.AbstractLinkRegimeCo0 |
---|
canBeReversed, cannotConnectBetween, createFigure, getActualConnection, getBendpoints, getCoCoModelsFor, getCoRegime, getPotentialCoConnection, getPotentialCoConnectionsBetween, getPotentialConnectionsBetween, getSource, getSourceConnections, getSourceModelClass, getTarget, getTargetConnections, getTargetModelClass, isContainment, isLink, isRegimeCo1, isRegimeCo2, resolveRegime |
Methods inherited from class org.eclipse.gmt.umlx.editor.regime.AbstractRegime |
---|
canCopy, canDelete, computeProblemMessage, createCreateChildLinkCommand, createCreateCommand, createModelObject, 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, createModelObject, 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 |
---|
public static final E2AssociationRegime INSTANCE
Constructor Detail |
---|
public E2AssociationRegime(E2Direction direction)
Method Detail |
---|
public void addConnection(int sourceIndex, ILinkEnd newSourceEnd, E2Association link, ILinkEnd newTargetEnd, int targetIndex)
addConnection
in interface ILinkRegimeCo0<org.eclipse.emf.ecore.EReference,E2Association,org.eclipse.emf.ecore.EReference,Orphanage>
addConnection
in class AbstractLinkRegimeCo0<org.eclipse.emf.ecore.EReference,E2Association,org.eclipse.emf.ecore.EReference,Orphanage>
public IErrorMessage cannotConnectFrom(java.lang.Object source, ILinkRegimeEnums.IsCreate isCreate)
ILinkRegimeCo0
cannotConnectFrom
in interface ILinkRegimeCo0<org.eclipse.emf.ecore.EReference,E2Association,org.eclipse.emf.ecore.EReference,Orphanage>
cannotConnectFrom
in class AbstractLinkRegimeCo0<org.eclipse.emf.ecore.EReference,E2Association,org.eclipse.emf.ecore.EReference,Orphanage>
source
- source of required connectionisCreate
- true if check for creation rather than use
public IErrorMessage cannotConnectFrom0(org.eclipse.emf.ecore.EReference source, org.eclipse.emf.ecore.EReference target, ILinkRegimeEnums.IsCreate isCreate)
public IErrorMessage cannotConnectTo(java.lang.Object target, ILinkRegimeEnums.IsCreate isCreate)
ILinkRegimeCo0
cannotConnectTo
in interface ILinkRegimeCo0<org.eclipse.emf.ecore.EReference,E2Association,org.eclipse.emf.ecore.EReference,Orphanage>
cannotConnectTo
in class AbstractLinkRegimeCo0<org.eclipse.emf.ecore.EReference,E2Association,org.eclipse.emf.ecore.EReference,Orphanage>
target
- target of required connectionisCreate
- true if check for creation rather than use
public IErrorMessage cannotConnectTo0(org.eclipse.emf.ecore.EReference source, org.eclipse.emf.ecore.EReference target, ILinkRegimeEnums.IsCreate isCreate)
public CreateCommand createCreateCommand(IActiveEditDomain editDomain, java.lang.Object coModel, java.lang.Object context, ILinkEnd sourceLinkEnd, ILinkEnd targetLinkEnd)
createCreateCommand
in interface ILinkRegimeCo0<org.eclipse.emf.ecore.EReference,E2Association,org.eclipse.emf.ecore.EReference,Orphanage>
createCreateCommand
in class AbstractLinkRegimeCo0<org.eclipse.emf.ecore.EReference,E2Association,org.eclipse.emf.ecore.EReference,Orphanage>
public DeleteCommand createDeleteCommand(DeleteDomain deleteDomain, E2Association model)
createDeleteCommand
in interface IRegimeCo0<E2Association,Orphanage>
createDeleteCommand
in class AbstractRegime<E2Association,Orphanage>
public void createFacets(java.util.List<IFacet<? super E2Association>> facetList)
createFacets
in class AbstractLinkRegimeCo0<org.eclipse.emf.ecore.EReference,E2Association,org.eclipse.emf.ecore.EReference,Orphanage>
public E2AssociationLinkEnd createLinkEnd(java.lang.Object object)
IRegime
createLinkEnd
in interface IRegime
createLinkEnd
in class AbstractLinkRegimeCo0<org.eclipse.emf.ecore.EReference,E2Association,org.eclipse.emf.ecore.EReference,Orphanage>
public E2Association createModelObject(ILinkEnd sourceLinkEnd, ILinkEnd targetLinkEnd)
createModelObject
in interface ILinkRegimeCo0<org.eclipse.emf.ecore.EReference,E2Association,org.eclipse.emf.ecore.EReference,Orphanage>
createModelObject
in class AbstractLinkRegimeCo0<org.eclipse.emf.ecore.EReference,E2Association,org.eclipse.emf.ecore.EReference,Orphanage>
public AbstractPropertySource createPropertySource(E2Association coModel)
createPropertySource
in interface IRegimeCo0<E2Association,Orphanage>
createPropertySource
in class AbstractRegime<E2Association,Orphanage>
public AbstractOutline createOutline(OutlineViewer viewer, E2Association modelObject)
createOutline
in interface IRegimeCo0<E2Association,Orphanage>
createOutline
in class AbstractRegime<E2Association,Orphanage>
public ReconnectCommand createReconnectCommand(java.lang.Object newSource, java.lang.Object link, java.lang.Object newTarget)
createReconnectCommand
in interface ILinkRegimeCo0<org.eclipse.emf.ecore.EReference,E2Association,org.eclipse.emf.ecore.EReference,Orphanage>
createReconnectCommand
in class AbstractLinkRegimeCo0<org.eclipse.emf.ecore.EReference,E2Association,org.eclipse.emf.ecore.EReference,Orphanage>
public IErrorMessage getActualConnectionsBetween(ILinkEnd sourceLinkEnd, ILinkEnd targetLinkEnd, CandidateLinks candidates)
ILinkRegimeCo0
getActualConnectionsBetween
in interface ILinkRegimeCo0<org.eclipse.emf.ecore.EReference,E2Association,org.eclipse.emf.ecore.EReference,Orphanage>
getActualConnectionsBetween
in class AbstractLinkRegimeCo0<org.eclipse.emf.ecore.EReference,E2Association,org.eclipse.emf.ecore.EReference,Orphanage>
sourceLinkEnd
- source of required connectiontargetLinkEnd
- target of required connectioncandidates
- list to which current connections are added
public java.lang.Enum getIcon()
IRegime
public java.lang.String getLabel()
IRegime
public E2Association getPotentialConnection(org.eclipse.emf.ecore.EReference source, org.eclipse.emf.ecore.EReference target)
ILinkRegimeCo0
getPotentialConnection
in interface ILinkRegimeCo0<org.eclipse.emf.ecore.EReference,E2Association,org.eclipse.emf.ecore.EReference,Orphanage>
getPotentialConnection
in class AbstractLinkRegimeCo0<org.eclipse.emf.ecore.EReference,E2Association,org.eclipse.emf.ecore.EReference,Orphanage>
source
- source of required connectiontarget
- target of required connection
public org.eclipse.emf.ecore.EReference getSource0(E2Association model)
getSource0
in interface ILinkRegimeCo0<org.eclipse.emf.ecore.EReference,E2Association,org.eclipse.emf.ecore.EReference,Orphanage>
getSource0
in class AbstractLinkRegimeCo0<org.eclipse.emf.ecore.EReference,E2Association,org.eclipse.emf.ecore.EReference,Orphanage>
public ILinkEnd getSourceLinkEnd(java.lang.Object model)
getSourceLinkEnd
in interface ILinkRegimeCo0<org.eclipse.emf.ecore.EReference,E2Association,org.eclipse.emf.ecore.EReference,Orphanage>
getSourceLinkEnd
in class AbstractLinkRegimeCo0<org.eclipse.emf.ecore.EReference,E2Association,org.eclipse.emf.ecore.EReference,Orphanage>
public org.eclipse.emf.ecore.EObject getSourceNode(java.lang.Object model)
ILinkRegimeCo0
getSourceNode
in interface ILinkRegimeCo0<org.eclipse.emf.ecore.EReference,E2Association,org.eclipse.emf.ecore.EReference,Orphanage>
getSourceNode
in class AbstractLinkRegimeCo0<org.eclipse.emf.ecore.EReference,E2Association,org.eclipse.emf.ecore.EReference,Orphanage>
model
- to traverse
public org.eclipse.emf.ecore.EReference getTarget0(E2Association model)
getTarget0
in interface ILinkRegimeCo0<org.eclipse.emf.ecore.EReference,E2Association,org.eclipse.emf.ecore.EReference,Orphanage>
getTarget0
in class AbstractLinkRegimeCo0<org.eclipse.emf.ecore.EReference,E2Association,org.eclipse.emf.ecore.EReference,Orphanage>
public ILinkEnd getTargetLinkEnd(java.lang.Object model)
getTargetLinkEnd
in interface ILinkRegimeCo0<org.eclipse.emf.ecore.EReference,E2Association,org.eclipse.emf.ecore.EReference,Orphanage>
getTargetLinkEnd
in class AbstractLinkRegimeCo0<org.eclipse.emf.ecore.EReference,E2Association,org.eclipse.emf.ecore.EReference,Orphanage>
public org.eclipse.emf.ecore.EObject getTargetNode(java.lang.Object model)
ILinkRegimeCo0
getTargetNode
in interface ILinkRegimeCo0<org.eclipse.emf.ecore.EReference,E2Association,org.eclipse.emf.ecore.EReference,Orphanage>
getTargetNode
in class AbstractLinkRegimeCo0<org.eclipse.emf.ecore.EReference,E2Association,org.eclipse.emf.ecore.EReference,Orphanage>
model
- to traverse
public java.lang.Integer[] removeConnection(org.eclipse.emf.ecore.EReference source, E2Association link, org.eclipse.emf.ecore.EReference target)
removeConnection
in interface ILinkRegimeCo0<org.eclipse.emf.ecore.EReference,E2Association,org.eclipse.emf.ecore.EReference,Orphanage>
removeConnection
in class AbstractLinkRegimeCo0<org.eclipse.emf.ecore.EReference,E2Association,org.eclipse.emf.ecore.EReference,Orphanage>
public boolean sourceIsOptional()
ILinkRegimeCo0
sourceIsOptional
in interface ILinkRegimeCo0<org.eclipse.emf.ecore.EReference,E2Association,org.eclipse.emf.ecore.EReference,Orphanage>
sourceIsOptional
in class AbstractLinkRegimeCo0<org.eclipse.emf.ecore.EReference,E2Association,org.eclipse.emf.ecore.EReference,Orphanage>
public boolean targetIsOptional()
ILinkRegimeCo0
targetIsOptional
in interface ILinkRegimeCo0<org.eclipse.emf.ecore.EReference,E2Association,org.eclipse.emf.ecore.EReference,Orphanage>
targetIsOptional
in class AbstractLinkRegimeCo0<org.eclipse.emf.ecore.EReference,E2Association,org.eclipse.emf.ecore.EReference,Orphanage>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |