Open any Windows directory as an Eclipse workspace
I have many versions of Eclipse and Eclipse based IDEs installed and for each of these I like to be able to open my workspaces from the Windows explorer rather than from the Eclipse workspace launcher dialog. To acheive this I add an entry to the registry to add an entry when you right-click a directory.
Here’s the .reg file that I’d use to install such an entry. Caveat: Editing the registry can be dangerous and you do it at your own risk. You should validate that this code will not corrupt your system before executing.
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\Open_As_Eclipse_321]
@=”Open As Eclipse 3.2.1″
[HKEY_CLASSES_ROOT\Directory\shell\Open_As_Eclipse_321\command]
@=”\”D:\\eclipse\\eclipse3.2.1\\eclipse.exe\” -showlocation -data \”%1\”"
You can also add an alternative start up for those products that are more likely to need a workspace clean by having another registry entry which executes the Eclipse product with the -clean option.