Wednesday, November 27, 2013

Show custom workspace title for each workspace in eclipse


        Most of the developers may works on more than one eclipse at same time, one might be with new version of project and another with older version to compare. Or some of us may working with more than one module or project at the time in different workspace or different eclipse. When we want to switch the working eclipse window/eclipse from one to another we might get confuse and it may kills our time to find correct one. Some time when you copy the code from one window to another you may copy wrong and it will end up with critical issue.

To avoid this confusion we may do following settings in eclipse regards of workspace.
  1. Show the workspace location in title-bar
  2. Add custom title for each workspace, this is very useful because given title displays starts of title and easy when switch by alt+tabbing

Show the workspace location in title bar

This can be achieve by two ways.

1) Add “-showlocation"  (without the quotes) in the shortcut used to launch Eclipse



2) Add "-showlocation"  (without the quotes) eclipse.ini file located inside the eclipse folder



After you follow above step , title-bar will be like below.


Add custom title for each workspace

To get custom title you can specify a name under Window > Preferences > General > Workspace


After add the custom title , title-bar and alt+tablling will be like below