|Re: How to make a State Invariant cover several lifelines? [message #689241 is a reply to message #687862]
||Mon, 27 June 2011 08:18
Registered: December 2009
The short answer is : As is, you can't. The StateInvariant has a 'covered' relationship which relates it to a single Lifeline. Moreover, the figure is defined as a child figure of the Lifeline figure. Hence you can not draw it in several lifelines (contrary to CombinedFragments figures which are graphically located at the same level as Lifelines figures).
As this answer won't satisfy your needs, you can still develop your own figure.
But this will be a complicated task which requires the complete knowledge of a Papyrus developper.
If your need really is urgent, I doubt you will be able to make these modifications in time, unless you have a GMF-advanced developper working for you.
If you want to give it a try, here are a few instructions. Though, I will not have time to teach you everything I know.
For this purpose, I suggest you first create a profile with a stereotype to apply on your StateInvariant, since you clearly change its semantic.
Then, you can create a new configuration (taking only the same figure as existing one), as if you were creating a whole new node. Have a look at the GMF tutorial (http://wiki.eclipse.org/Graphical_Modeling_Framework/Tutorial) which explains the basics about how to do so if you do not know how. Also take a look at http://wiki.eclipse.org/Papyrus_Developer_Guide/Papyrus_diagram_generation for Papyrus specific aspects.
You should perform these modifications in a separate plugin, as these will remain independant of the sequence diagram implementation.
You should download from the SVN at least :
- developper documents, to see Papyrus specific aspects
- Sequence diagram project. Of course, it contains the current figure, which you can reuse, though you will have to create your own edit parts.
- Block diagram project. This will give you an example of how to extend a diagram with stereotypes, as it is based on class diagram.
Powered by FUDForum
. Page generated in 0.04643 seconds