|
Re: Navigate from Lifeline to Message [message #478042 is a reply to message #478041] |
Wed, 03 December 2008 10:24 |
Eclipse User |
|
|
|
Originally posted by: florianwendland.freenet.de
Iris,
from Lifeline you can follow an association to InteractionFragment
(line.getCoveredBy()) in which all InteractionFragments are participated,
that are covers the Lifeline. There, you have to filter for
MessageOccurrenceSpecification (which is an InteractionFragment).
May be, the UML2 auxiliary method
public InteractionFragment getCoveredBy(String name, boolean ignoreCase,
EClass eClass)
does exactly this filtering for you (i'm not sure, i haven't used it before)
in this way:
line.getCoveredBy(null,true,UMLFactory.eINSTANCE.createMessa geOccurrenceSpecification().eClass());
Just try :)
Marc-Florian Wendland
"Iris Groher" <Iris.Groher@gmx.at> schrieb im Newsbeitrag
news:ca41f99fc5e7acb9254318fbcd7cd32c$1@www.eclipse.org...
> Hi all,
>
> How can I navigate from a lifeline defined in a sequence diagram to its
> receiving or sending messages?
>
> Thank you so much for your help!
>
> Iris.
>
|
|
|
Re: Navigate from Lifeline to Message [message #627259 is a reply to message #478041] |
Wed, 03 December 2008 10:24 |
Eclipse User |
|
|
|
Originally posted by: florianwendland.freenet.de
Iris,
from Lifeline you can follow an association to InteractionFragment
(line.getCoveredBy()) in which all InteractionFragments are participated,
that are covers the Lifeline. There, you have to filter for
MessageOccurrenceSpecification (which is an InteractionFragment).
May be, the UML2 auxiliary method
public InteractionFragment getCoveredBy(String name, boolean ignoreCase,
EClass eClass)
does exactly this filtering for you (i'm not sure, i haven't used it before)
in this way:
line.getCoveredBy(null,true,UMLFactory.eINSTANCE.createMessa geOccurrenceSpecification().eClass());
Just try :)
Marc-Florian Wendland
"Iris Groher" <Iris.Groher@gmx.at> schrieb im Newsbeitrag
news:ca41f99fc5e7acb9254318fbcd7cd32c$1@www.eclipse.org...
> Hi all,
>
> How can I navigate from a lifeline defined in a sequence diagram to its
> receiving or sending messages?
>
> Thank you so much for your help!
>
> Iris.
>
|
|
|
Powered by
FUDForum. Page generated in 0.02353 seconds