Bug 37681 - [plan item] Improve support for opening workspaces
Summary: [plan item] Improve support for opening workspaces
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 3.0 M9   Edit
Assignee: Andrew Eidsness CLA
QA Contact:
URL:
Whiteboard:
Keywords: plan
: 2090 5509 37744 39218 (view as bug list)
Depends on: 32147
Blocks:
  Show dependency tree
 
Reported: 2003-05-15 11:02 EDT by Jim des Rivieres CLA
Modified: 2004-05-12 16:30 EDT (History)
16 users (show)

See Also:


Attachments
Sample code for switching workspaces (3.10 KB, text/plain)
2004-03-26 11:04 EST, Jeff McAffer CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jim des Rivieres CLA 2003-05-15 11:02:21 EDT
Improve support for opening workspaces. Many users use multiple workspaces as 
a way to keep their different projects or work items separate. Currently, this 
requires launching Eclipse multiple times with different command line 
arguments, which is not particularly convenient for users. Moreover, when the 
command line argument is not specified, the workspace location defaults to a 
directory inside where the code for Eclipse is installed. Eclipse should 
improve how workspaces get opened, use a user-specific default workspace 
location more suitable for shared multi-user Eclipse installs, and facilitate 
switching between workspaces. [Platform Core, Platform UI] [Themes: User 
experience]
Comment 1 Oyvind Harboe CLA 2003-05-19 03:06:06 EDT
I saw this bugreport and wanted to add a comment:

This could be used to address the problem of how to work smoothly with multiple 
branches of a project.

Øyvind
Comment 2 John Arthorne CLA 2003-05-21 14:55:27 EDT
*** Bug 37744 has been marked as a duplicate of this bug. ***
Comment 3 Jan Schulz CLA 2003-05-22 18:33:52 EDT
The debian eclipse package uses a configuration file, which is then sourced by a 
starter script, which will start eclipse with the appropiate commandlines, to 
make this possible... It's not perfect, but at least it will let you use a menu 
based start without changing the commandline behind this menu entry.
Comment 4 John Arthorne CLA 2003-06-02 17:18:07 EDT
See also comments in related bug report: bug 37471.
Comment 5 John Arthorne CLA 2003-06-23 11:45:13 EDT
*** Bug 39218 has been marked as a duplicate of this bug. ***
Comment 6 Robert Herschke CLA 2003-10-20 03:53:08 EDT
What about introducing a "Client"-Managing like in other Programms in Eclipse???

Or just an overall-node in the Navigator, containing all desired project and 
let do several preference-settings (like different jdk-using) for all sub-
projects of this node?

Comment 7 John-Mason P. Shackelford CLA 2004-01-17 09:48:42 EST
See also bug 5509.
Comment 8 Andrew Eidsness CLA 2004-02-17 10:19:53 EST
See bug 32147 for the UI enhancement to prompt for the workspace on startup.
Comment 9 Kevin Haaland CLA 2004-03-25 17:50:20 EST
*** Bug 2090 has been marked as a duplicate of this bug. ***
Comment 10 Jeff McAffer CLA 2004-03-25 17:50:42 EST
*** Bug 5509 has been marked as a duplicate of this bug. ***
Comment 11 Jeff McAffer CLA 2004-03-25 17:52:36 EST
Taking ownership of this.  We have the infrastructure in place to do this but 
need to test and then put a UI on top.  I will test and prototype the UI and 
supply the code to the UI team for integration
Comment 12 Jeff McAffer CLA 2004-03-26 11:04:18 EST
Created attachment 8911 [details]
Sample code for switching workspaces

The code in HEAD now supports the switching behaviour.	Attached is an example
of how to do the switching.  There is one issue in the given code. 
Workbench.restart() automatically returns exitcode 23 from the application.  In
the case of restarting with a new command line (ie., switching workspaces) you
need to return code 24 after filling in the eclipse.exitdata System property as
described in the code.

The buildCommandLine method in the example looks a little complicated but is
really just doing string math.	The runtime team is reluctant to add API
specificially for switching workspaces as the mechanism is in fact much more
general than this and the UI (and others) may well have a need to change other
aspects of the command line used for restarting.
Comment 13 Jeff McAffer CLA 2004-03-26 11:06:10 EST
Moving to UI for addition of a File-> Open Workspace... action.
Comment 14 Nick Edgar CLA 2004-03-26 13:28:13 EST
We should add a File > Open Workspace... option that brings up that's the same
as the initial prompt (though without the "don't show me this again" checkbox).
This item can be added in WorkbenchActionBuilder.createFileMenu.
Comment 15 Andrew Eidsness CLA 2004-05-12 15:55:47 EDT
I've added the option as described in comment 14.

It would be nice to add support for this in the workbench api, something along 
the lines of the existing Workbench.restart.  However, since we're past the 
api-freeze, all this code was added to internal parts of ide.  Bug 60955 was 
opened to track the api addition.
Comment 16 Andrew Eidsness CLA 2004-05-12 16:30:12 EDT
The reference in comment 15 should have been to bug 61809.