Bug 48939 - [WorkingSets] New working set should preselect with UI selection
Summary: [WorkingSets] New working set should preselect with UI selection
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows 2000
: P4 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Benjamin Muskalla CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2003-12-16 22:47 EST by Ritchie Schacher CLA
Modified: 2007-01-04 15:18 EST (History)
2 users (show)

See Also:


Attachments
resourceworkingsetpreselect.diff (2.72 KB, patch)
2007-01-04 14:35 EST, Benjamin Muskalla CLA
no flags Details | Diff
resourceworkingsetpreselect.diff (2.85 KB, patch)
2007-01-04 14:53 EST, Benjamin Muskalla CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ritchie Schacher CLA 2003-12-16 22:47:37 EST
If I select 3 projects in the package explorer, then create a new working set, 
it would be nice if the working set dialog would have those 3 projects 
preselected.  Or if there were a "Create working set" action from the selection 
in the view.
Comment 1 Benjamin Muskalla CLA 2006-10-12 18:00:01 EDT
This works for me already in Eclipse Version: 3.3.0
Build id: N20061012-0010
Comment 2 Benjamin Muskalla CLA 2007-01-04 09:51:03 EST
Hehe, don't believe me ;)

It's working for Java WS and some others (like PHP from PDT) but it's not working for the Resources WS type.

I'll look a bit more on this in some hours.
Comment 3 Kim Horne CLA 2007-01-04 10:19:11 EST
should just be a matter of priming the tree with the workbench page selection.
Comment 4 Benjamin Muskalla CLA 2007-01-04 14:35:46 EST
Created attachment 56412 [details]
resourceworkingsetpreselect.diff

Here's a little patch to preselect resources in the Resource Working Set page which are selected in the workbench itself. Works for all types of Resources, not only for projects.
Comment 5 Benjamin Muskalla CLA 2007-01-04 14:53:20 EST
Created attachment 56414 [details]
resourceworkingsetpreselect.diff

Updated patch, added check before casting to IAdaptable
Comment 6 Kim Horne CLA 2007-01-04 15:06:17 EST
Fix in head.  Thanks Benny!
Comment 7 Kim Horne CLA 2007-01-04 15:17:48 EST
Reopening to reassign
Comment 8 Kim Horne CLA 2007-01-04 15:18:48 EST
Reassigning
Comment 9 Kim Horne CLA 2007-01-04 15:18:59 EST
Marking as fixed