What is Eclipse's Current Workspace?

Unless you start Eclipse with the “-showLocation” option there is no way to know what the current workspace location is?

Maybe someone knows the answer. Unless you start Eclipse with the “-showLocation” option there is no way to know what the current workspace location is. Another method is to use the Eclipse menu system: File -> Switch workspace -> Other. The workspace will be in the resulting dialog box.

There are also a few configuration settings available in the Eclipse -> About -> Show configuration:
  osgi.install.area=file:/C:/java/eclipse-4.2/
  osgi.instance.area=file:/C:/Users/jbetancourt/workspace-4.2/
  osgi.instance.area.default=file:/C:/Users/jbetancourt/workspace/

One reason to know is that when I go to create a new project, do I specify the workspace or is the current workspace the one I want? I don’t remember if the workspace is shown or specified on project creation, will have to check.

Maybe I’m missing some internal Eclipse reason for this (similar to that crazy bug when the copyright name was changed inside Java) and there is no way for Eclipse to know this. Still, seems lame.

Update
10 JUL 2012: Eclipse Juno: -showLocation doesn’t seem to be working, doesn’t show location in title bar of Eclipse.
17 JAN 2011: Found the answer, see below. I was on the right track. If I read the FAQ entry correctly, the current project is accessible (even though there can be many active projects), it is just not exposed in the Eclipse UI? But, that doesn’t really show the workspace, of course.

Further reading


Maria Pia de Vito with John Taylor & Ralph Towner – I Knew It was you

Leave a Reply

Your email address will not be published. Required fields are marked *