Hi Peter,
For now, the default language framework always returns the same value, for any kind of element: cpp. This work is awaiting in a pending gerrit, that was stopped
because of the various refactoring / build issues of the tool.
Next work to be integrated is the ability for a given model (sub-part of?) to give a specific default language, as ‘none’, or ‘Cpp’, or any language later when
we will have more languages supported. This was expected to be handled in a specific annotation (profile?), to track the information for a specific model element.
The work was initiated in the review
https://git.eclipse.org/r/#/c/67560/, but the way to identify the current default language has not been done yet.
Regards,
Rémi
-------------------------------------------------------
Rémi SCHNEKENBURGER
+33 (0)1 69 08 48 48
CEA Saclay Nano-INNOV
Institut CARNOT CEA LIST
www.eclipse.org/papyrus
De : papyrus-rt-dev-bounces@xxxxxxxxxxx [mailto:papyrus-rt-dev-bounces@xxxxxxxxxxx]
De la part de Peter Cigéhn
Envoyé : vendredi 20 mai 2016 10:56
À : papyrus-rt developer discussions <papyrus-rt-dev@xxxxxxxxxxx>
Objet : [papyrus-rt-dev] Default language framework
When I tested https://bugs.eclipse.org/bugs/show_bug.cgi?id=479635, it worked in a rather different way then what I had expected,
i.e. instead of simply creating a type-less parameter, the same kind of popup as when creating ports and capsule parts appeared, asking for an existing type or a new type.
Anyway, after letting this "sink in a bit", this approach is probably a good approach (since we don't have multiple parameters supported in the same way in the legacy tooling, I don't have anything
to compare with).
But if we should keep this popup (instead of simply creating a type-less parameter as I had envisioned from the beginning), then it should also include both the '*' case (leaving the parameter
untyped), and the primitive types from the primitive type library (in the corresponding way as we have said that the system protocols for example shall be included in the corresponding popup when creating a port).
But then I realized that I have never understood how and in what way that I activate a specific default language for a model. If I want to start testing functionality that are supposed to fetch
system protocols, primitive types and so on, registered via the default language framework, how do I do that? How is the default language framework activated and how is the default language for a model set?