Changing the Default Workspace in WSAD on Windows
By: Troy Campano
(2005-01-27)
Filed under Articles > Programming > Java

Introduction
This article will describe how to reset IBM's WSAD (Websphere Studio Application Developer) software to prompt you for the workspace once you've chosen a default one.

A Little Background
WSAD is IBM's IDE (Intergraded Development Environment) for developing Java/J2EE applications based on the Eclipse platform (http://www.eclipse.org). When you first start up WSAD it will ask you to define where you would like your workspace to be created like in the image below:

The problem arises when you click that 'Use this workspace as the default and do not show this dialog box again' checkbox. Once you do that you will not be prompted to change your workspace again. To make it worse, as far as I know, there is no option to change workspaces in the IDE under preferences either...or at least with version 5.1.2.

The Workspace Workaround: Option 1
There's a couple ways to solve this problem so that you can change workspaces. Basically you can either pass the '-setworkspace' option to the 'wsappdev.exe' executable or you can pass the '-data' option with the workspace you want to start up.

First, we'll use the '-setworkspace' option. You'll want to find out where your wsappdev.exe executable is located. On my system mine is located here: C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\wsappdev.exe. Once you find the executable, right click it and go to 'Create Shortcut'. Once you've created the shortcut right click the shortcut and go to properties. You'll want to add the '"-setworkspace option to the end so it looks like this in the target textbox:
  "C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\wsappdev.exe" -setworkspace

It should look somewhat similar to this now:

Now whenever you use this shortcut to launch WSAD it will prompt you again for which workspace to use.



The Workspace Workaround: Option 2
The second option is when you're creating a shortcut, instead of using the -setworkspace option you can use -data option and tell it which workspace to launch. So you can create multiple shortcuts, one for each workspace and launch each workspace with its own icon. Basically you want to do the same as in option one but use the -data option like so:
"C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\wsappdev.exe" -data "c:\MyWorkspace1"
...where
c:\TroySys\WsadWorkspaces\TigerSleep is the workspace you want to open.
Now you can create separate shortcuts for one of your workspaces and launch them each with their own icon.

As always, if you have trouble, please post your comments on this web page.

~ Troy Campano ~


Reader's Comments - Add Comment
If you would like to re-enable workspace selection on WSAD startup: 1. Ensure WSAD is closed. 2. In Registry Editor (regedit), look for HKEY_CURRENT_USER -> Software -> IBM -> WebSphere Studio -> Workspace. 3. Edit the entry wsappdev
-- Posted By: Roger Kong on Monday, November 28th, 2005



Find some of this content useful? Please consider a donation. Any donation is appreciated.