How to get Used Languages from a model?
Hi @ all,
i am working on different languages with several extension points. To check wether a extension is applicable, i want to know if a language is used or not.
So i try to use:
model.module.usedLanguages
But the set of usedLanguages is always empty (same for model.module.usedDevkits). Why can't i find the used languages programatically?
The module properties are always correct and all used languages are shown in the dialog. Any ideas or should i use another way?
Thanks for your help.
Please sign in to leave a comment.
model/.getModule().getUsedLanguages()
Hi Sascha,
thank you for your answer, it was very helpful for me.
I've found a second approach to check whether a language is used directly by a model:
(model as SModelInternal).importedLanguageIds()