Hello
Alexandre,
Ø
I can get the
NamedElement
The « NamedElement » is your
CallBehaviorAction, right ? If so, you can call:
NamedElement
selectedNamedElement = …;
if
(selectedNamedElement
instanceof
CallBehaviorAction){
Behavior calledBehavior =
((CallBehaviorAction)selectedNamedElement).getBehavior();
if
(calledBehavior
instanceof
Activity){
Activity
calledActivity = (Activity)calledBehavior;
//...
}
}
If you also need to manipulate SysML
stereotypes, have a look at Element#getAppliedStereotype()
and Element#getStereotypeApplication(Stereotype)
Regards,
Camille
__________________________
Camille
Letavernier
+33
(0)1 69 08 00 59 -
camille.letavernier@xxxxxx
CEA
LIST - Laboratoire d'Ingénierie dirigée par les modèles
pour les Systèmes Embarqués (LISE)
Papyrus :
http://www.eclipse.org/papyrus
Hi,
I need to extract information from an activity diagram with
the help of an eclipse plugin.
This activity diagram is mainly composed of call-behaviour
actions. Each call-behaviour action points to an activity
which have some inputs and some outputs.
By clicking on that item, I can get the NamedElement under
the eclipse plugin. What I need is to get the activity which
is pointed by the call behaviour action and on that
activity, get the arguments name and the result name to
process something.
I can see them under debug (in "behaviour" attribute) but I
do not know how to get them by calling public functions. Is
it related to EMF? If yes, how can we question the emf to
get the sysml model of the selected element ?
Thanks for your help.
--
Alexandre HERISSE
Xcos developer
-----------------------------------------------------------
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.70
http://www.scilab-enterprises.com