Hi Enrico,
in fact OCL is the only implemented language for syntax recognition and contextual auto completion
but you can click on the Combo box, replacing OCL by C (or C++), typing your code in the text, and clicking on ADD.
When you select again your operation the combo contains now the field C (or C++)

Regards

Tristan FAURE

PS : the syntax recognition and auto completion can be dynamically added using an eclipse extension point. If you have time you can contribute to manage it ;)

[email protected] a écrit :

Hi all,

 

I need to add some user code (specifically C++ code) to a topcased model, but I don’t understand very well the correct way to do such a thing.

So far I found a “Behavior” tab (that is a sub tab of “Advanced”) into Operation’s properties with two fields: “Language” and “Body”. It appears to be the right way to do what I need, but the problem is that the only allowed language is OCL.

Is this the right way to add some user code to the model or am I missing something? If this is the right way, how can I specify C++ code?

 

 

Thanks

Enrico

 

 



Enrico Randazzo
Operations - Ingegneria di Sviluppo - Sviluppo Software

Via Tiburtina Valeria Km 13,700 - 00131 Roma
Tel: +3906 4154 748 - Fax: +3906 4154 481
[email protected]

 


_______________________________________________ Topcased-users mailing list [email protected] http://lists.gforge.enseeiht.fr/mailman/listinfo/topcased-users


<<attachment: tristan_faure.vcf>>

_______________________________________________
Topcased-users mailing list
[email protected]
http://lists.gforge.enseeiht.fr/mailman/listinfo/topcased-users

Reply via email to