|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ILinkRegimeCo0<SM extends org.eclipse.emf.ecore.EObject,LM,TM extends org.eclipse.emf.ecore.EObject,P>
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.eclipse.gmt.umlx.editor.regime.ILinkRegimeEnums |
---|
ILinkRegimeEnums.IsCreate, ILinkRegimeEnums.IsReconnect, ILinkRegimeEnums.IsReCreate |
Method Summary | |
---|---|
void |
addConnection(int sourceIndex,
ILinkEnd source,
LM link,
ILinkEnd target,
int targetIndex)
|
boolean |
canBeReversed()
Return true if the link may be drawn backwards. |
IErrorMessage |
cannotConnectBetween(java.lang.Object source,
java.lang.Object target,
ILinkRegimeEnums.IsReCreate isReCreate,
CandidateLinks candidates)
Return a reason why a connection cannot be made from source to target, or null if it can, and add the possible instantiations to candidates. |
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 |
cannotConnectTo(java.lang.Object target,
ILinkRegimeEnums.IsCreate isCreate)
Return a reason why a connection cannot finish at target or null if it can. |
IModelStateCommand |
createCreateCommand(IActiveEditDomain editDomain,
java.lang.Object coModel,
java.lang.Object context,
ILinkEnd sourceLinkEnd,
ILinkEnd targetLinkEnd)
|
LinkFigure |
createFigure(ILinkViewElement view)
Create the figure object to be drawn in the sheet editor. |
LM |
createModelObject(ILinkEnd sourceLinkEnd,
ILinkEnd targetLinkEnd)
|
ReconnectCommand |
createReconnectCommand(java.lang.Object newSource,
java.lang.Object link,
java.lang.Object newTarget)
|
LM |
getActualConnection(SM source,
TM target)
Return a connection between source and target if present in the model. |
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.util.List<org.eclipse.draw2d.Bendpoint> |
getBendpoints(java.lang.Object model)
|
java.util.List<?> |
getCoCoModelsFor(java.lang.Object coSource,
java.lang.Object coTarget)
|
ILinkRegimeCo0<?,?,?,?> |
getCoRegime()
Return the co-regime if it has one. |
LM |
getPotentialCoConnection(SM source,
TM target)
Return the co-model of a connection between source and target that could be present in the model. |
LM |
getPotentialConnection(SM source,
TM target)
Return the connection between source and target that could be present in the model. |
void |
getPotentialConnectionsBetween(ILinkEnd sourceLinkEnd,
ILinkEnd targetLinkEnd,
CandidateLinks candidates)
Compute a list of the co-models of the connections between source and target that are or could be present in the model. |
SM |
getSource(java.lang.Object model)
Return the source node of model if it is a link. |
SM |
getSource0(LM model)
|
java.util.List<? super LM> |
getSourceConnections(java.lang.Object source)
Deprecated. |
ILinkEnd |
getSourceLinkEnd(java.lang.Object model)
|
java.lang.Class<SM> |
getSourceModelClass()
Return the class of source nodes if appropriate |
org.eclipse.emf.ecore.EObject |
getSourceNode(java.lang.Object model)
Return the node at the source of this link. |
TM |
getTarget(java.lang.Object model)
Return the target node of model if it is a link. |
TM |
getTarget0(LM model)
|
java.util.List<? super LM> |
getTargetConnections(java.lang.Object target)
Deprecated. |
ILinkEnd |
getTargetLinkEnd(java.lang.Object model)
|
java.lang.Class<TM> |
getTargetModelClass()
Return the class of target nodes if appropriate |
org.eclipse.emf.ecore.EObject |
getTargetNode(java.lang.Object model)
Return the node at the target of this link. |
boolean |
isContainment()
Return true if the source contains the target. |
ILinkRegimeCo1<SM,LM,TM,P,?,?> |
isRegimeCo1()
Return this non-null regime if it is suitable for use with one or more levels of co-model. |
ILinkRegimeCo2<SM,LM,TM,P,?,?> |
isRegimeCo2()
Return this non-null regime if it is suitable for use with two or more levels of co-model. |
java.lang.Integer[] |
removeConnection(SM source,
LM link,
TM target)
|
ILinkRegimeCo0<?,?,?,?> |
resolveRegime(java.lang.Object source,
java.lang.Object target)
Return a regime appropriate to source and 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 interface org.eclipse.gmt.umlx.editor.regime.IRegimeCo0 |
---|
canCopy, canDelete, computeProblemMessage, createDeleteCommand, createModelObject, createOutline, createPropertySource, createView, getFacets, getModelClass, getParentModelClass, isLink, isNode, isRegimeCo0, refreshProblemMessage, setCoModel |
Methods inherited from interface org.eclipse.gmt.umlx.editor.regime.IRegime |
---|
createCreateChildLinkCommand, createCreateCommand, createLinkEnd, getBackElement, getCoModel, getCoModelClass, getCoModelParentClass, getIcon, getLabel, getNewNamePrefix, getSheetClass |
Methods inherited from interface org.eclipse.gmt.umlx.utils.IClassExtension |
---|
getBasicClass, toDebugString, toUserString |
Method Detail |
---|
void addConnection(int sourceIndex, ILinkEnd source, LM link, ILinkEnd target, int targetIndex)
boolean canBeReversed()
IErrorMessage cannotConnectBetween(java.lang.Object source, java.lang.Object target, ILinkRegimeEnums.IsReCreate isReCreate, CandidateLinks candidates)
source
- source of required connectiontarget
- target of required connectionisCreate
- IS_CREATE if check for creation rather than usecandidates
- list to receive candidate connections
IErrorMessage cannotConnectFrom(java.lang.Object source, ILinkRegimeEnums.IsCreate isCreate)
source
- source of required connectionisCreate
- true if check for creation rather than use
IErrorMessage cannotConnectTo(java.lang.Object target, ILinkRegimeEnums.IsCreate isCreate)
target
- target of required connectionisCreate
- true if check for creation rather than use
IModelStateCommand createCreateCommand(IActiveEditDomain editDomain, java.lang.Object coModel, java.lang.Object context, ILinkEnd sourceLinkEnd, ILinkEnd targetLinkEnd)
LinkFigure createFigure(ILinkViewElement view)
LM createModelObject(ILinkEnd sourceLinkEnd, ILinkEnd targetLinkEnd)
ReconnectCommand createReconnectCommand(java.lang.Object newSource, java.lang.Object link, java.lang.Object newTarget)
java.util.List<org.eclipse.draw2d.Bendpoint> getBendpoints(java.lang.Object model)
java.util.List<?> getCoCoModelsFor(java.lang.Object coSource, java.lang.Object coTarget)
ILinkRegimeCo0<?,?,?,?> getCoRegime()
IRegime
getCoRegime
in interface IRegime
getCoRegime
in interface IRegimeCo0<LM,P>
LM getActualConnection(SM source, TM target)
source
- source of required connectiontarget
- target of required connection
IErrorMessage getActualConnectionsBetween(ILinkEnd sourceLinkEnd, ILinkEnd targetLinkEnd, CandidateLinks candidates)
sourceLinkEnd
- source of required connectiontargetLinkEnd
- target of required connectioncandidates
- list to which current connections are added
LM getPotentialCoConnection(SM source, TM target)
source
- source of required connectiontarget
- target of required connection
LM getPotentialConnection(SM source, TM target)
source
- source of required connectiontarget
- target of required connection
void getPotentialConnectionsBetween(ILinkEnd sourceLinkEnd, ILinkEnd targetLinkEnd, CandidateLinks candidates)
sourceLinkEnd
- source of required connectiontargetLinkEnd
- target of required connectioncandidates
- list to which current and possible connections are addedSM getSource(java.lang.Object model)
IRegime
getSource
in interface IRegime
model
- model
SM getSource0(LM model)
@Deprecated java.util.List<? super LM> getSourceConnections(java.lang.Object source)
ILinkEnd getSourceLinkEnd(java.lang.Object model)
java.lang.Class<SM> getSourceModelClass()
IRegime
getSourceModelClass
in interface IRegime
org.eclipse.emf.ecore.EObject getSourceNode(java.lang.Object model)
model
- to traverse
TM getTarget(java.lang.Object model)
IRegime
getTarget
in interface IRegime
model
- model
TM getTarget0(LM model)
@Deprecated java.util.List<? super LM> getTargetConnections(java.lang.Object target)
ILinkEnd getTargetLinkEnd(java.lang.Object model)
java.lang.Class<TM> getTargetModelClass()
IRegime
getTargetModelClass
in interface IRegime
org.eclipse.emf.ecore.EObject getTargetNode(java.lang.Object model)
model
- to traverse
boolean isContainment()
ILinkRegimeCo1<SM,LM,TM,P,?,?> isRegimeCo1()
IRegime
isRegimeCo1
in interface IRegime
isRegimeCo1
in interface IRegimeCo0<LM,P>
ILinkRegimeCo2<SM,LM,TM,P,?,?> isRegimeCo2()
IRegime
isRegimeCo2
in interface IRegime
isRegimeCo2
in interface IRegimeCo0<LM,P>
java.lang.Integer[] removeConnection(SM source, LM link, TM target)
ILinkRegimeCo0<?,?,?,?> resolveRegime(java.lang.Object source, java.lang.Object target)
boolean sourceIsOptional()
boolean targetIsOptional()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |