How can I associate a codemodel item with its language?

David Nolden david.nolden.kdevelop at art-master.de
Mon Aug 31 11:06:48 UTC 2009


Am Mittwoch 26 August 2009 01:30:02 schrieb Milian Wolff:
> I want to add per-language grouping to the class browser, but am stuck:
>
> It uses the CodeModel to get the items, but how do I decide to which
> language a given item is associated? Not even declarations / contexts seem
> to have any association with a language...
Top-contexts have an association to the language.

The problem is that you cannot access those from within the code-model right 
now I think.

So the simplest way would be using the file-extensions to do the filtering, as 
that is basically all that is known at that point.

Greetings, David





More information about the KDevelop-devel mailing list