Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 315821

Summary: file types don't show up in file associations preferences
Product: [Tools] CDT Reporter: Peter Wang <peterwan>
Component: cdt-coreAssignee: Project Inbox <cdt-core-inbox>
Status: RESOLVED INVALID QA Contact: Doug Schaefer <cdtdoug>
Severity: normal    
Priority: P3 CC: aleherb+eclipse, jamesblackburn+eclipse
Version: 7.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
CDT 7 vs CDT 5 none

Description Peter Wang CLA 2010-06-04 15:26:53 EDT
While in the C/C++ perspective, go to Window -> Preferences -> General -> Editors -> File Associations. All C/C++ related file types are missing
Comment 1 Anton Leherbauer CLA 2010-06-08 04:18:08 EDT
The File Associations page only deals with Editor - File Name/Extension relationships and does not define "File Types".  If you look at the Content Types page you will find all C/C++ file types.
Comment 2 Peter Wang CLA 2010-06-10 14:16:09 EDT
Right, the C/C++ File Name/Extension relationships are missing in CDT 7, how is the user supposed to specify which editor opens a *.c type of file? Please see the attached screenshot for a side by side difference between CDT 7 and CDT 5.
Comment 3 Peter Wang CLA 2010-06-10 14:17:16 EDT
Created attachment 171659 [details]
CDT 7 vs CDT 5
Comment 4 Peter Wang CLA 2010-06-10 14:18:20 EDT
(Both preference pages were opened while in the C/C++ perspective).
Comment 5 James Blackburn CLA 2010-06-10 14:28:35 EDT
And from what Toni said the editor is associated with certain extensions and no longer defines file types:
Window > Preferences > General > Content Types

The user isn't supposed to specify which editor opens a C file, the CDT editor opens the C file, just like the JDT editor opens a java file.  If you look at your screenshot, you don't see *.java either even though you have JDT / PDE installed...
Comment 6 Markus Schorn CLA 2010-06-11 02:33:39 EDT
(In reply to comment #3)
> Created an attachment (id=171659) [details]
> CDT 7 vs CDT 5

Just follow the link on the top of the preference page where it says:
   See 'Content Types' for content-type based file associations.