Eclipse Zone is brought to you in partnership with:

Erich is Professor at Lucerne University of Applied Sciences and Arts and Distinguished Member of Technical Staff at Freescale Semiconductor. Erich has a MsCS degree and 18+ years of experience in the embedded software and tools world. He created many embedded cross C/C++ compilers and debuggers. Additionally he is researching in the domain of programming languages, real time and mechatronic systems. Erich is a DZone MVB and is not an employee of DZone and has posted 104 posts at DZone. You can read more from them at their website. View Full User Profile

Show Workspace Location in the Title Bar

08.11.2012
| 13255 views |
  • submit to reddit

A central concept of the Eclipse framework is the concept of a workspace. The workspace holds project and project references, among with other settings. I’m using multiple workspaces all the time, and in parallel. How to know which workspace I’m using? By default, the CodeWarrior Eclipse IDE main window comes up like this:

Default CodeWarrior Eclipse Main Frame

Default CodeWarrior Eclipse Main Frame

If I have multiple IDE’s open, it is hard to tell which workspace is used in which window,.

Showlocation Startup Option

Eclipse supports many startup options, a list can be found here. The solution is to use the -showlocation startup argument. As many other programs, eclipse supports different command line arguments. So I have added -showlocation in the shortcut used to launch Eclipse:

Showlocation Startup Parameter

Showlocation Startup Parameter

Now the workspace is visible in the Eclipse title bar:

Workspace Location in Frame Title

Workspace Location in Frame Title

Another solution is to add -showlocation to the eclipse.ini file located inside the eclipse folder:

cwide.ini with -showlocation

cwide.ini with -showlocation

Additionally it is possible to display a name while ‘tabbing’ through the windows. For this I specify a name under Window > Preferences > General > Workspace:

Workspace name shown in window title

Workspace name shown in window title

With this that name is shown while tabbing through the windows (shown below with Windows 7):

Workspace Title in Tabbing Preview

Workspace Title in Tabbing Preview

Another use of the is while hovering over the Window Taskbar (Windows 7):

Taskbar Preview with Workspace Name

Taskbar Preview with Workspace Name

Happy Showing :-)

Published at DZone with permission of Erich Styger, author and DZone MVB. (source)

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)