Hi,
I have a problem with the uml model created by the sequence editor. I
would like to extract the order of EventOccurences along Lifelines, but
it seems to me that the ordering of the events is not reflected in the
model created by Topcased. The ordering in the model seems to depend on
when the user created the corresponding messages.
Can you confirm this issue? Do you plan to solve that or is the error on
my side?
I am using Version 1.0.0M4.1v200705251350 and the following code to
retrieve the ordering:
List<InteractionFragment> fragments = interactionDiagram.getFragments();
for(InteractionFragment currentFragment : fragments){
if (currentFragment instanceof MessageOccurrenceSpecification){
MessageOccurrenceSpecification messageEvent =
(MessageOccurrenceSpecification) currentFragment;
Message eventMessage = messageEvent.getMessage();
if (eventMessage != null){
System.out.println("Inspecting message " + eventMessage.getName());
}
}
}
I got the idea from:
http://dev.eclipse.org/newslists/news.eclipse.tools.uml2/msg04303.html
Thanks,
Joerg
_______________________________________________
Topcased-mm-users mailing list
[email protected]
http://lists.gforge.enseeiht.fr/mailman/listinfo/topcased-mm-users