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

Bug 321465

Summary: Icons for headers in editor tabs are wrong at startup
Product: [Tools] CDT Reporter: Marc-André Laperle <malaperle>
Component: cdt-editorAssignee: Project Inbox <cdt-editor-inbox>
Status: RESOLVED WONTFIX QA Contact: Anton Leherbauer <aleherb+eclipse>
Severity: minor    
Priority: P3    
Version: 6.0.2   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Screenshot none

Description Marc-André Laperle CLA 2010-08-01 17:23:06 EDT
Created attachment 175673 [details]
Screenshot

Tested with CDT 6.0.2, 7.0 and HEAD

Steps to reproduce:
1. Open a header file.
2. Open a source file in the same editor, keep this in focus.
3. Restart Eclipse
4. Notice the header file has the ".c" icon
Comment 1 Anton Leherbauer CLA 2010-08-12 03:27:35 EDT
The reason is that as long as the editor for the file is not realized (instantiated), the icon shown in the tab is the icon of the associated editor.
As soon as you click on it, the icon will change.
We would need two different editors to fix the icon in this case, but that's overkill, I think.
We could also change the icon of the editor to reflect both .c and .h in the icon (if that's possible), but this might create yet more confusion.
Comment 2 Marc-André Laperle CLA 2013-07-18 01:43:20 EDT
I think it's unlikely that we'll apply any of those solutions as the bug is very minor. Marking as WONTFIX.