How to make a State Invariant cover several lifelines? [message #687862] |
Thu, 23 June 2011 08:14  |
Eclipse User |
|
|
|
Hi,
In sequence diagram, I need to customize the state invariant to make it cover all the lifelines, and not only be centred around one lifeline. Can you please help me with that, it's very urgent for my project.
Thanks a lot
Miriam
[Updated on: Fri, 24 June 2011 08:42] by Moderator
|
|
|
|
Re: How to make a State Invariant cover several lifelines? [message #689241 is a reply to message #687862] |
Mon, 27 June 2011 04:18   |
Eclipse User |
|
|
|
Hello,
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.
|
|
|
|
|
|
Re: How to make a State Invariant cover several lifelines? [message #699440 is a reply to message #690279] |
Thu, 21 July 2011 10:40  |
Eclipse User |
|
|
|
I installed the org.eclipse.papyrus.developper plug ins in my platform, some errors disappear, but still have this errors:
Problems while generating code
Exception (Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 132) while generating code
Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::diagram::commands::CreateNodeCommand, line 132
Exception (Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::navigator::NavigatorLabelProvider, line 306) while generating code
Boolean expected (was: org.eclipse.emf.ecore.impl.DynamicEObjectImpl)!:in xpt::navigator::NavigatorLabelProvider, line 306
can you help me with this?
thanks
Miriam
|
|
|
Powered by
FUDForum. Page generated in 0.27170 seconds