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.

0
2 comments

model/.getModule().getUsedLanguages()

1

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()

 

 

0

Please sign in to leave a comment.