Bug 212326

Summary: WTP project creation wizards do not add the project to a working set.
Product: [WebTools] WTP Java EE Tools Reporter: kiril mitov <thebravoman>
Component: jst.j2eeAssignee: Kaloyan Raev <kaloyan>
Status: RESOLVED FIXED QA Contact: Chuck Bridgham <cbridgha>
Severity: enhancement    
Priority: P3 CC: david_williams, kaloyan, konstantin, wmitsuda
Version: unspecifiedKeywords: noteworthy, plan
Target Milestone: 3.1 M4   
Hardware: All   
OS: All   
Whiteboard: EaseOfUse
Attachments:
Description Flags
Patch
kaloyan: iplog+
Patch v2 none

Description kiril mitov CLA 2007-12-08 11:46:39 EST
Build ID: I20070921-0919

Steps To Reproduce:
1.Start the workbench on a new empty workspace.
2.Create a dynamic dynamic web project named "project1".
3.Go to the project explorer menu and click on "Select Working Set".
4. In the opened dialog create a new working set and add project1 to this working set.
5. Again from the project explorer menu chose Top Level Elements->Working Sets.
6. Create a new dynamic web project - project2.
7. After creating the project2 it is not shown in the project explorer since it is not in the working set.

I think it will be reasonable the dynamic web project wizard to propose to add the newly created project to a working set. This is done for example in the New Java Project wizard. On the first page there is a check button "Add project to working set"
Comment 1 kiril mitov CLA 2007-12-08 11:50:41 EST
The same enhancement can be made to the static web project ofcourse
Comment 2 Willian Mitsuda CLA 2008-02-10 18:54:43 EST
The same enhancement can be made in all WTP new projects wizards :)

This can be easily done with WorkingSetConfigurationBlock.

See: http://pookzilla.net/wp/2007/08/new-resources-and-working-sets/
Comment 3 Kaloyan Raev CLA 2008-08-06 12:19:33 EDT
This is an enhancement for the Common project since all WTP project creation wizards are based on the Faceted project wizard. 

Even the Simple project wizard has an "Add project to working sets" option and I think this is much desired for WTP as well. 
Comment 4 Konstantin Komissarchik CLA 2008-08-07 16:14:11 EDT
> This is an enhancement for the Common project since all WTP project creation
> wizards are based on the Faceted project wizard. 

While it's true that all WTP project creation wizards are build on the facet project wizard framework, the actual first page where the working sets UI would have to go belongs to the individual wizards.

I created Bug 243488 to track getting this implemented for the generic "Faceted Project" wizard which is part of the framework. Sending this bug back to Java EE.
Comment 5 Georgi Dimitrov CLA 2008-10-07 09:48:44 EDT
Created attachment 114415 [details]
Patch

This patch provides the UI part for resolving the bug - it adds the Working Set group to the first page of the wizard. The synchronization with the underlying model should be done.
Comment 6 Kaloyan Raev CLA 2008-11-27 13:53:25 EST
Created attachment 118946 [details]
Patch v2

This second version of the patch modifies the postPerformFinish() method of the NewProjectDataModelFacetWizard, so that the project is added to the selected working sets.
Comment 7 Kaloyan Raev CLA 2008-11-27 14:04:39 EST
committed to HEAD and released to build.