Bug 559525

Summary: Duplicate (non-unique) tab names when files with same name are opened simultaneously
Product: [Eclipse Project] Platform Reporter: Nobody - feel free to take it <nobody>
Component: UIAssignee: Platform-UI-Inbox <Platform-UI-Inbox>
Status: NEW --- QA Contact:
Severity: major    
Priority: P3    
Version: 4.14   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Nobody - feel free to take it CLA 2020-01-24 12:30:46 EST
When a normal file (for example a .php file) is opened, Eclipse creates a tab which uses the file's basename as name. This happens whether or not a tab with that name already exists.

I opened several versions of the "same" file over several days, one local version and one remote version. When working on the local version (which has similar content), I realized I had been involuntarily modifing the remote version. In retrospect, I must have clicked on the tab with the file's name, made changes for the local file, but ended up changing the remote file, which I had opened days earlier.

This kind of catastrophe-prone confusion must happen all the time with the current behavior, considering that the tabs (themselves) can be completely identical (same title, same font, same color, same everything). In order to avoid that, Eclipse would have to warn that there are several tabs using the same name, or to add a distinctive element to each conflicting tab, such as a longer path or an integer at the end. For example, if I open 2 versions of Alertage.php, one could be named "Alertage.php (1)" and the other "Alertage.php (2)".