Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 42476 - Switching workspaces
Summary: Switching workspaces
Status: RESOLVED DUPLICATE of bug 5509
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: Incubator (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 3.0 M9   Edit
Assignee: Jeff McAffer CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-03 15:56 EDT by Pascal Rapicault CLA
Modified: 2005-09-27 09:12 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pascal Rapicault CLA 2003-09-03 15:56:22 EDT
The core team is about to offer support to change the workspace dynamically.
The envisionned solution without the new runtime is to return a special exit 
code and do something special to restart. 

However, with the dynamicity and the new runtime we should able to do better.
Any thoughts are welcome.
Comment 1 Jeff McAffer CLA 2003-09-10 14:56:08 EDT
A couple of things to note/remember.  
- the workspace is not just for resources.  It is the data area for plugins (I 
don;t mean the metadata but rather plugins are free to discover the locaiton of 
the workspace and write whatever user files they want there.  Or not.
- not all scenarios require/want a workspace.  Various RCP scenarios explicitly 
don't want one because they have nothing to put there.
- changing the workspace is something for which plugins need to be prepared.  
Assuming the workspace contains resources, various plugins could have resource 
objects.  This are implicitly specific to a particular workspace.  When the 
workspace is changed, these handles must be invalidated.

Suggestions:
- add lifecycle (where?) to say that the workspace is/has changing/ed.  
Interested plugins would listen and do the right thing.
- plugins which use the workspace but do not listen are either legacy or 
misbehaving.  The only reasonable way to handle them is to restart them.
- plugins must explicitly declare that they are able to handle dynamic 
workspaces.  When the workspace is changed, dynamic enabled plugins are 
notified.  Non-enabled plugins are restarted.
Comment 2 Jeff McAffer CLA 2003-11-28 10:32:19 EST
Unclear if this effort is still going forward.  Will leave open pending 
discussions with the Core team
Comment 3 DJ Houghton CLA 2004-03-25 16:57:16 EST
Old summary: Changing workspace while running
Comment 4 DJ Houghton CLA 2004-03-25 16:59:25 EST

*** This bug has been marked as a duplicate of 5509 ***