Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Navigate from Lifeline to Message
Navigate from Lifeline to Message [message #478041] Wed, 03 December 2008 10:05 Go to next message
Iris Groher is currently offline Iris GroherFriend
Messages: 33
Registered: July 2009
Member
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 10: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 10: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: Thu Apr 25 22:43:14 GMT 2024

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

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

Back to the top