I would like to test VSL expressions edition on a UML model with Papyrus
but I have not found how to do this.
To test I have used the release 0.8.1 of Papyrus on Indigo, installing
the extras bundles from http://download.eclipse.org/modeling/mdt/papyrus/extra/updates/nightly/indigo
containing the MARTE profile and the vsl editon plugins based on Xtext
(org.eclipse.papyrus.marte.vsl & org.eclipse.papyrus.marte.vsl.ui).
After creating a new Papyrus project of type UML, I have applied the
MARTE profile on the default uml::Package selecting all profiles
availables in MARTE, because I haven't any idea which profile to select,
I create a uml::Class with a uml::Property, I apply the Nfp stereotype
on the created Property and here I don't know how to edit vsl expression.
Have you some uml model examples with vsl expression on which I could
test vsl expression edition?
I think I figured it out (partly). You have to make sure that the 'embedded editor' is set to the VSL editor for the element that you want to edit. You can do this via the papyrus preferences.
However, and that's why I wrote 'partly' above, I succeeded in adding a VSL expression onto a Constraint element, but each time I click outside of the xtext embedded editor, all changes seem to get lost
I got the idea from reading h t t p : / / omgmarte.org/node/889 (sorry for the format but it seems I am not allowed to use links yet)
Too bad this isn't documented (or do we miss something?)