Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Show the name of the containing folder in the Eclipse tab of a file

I have the same set of files in N folders, one of them, say, blank.xhtml. The files contain somewhat similar information and it is becoming overwhelming to figure out which file comes from which folder every time I switch between the tabs. When I open one of them to edit and happen to open a file with the same name from another folder I get confused and more often than not end up editing the wrong file: nullifying my hard work. So I am wondering if there is a way to show the name of a containing folder in the tab like this G-06/blank.xhtml or G-07/blank.xhtml. I will be very very thankful to anybody who has pointers to how I can make this happen.

like image 450
Rakhilya Lála Ibildayeva Avatar asked Jan 26 '13 09:01

Rakhilya Lála Ibildayeva


2 Answers

As an addition to the Maroun's answer there is an alternative solution.
It's not exactly what you want (full name in the tab's title), but may be useful sometimes.

In the "Project Explore" view (the same goes to "Navigator" view) click the "Link with Editor" button. That way, whenever you choose some file opened in the editor, it will be automatically selected/highlighted (see the picture) in the "Project Explorer" view.

Here is the picture: enter image description here

Maybe this will be useful to you too.

like image 134
informatik01 Avatar answered Oct 04 '22 18:10

informatik01


If you hover the mouse over the tab containing the file name then a popup appears showing the full path. Not exactly what you wanted, but it should help. (This with Eclipse Neon.3 Release 4.6.3 on a Mac).

like image 29
kbro Avatar answered Oct 04 '22 20:10

kbro