Bug 212326 - WTP project creation wizards do not add the project to a working set.
Summary: WTP project creation wizards do not add the project to a working set.
Status: RESOLVED FIXED
Alias: None
Product: WTP Java EE Tools
Classification: WebTools
Component: jst.j2ee (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 3.1 M4   Edit
Assignee: Kaloyan Raev CLA
QA Contact: Chuck Bridgham CLA
URL:
Whiteboard: EaseOfUse
Keywords: noteworthy, plan
Depends on:
Blocks:
 
Reported: 2007-12-08 11:46 EST by kiril mitov CLA
Modified: 2008-12-11 14:04 EST (History)
4 users (show)

See Also:


Attachments
Patch (3.28 KB, patch)
2008-10-07 09:48 EDT, Georgi Dimitrov CLA
kaloyan: iplog+
Details | Diff
Patch v2 (6.64 KB, patch)
2008-11-27 13:53 EST, Kaloyan Raev CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.