Message - lifeLine

Hello,
How can I obtain LifeLine, that is send or receive the Message from?

Best regards,
Anita

Hi Anita,

To get the “end” of a message in sequence diagram:

IMessage m;
m.getFromEnd().getModelElement() // this is IInteractionLifeLine or IInteractionActor. Actor in sequenceDiagram is not a LifeLine, but a InteractionActor)
m.getFromActivation() // this is IActivation 

Best regards,
Jick