Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 315821 - file types don't show up in file associations preferences
Summary: file types don't show up in file associations preferences
Status: RESOLVED INVALID
Alias: None
Product: CDT
Classification: Tools
Component: cdt-core (show other bugs)
Version: 7.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Doug Schaefer CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-04 15:26 EDT by Peter Wang CLA
Modified: 2010-06-11 02:33 EDT (History)
2 users (show)

See Also:


Attachments
CDT 7 vs CDT 5 (105.93 KB, image/jpeg)
2010-06-10 14:17 EDT, Peter Wang CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.