<XPAND> collaboration diagram [message #631367] |
Thu, 07 October 2010 05:47  |
Eclipse User |
|
|
|
Hi,
I have model which contains both interaction diagrams i.e Sequence and collaboration diagrams, but I want to define a Xpand template for only sequence diagram, which should not consider the collaboration diagram elements, as both have Interaction uml type. I dont know how can I define reject method for the collaboration diagram for example I have following expression to look into Interaction diagram ( sequence diagram):
<<EXPNAD testTemplate FOREACH eAllContents.typeSelect(Interaction).reject( ???)>>
Best regards,
M.K
|
|
|
|
|
|
Re: <XPAND> collaboration diagram [message #631389 is a reply to message #631383] |
Thu, 07 October 2010 07:34  |
Eclipse User |
|
|
|
Hi,
There is not much difference in elements in sequence and collaboration diagrams, almost same elements are used. only the messages are numbered. my problem is that in model I have the sequence and collaboration diagram for the same purpose ( I know it is not practically true, we should have either sequence or collaboration diagram) so there exists the duplication of elements, same elements is defined in sequence as well as in collaboration diagram.
I have noticed that all collaboration diagrams names are ending with CD, so for simplicity I redefine my template like this:
«EXPAND testTemplate FOREACH eAllContents.typeSelect(Interaction).reject(e|e.name.endsWit h( "CD"))»
Best regards,
|
|
|
Powered by
FUDForum. Page generated in 0.05161 seconds