Bug 559525 - Duplicate (non-unique) tab names when files with same name are opened simultaneously
Summary: Duplicate (non-unique) tab names when files with same name are opened simulta...
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.14   Edit
Hardware: All All
: P3 major with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-24 12:30 EST by Nobody - feel free to take it CLA
Modified: 2020-01-24 12:30 EST (History)
0 users

See Also:


Attachments

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