I noticed that after installing cdt, Eclipse always loads the default workspace. The workspace listed in the config.ini
in osgi.instance.area.default
Version: Ecliplse CIndigo Service Release 2
Go to Window -- Preferances - General -- Startup and Shutdown -Workspaces
Check box for Prompt for workspace on startup is there . Select it.
Then at start up eclipse will ask for workspace selection.
---- EDIT ----
On OSX the Eclipse(Juno) menu bar path is:
Eclipse - Preferences
In the preferences dialog box, I selected the tree node:
General - Startup and Shutdown - Workspaces
From that panel, there was a check box labeled
**Prompt for workspace on startup**
I checked it, then shut down eclipse and restarted it. It prompted me for a new workspace location.
Sometimes you need to pay attention to howw Eclipse is launched. I ever pinned Eclipse by rigk-click on the excutable and pinning it to taskbar. In this way, the Eclipse is launched to use settings under c:\User\public\public Documents\eclipse" which is not very desirable.
However, if you pin it by creating a short-cut, then it will launch to use settings in the folder of Eclipse installation. Then everything makes much more sense.
Starting eclipse with eclipse -clean did wonders for me.
I first tried the -clean option, but that didn't solve the problem.
Then I added the -data option with the correct path to the workspace.
That solved the problem for me.
It works for me if I tick the box 'Prompt for workspace on startup', which you find in Window > Preferences > General > Startup and Shutdown > Workspaces.
HTH