You can specify that during Eclipse’s startup phase Eclipse should provide a prompt to allow you to select from a list the project you want to work with. By default, this list is limited to showing the last 5 projects you used. Here, I will explain how to specify that the prompt should be shown and how to change the default setting which governs the number of projects in the list.
Showing the prompt.Once Eclipse is presented, select the following menu path:
Window -> Preferences…
The Preferences Wizard will be presented. From the list provided on the left select:
General, Startup and Shutdown.
Check the option labeled as “Prompt for workspace on startup”. Click the “Apply” then the “Ok” button.
Now, end Eclipse. This is important because if Eclipse is left running you will not be able to edit the file being discussed in the next step.
Changing the default number of projects in the project select list.Using Windows Explorer, locate the parent directory for your current Eclipse installation, then locate the “configuration” directory and finally the “.settings” directory. For example, my Eclipse instance (Version 3.1.0.) is installed in “Eclipse310”. So the path we want is
“C:\Eclipse310\eclipse\configuration\.settings”.
In the “.settings” directory there is a file named “org.eclipse.ui.ide.prefs”. Open it with your favorite text editor. Here are the contents:
#Fri Mar 31 07:34:04 CST 2006
RECENT_WORKSPACES_PROTOCOL=2
MAX_RECENT_WORKSPACES=10
SHOW_WORKSPACE_SELECTION_DIALOG=true
eclipse.preferences.version=1
RECENT_WORKSPACES=C\:\\Desk\\AppDevJava\\HibernateWorkspace,
C\:\\Desk\\AppDevJava\\DAOGenWorkspace,
C\:\\Desk\\AppDevJava\\TableTestWorkspace,
C\:\\Desk\\AppDevJava\\Development\\TableTests
The line we want to change is the one containing this “MAX_RECENT_WORKSPACES”.
As you can see, it has been changed from the default value of 5 to 10. Change the value for yours to oh, say 15 for example, and save.
Now, the next time you start Eclipse, you will be prompted to select from a list of 15 entries the project you wish to work with.