Skip to main content



      Home
Home » Modeling » UML2 » Navigate from Lifeline to Message
Navigate from Lifeline to Message [message #478041] Wed, 03 December 2008 05:05 Go to next message
Eclipse UserFriend
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 #478042 is a reply to message #478041] Wed, 03 December 2008 05:24 Go to previous message
Eclipse UserFriend
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 05:24 Go to previous message
Eclipse UserFriend
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.
>
Previous Topic:Navigate from Lifeline to Message
Next Topic:Instances for StateMachine::Trigger
Goto Forum:
  


Current Time: Tue Jul 15 15:22:11 EDT 2025

Powered by FUDForum. Page generated in 0.02921 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top