Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 97200

Summary: [package explorer] [working sets] Enable 'New' action for working sets
Product: [Eclipse Project] JDT Reporter: David Saff <david>
Component: UIAssignee: Benno Baumgartner <benno.baumgartner>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: eclipse, ekuleshov, ImmortalRick, markus.kell.r, martinae
Version: 3.1   
Target Milestone: 3.3 M7   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
fix none

Description David Saff CLA 2005-05-30 05:38:21 EDT
If I want to create a new folder in a project, I right-click the project.  If I
want to create a new project in a working set, I right-click the working set...
and then remember that it doesn't work that way.  I suggest that "New Project"
should be enabled from the working set context menu, and the new project should
add itself to the working set.
Comment 1 Dirk Baeumer CLA 2005-05-30 17:17:20 EDT

*** This bug has been marked as a duplicate of 78701 ***
Comment 2 Dirk Baeumer CLA 2005-05-31 03:55:19 EDT
Actually, this is not a dup of 78701. Reopening...
Comment 3 Dirk Baeumer CLA 2005-08-15 06:24:13 EDT
*** Bug 107002 has been marked as a duplicate of this bug. ***
Comment 4 Dirk Baeumer CLA 2005-08-15 06:24:38 EDT
From Bug 107002

It is annonying that every time a new project is created it does not show up in 
the project explorer until it is manually added to the current working set (if 
one is active). It is a save bet that a new project should be added to the 
current working set so the new project wizard should take care of that.
Comment 5 Dirk Baeumer CLA 2005-08-17 05:07:36 EDT
*** Bug 107134 has been marked as a duplicate of this bug. ***
Comment 6 Dirk Baeumer CLA 2005-08-17 05:09:21 EDT
From bug 107134

-- Select working set node in Package Explorer view
-- Choose "Create new Project..." from main menu of from popup menu (see
separate request for this)
-- Project should be automatically added to this working set
Comment 7 Dirk Baeumer CLA 2005-11-01 06:16:46 EST
*** Bug 114502 has been marked as a duplicate of this bug. ***
Comment 8 Martin Aeschlimann CLA 2007-04-12 04:24:42 EDT
bug 150009 is about adding controls to the new project wizard so that working sets can be specified.

I would like to use this bug for the missing 'New' action in the context menu on working set elements.
Benno, can you look at this as a polish item?
Comment 9 Benno Baumgartner CLA 2007-04-13 05:50:50 EDT
Created attachment 63711 [details]
fix

This only works for Java Projects. However, it is still an improvement.
Comment 10 Benno Baumgartner CLA 2007-04-13 05:51:49 EDT
fixed > I20070410-1043
Comment 11 Markus Keller CLA 2007-04-13 09:18:33 EDT
Sorry, I disagree with this fix. The 3.3 way of adding elements to a working set is to call workingSet.adaptElements(..) and add the resulting elements to the working set. This way, elements can be added properly to all kinds of working sets that support them.

Furthermore, I think it is confusing to add this support without adding the UI from bug 150009 at the same time.
Comment 12 Benno Baumgartner CLA 2007-04-13 09:30:38 EDT
(In reply to comment #11)
> Sorry, I disagree with this fix. The 3.3 way of adding elements to a working
> set is to call workingSet.adaptElements(..) and add the resulting elements to
> the working set. This way, elements can be added properly to all kinds of
> working sets that support them.

I add an element created by the new java project wizard to a java working set. I see no need to adapt. Or is it possible, that a java project can not be added to a java workingset?

> 
> Furthermore, I think it is confusing to add this support without adding the UI
> from bug 150009 at the same time.
> 

I'm aware of that. Looks like 150009 won't happen in 3.3. I think it is more confusing to create a project and then the project is not revealed in the package explorer. What exactly do you find confusing?
Comment 13 Dani Megert CLA 2007-05-02 12:55:47 EDT
Verified in I20070502-0010: works if a single working set is selected but not for multiple selection, see bug 185172.