Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 104203 - [Wizards] Allow multiple projects to be shared
Summary: [Wizards] Allow multiple projects to be shared
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Team (show other bugs)
Version: 3.1   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 3.4 M1   Edit
Assignee: Michael Valenta CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 126339 136148 180017 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-07-18 05:56 EDT by Alex Blewitt CLA
Modified: 2007-08-09 09:00 EDT (History)
10 users (show)

See Also:


Attachments
Adds dumb outer loop for sharing multiple projects in sequence (5.79 KB, patch)
2007-03-24 15:18 EDT, Matt McCutchen CLA
no flags Details | Diff
Adds dumb outer loop; updated to apply cleanly to HEAD 5/3/2007 (5.78 KB, patch)
2007-05-03 21:37 EDT, Matt McCutchen CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Blewitt CLA 2005-07-18 05:56:40 EDT
Eclipse currently only allows one project at a time to be shared (with the
Project -> Share Project menu). If uploading a bunch of projects into the same
repository, it would be nice to allow multiple projects to be shared at the same
time without having to repeat the same wizard for each.
Comment 1 Michael Valenta CLA 2005-07-19 10:38:09 EDT
I agree tha this would be usefull. However, there are several complications 
that make this difficult:

1) It would require new API that would need to be implemented by all 
repository providers. A backwards compatibility story would need to be in 
place for those providers that only provide single project sharing (i.e. the 
same providers would need to appear in both the single and multi project share 
case or the user would be confused).

2) Multi-project sharing is fairly straight forward but can get complicated 
when either some of the projects already contain repository meta-information 
or when some of the projects being shared collide with projects that already 
exist in the repository.

Point 2 is not that big an issue for CVS but it may be for other repository 
providers. Point 1 the biggest road block for me. The only backwards 
compatibility story I can come up with is to run the single project sharing 
wizard for each project being shared. This seems a bit clunky.
Comment 2 Alex Blewitt CLA 2005-07-22 05:49:21 EDT
I agree that you'd need to have a backwards compatibility story in place to
support those that don't support it. But your comment #1 (point 1) of having the
backwards story being 'clunky' at having to re-run the same wizard multiple
times is no different than at present; in fact, at the moment it's even worse
because you must select each project individually and select 'Team -> Share
Project' to bring the wizard up each time. At least having the ability to select
projects and issue the command once is an improvement, even if it has to fire
the single-project-wizard repeatedly.

As for point 2 (or indeed, any pre-selected project that is already shared/has
metadata), if the selected projects are already shared then a warning/question
dialog could be proposed "Project X is already shared under Y; do you want to
leave it shared/share it with a different repository". Ideally, this might
happen after the repository/method has already been chosen, and filter out
projects that are already shared under the same repository.
Comment 3 Michael Valenta CLA 2006-02-14 08:43:44 EST
*** Bug 126339 has been marked as a duplicate of this bug. ***
Comment 4 Sytze van Koningsveld CLA 2006-02-14 08:57:35 EST
Perhaps a Project Set can also be
constructed on the fly when sharing a group of projects ?
Comment 5 Ed Willink CLA 2006-04-08 07:36:29 EDT
From a practical point of view:

I am having to recreate a Workspace after an Eclipse upgrade.

Why do I have to invoke the share project command 20 times?

I'm not convinced by the API problem. Surely it can be an outer loop
that is independent of the underlying CM system.
Comment 6 Michael Scharf CLA 2006-08-03 08:47:30 EDT
comment #1 2) if the project already contains repository information, the multi-project share wizard could simply refuse to work.

But having to run the wizards 100 time (I'm about to check in 100 projects) is *very* annoying. I think it's worth for me to learn the CVS command line and check the projects in using the command line. I was hoping I could avoid this....
Comment 7 Michael Valenta CLA 2006-12-11 11:30:19 EST
We don't have the manpower to address this in 3.3. The case has been improved somewhat since CVS now support auto-sharing of projects that contain CVS meta-data so this is only an issue when you have multiple new projects that need to be shared.
Comment 8 Matt McCutchen CLA 2007-03-24 15:18:38 EDT
Created attachment 61905 [details]
Adds dumb outer loop for sharing multiple projects in sequence

The auto-sharing on import isn't working for me.  My workspace containing Eclipse from HEAD got corrupted, so I deleted the .metadata, restarted Eclipse, and imported Existing Projects Into Workspace; they didn't get auto-shared.  Should I enter a bug?

The attached patch takes a first stab by letting the user invoke Share Project on multiple projects and launching the wizard once for each project in sequence.

In my case, I reshared each of my 102 projects, which took 102 repetitions of [right-click, "e", "s", Enter].  With the patch, I would need a few clicks to select all the projects, right-click, "e", "s", and 102 Enters; this is a slight improvement.
Comment 9 Jean-Michel Lemieux CLA 2007-03-26 22:08:18 EDT
Let me take a stab at this, it bugs me too and I work with a repo with supports multiple project sharing in it's wizard by showing the unshared projects. It would be nice if multiselect worked as well.

No promises for 3.3 (eg, no milestone set yet), but I'll try. 
Comment 10 Michael Valenta CLA 2007-03-29 11:44:56 EDT
*** Bug 180017 has been marked as a duplicate of this bug. ***
Comment 11 Philipe Mulet CLA 2007-04-03 11:39:54 EDT
Could we address this for 3.3 ?
Comment 12 Jean-Michel Lemieux CLA 2007-04-03 13:07:41 EDT
Yes, I'll try.
Comment 13 Michael Valenta CLA 2007-05-02 16:17:43 EDT
Given that we are winding down 3.3 M7, I think we'll need to defer this until 3.4.
Comment 14 Matt McCutchen CLA 2007-05-03 21:37:43 EDT
Created attachment 65877 [details]
Adds dumb outer loop; updated to apply cleanly to HEAD 5/3/2007
Comment 15 Mike Wilson CLA 2007-06-05 12:04:11 EDT
Lowering priority. This is not a stop-ship problem.
Comment 16 Michael Valenta CLA 2007-06-20 13:56:51 EDT
*** Bug 136148 has been marked as a duplicate of this bug. ***
Comment 17 Michael Valenta CLA 2007-07-30 15:19:06 EDT
I have released the Team API for this to HEAD. If the target repository wizard implements or adapts to the IConfigurationWizardExtension, then this new API will be used when multiple projects are selected. If a selected wizard does not implement or adapt to the interface, a wizard page containing the selected projects is shown and individual sharing wizards can be launched from there. I have created bug 198314 against CVS to take advantage of this new API.
Comment 18 Matt McCutchen CLA 2007-08-09 08:53:28 EDT
I find it mildly confusing that the "Cancel" button on the wizard page for sharing individual projects doesn't cancel anything.  Would it be possible to disable the button?
Comment 19 Szymon Brandys CLA 2007-08-09 09:00:16 EDT
Please raise a new bug for the issue.