Bug 357018 - "Languages" column in Paths&Symbols tab shows Content Type instead of language name
Summary: "Languages" column in Paths&Symbols tab shows Content Type instead of languag...
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-build (show other bugs)
Version: 8.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 8.1.0   Edit
Assignee: Andrew Gvozdev CLA
QA Contact: Andrew Gvozdev CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 275779
  Show dependency tree
 
Reported: 2011-09-07 17:59 EDT by Andrew Gvozdev CLA
Modified: 2012-02-23 11:33 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Gvozdev CLA 2011-09-07 17:59:32 EDT
For a toolchain not defining explicitly language id in input type (such as XLC toolchain), Paths&Symbols back to content type name, so "C Source File" and "C++ Source File" are displayed. But a bigger issue is that language cannot be reliable determined as ICLanguageSetting.getLanguage() returns null and the content type name comes from ICLanguageSetting.getName() where content type is not the only source the name can be populated from.
Comment 1 Andrew Gvozdev CLA 2011-09-07 18:06:33 EDT
The issue can be fixed in InputType where language ID can be determined from content type after the other currently used methods failed.
Comment 2 Andrew Gvozdev CLA 2011-09-07 18:13:05 EDT
The fix committed on master.
Comment 3 CDT Genie CLA 2011-09-07 18:23:02 EDT
*** cdt git genie on behalf of Andrew Gvozdev ***

    bug 357018: Languages column in Paths&Symbols tab shows Content Type
    instead of language name

[*] http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=881fc3304be11d65c5a16319a4aa1b3b9e3e2795