Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 320398 - Provide option "Add to working set" in New Source Folder wizard
Summary: Provide option "Add to working set" in New Source Folder wizard
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-core (show other bugs)
Version: 4.0   Edit
Hardware: PC Linux
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-20 10:22 EDT by cdm4orange CLA
Modified: 2020-09-04 15:25 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 cdm4orange CLA 2010-07-20 10:22:54 EDT
Build Identifier: 20100617-1415

When using a Working Set in the C/C++ Perspective: Project Explorer View, adding new folders should, IMHO, add them to the currently selected Working Set, so that I can see them in the Project Explorer immediately.  

Current implementation is that they aren't, so they disappear from the UI as soon as they are created.  Users (i.e. "I") have to then check the box of the new folder down in the hierarchy using the Edit Working Set UI.  

I think its a decent assumption to make that if I have a Working Set open and create a new folder that I want it to be part of the Working Set (and thus be able to see it) by default.

Don't know which component this really belongs in, SORRY!

Reproducible: Always

Steps to Reproduce:
1.Create a project with in C/C++ Perspective
2.Open Project Explorer, create some new folders
3.Create a Working Set and select it, including some of the new folders
4.Now select a folder in the Project Explorer and try to add a Source Folder, like "src" under "/myProject/componentFoo"
5.Watch the src folder disappear!  (and now for the workaround...)
6.Go to Edit Working Set dialog and navigate down to check the "src" folder box
7.Watch the src folder appear now (t
Comment 1 Prakash Rangaraj CLA 2010-07-29 05:19:52 EDT
4.Now select a folder in the Project Explorer and try to add a Source Folder,
like "src" under "/myProject/componentFoo"

    The Source Folder wizard should use the WorkingSetGroup, so that you can add the folder the working set. Moving to CDT for comments.
Comment 2 Doug Schaefer CLA 2010-08-09 14:11:39 EDT
Fixing component.
Comment 3 Dennis Schieferdecker CLA 2011-03-02 09:22:00 EST
Build Identifier: 20110218-0911
After adding a folder (no matter if normal folder or source folder was chosen), manually refreshing the project (pressing F5) is needed for the folders to appear.
Comment 4 Anton Leherbauer CLA 2011-03-03 04:40:22 EST
(In reply to comment #3)
> Build Identifier: 20110218-0911
> After adding a folder (no matter if normal folder or source folder was chosen),
> manually refreshing the project (pressing F5) is needed for the folders to
> appear.

I believe this is bug 338782.

In general it is common Eclipse practice to not add folders or projects automatically to a working set, instead the wizards may provide an option to do so.
Except for bug 338782 I cannot see any wrong behavior with respect to working sets.  I'll change this bug to an enhancement request to use the WorkingSetGroup in the new C/C++ Project and Source Folder wizards.
Comment 5 Anton Leherbauer CLA 2011-03-03 04:47:07 EST
I just found bug 338685 which asks for this option in the C/C++ Project wizard, so I'll leave this one for the Source Folder wizard.