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
}
        try {
            
            
            
            Properties props = new Properties();
            FileInputStream is = new FileInputStream(versionFile);
            try {
                props.load(is);
            } finally {
                is.close();
            }
            return props.getProperty(WORKSPACE_VERSION_KEY);
        } catch (IOException e) {
            IDEWorkbenchPlugin.log("Could not read version file", new Status( 
                    IStatus.ERROR, IDEWorkbenchPlugin.IDE_WORKBENCH,
                    IStatus.ERROR,
                    e.getMessage() == null ? "" : e.getMessage(),  
                    e));
            return null;
        }
    }
    /**
     * Write the version of the metadata into a known file overwriting any
     * existing file contents. Writing the version file isn't really crucial,
     * so the function is silent about failure
     */
    private static void writeWorkspaceVersion() {
        Location instanceLoc = Platform.getInstanceLocation();
        if (instanceLoc == null || instanceLoc.isReadOnly()) {