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

Bug 179127

Summary: Display the full file path in the status line area when a C/C++ editor is open
Product: [Tools] CDT Reporter: Warren Paul <warren.paul>
Component: cdt-coreAssignee: Project Inbox <cdt-core-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: enhancement    
Priority: P3 CC: aleherb+eclipse
Version: 4.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
patch file none

Description Warren Paul CLA 2007-03-23 16:51:07 EDT
Currently the CEditor only displays annotations in the status area (bottom left of the workspace).  So if you put the cursor on a problem in the editor it will show the error description.  There's a bug BTW that changing to another error doesn't clear the status.

We've had users ask to always display the full file system path of the open editor in the status area.  The tab only shows the filename, and tab hover gives you the workspace relative path.  But there's no easy way to make out the full file path.  If it were in the status area though, a quick glance is all it would take to know which file you're editing.  Obviously this is not that important unless you have multiple files of the same name, which apparently lots of our users have.  :)

Anyway, the attached patch adds this functionality (and fixes the bug mentioned above).
Comment 1 Warren Paul CLA 2007-03-23 16:53:13 EDT
Created attachment 61882 [details]
patch file
Comment 2 Doug Schaefer CLA 2007-03-23 17:06:04 EDT
Hmm, that would make us inconsistant with all other editors in Eclipse-land. I wonder if users would get more confused when some files have it and some don't.

I wonder if it would be better to have the full path in the tool tip on the editor tab. I don't find workspace relative paths very useful as a user. If I want to find out where a file is in the workspace I use Link With Editor in the navigator view. But then that again will be inconsistant.

Dunno, I guess I don't have a strong opinion on this, just worried about causing more confusion than solving.
Comment 3 Warren Paul CLA 2007-03-26 12:30:26 EDT
Well, I doubt it would cause much confusion as it's just "extra" info being displayed when normally there is nothing.  But I agree that it would be inconsistent.  I think all editors should do this, so I'll log this as an enhancement request against the platform.  Maybe the code should be in EditorPart by default.

Actually, I found https://bugs.eclipse.org/bugs/show_bug.cgi?id=20669 which is the request for platform support for this.  I'll add my $.02 to that entry.