Bug 131330 [IDE] Misleading error message that workspace is currently in use
3.2M5 I currently moved to a new PC which had different drive letters. I start up one Eclipse instance, and then in there run a second instance under the debugger. In the launch configuration I still had the old path name to my workspace, like "D:\workspace". But that's not right anymore (everything is on C:). So when I tried to launch the second instance (Run > Debug...) I got an error dialog, but the message was misleading. It said: "Workspace Cannot be Locked Could not launch the product because the associated workspace is currently in use." It's not in use, it's completely missing. Also it would be nice for it to tell me what workspace directory it was complaining about since I have several.
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/IDEApplication.java
MessageDialog
                        .openError(
                                shell,
                                IDEWorkbenchMessages.IDEApplication_workspaceCannotBeSetTitle,
                                IDEWorkbenchMessages.IDEApplication_workspaceCannotBeSetMessage);
                return false;
            }
            
            
            MessageDialog.openError(shell, IDEWorkbenchMessages.IDEApplication_workspaceInUseTitle, 
                    IDEWorkbenchMessages.IDEApplication_workspaceInUseMessage);
        }
    }
    /**
     * Open a workspace selection dialog on the argument shell, populating the
     * argument data with the user's selection. Perform first level validation
     * on the selection by comparing the version information. This method does
     * not examine the runtime state (e.g., is the workspace already locked?).
     * 
     * @param shell
     * @param launchData
     * @param force
     *            setting to true makes the dialog open regardless of the
     *            showDialog value
     * @return An URL storing the selected workspace or null if the user has
     *         canceled the launch operation.
     */
    private URL promptForWorkspace(Shell shell, ChooseWorkspaceData launchData,
            boolean force) {
        URL url = null;