Bug 46669 - [WorkingSets] "Select/Deselect All" button for working set creation wizard.
Summary: [WorkingSets] "Select/Deselect All" button for working set creation wizard.
Status: CLOSED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.0   Edit
Hardware: All All
: P4 enhancement (vote)
Target Milestone: 3.1 RC1   Edit
Assignee: Kim Horne CLA
QA Contact:
URL:
Whiteboard:
Keywords: polish
Depends on:
Blocks:
 
Reported: 2003-11-14 10:01 EST by Troy Bishop CLA
Modified: 2005-05-24 11:22 EDT (History)
1 user (show)

See Also:


Attachments
ResourceWorkingSetPage.java patch (3.33 KB, patch)
2005-05-04 14:51 EDT, Troy Bishop CLA
no flags Details | Diff
messages.properties patch (1.04 KB, patch)
2005-05-04 14:51 EDT, Troy Bishop CLA
no flags Details | Diff
IDEWorkbenchMessages.java patch (1.09 KB, patch)
2005-05-04 14:51 EDT, Troy Bishop CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Troy Bishop CLA 2003-11-14 10:01:38 EST
 
Comment 1 Troy Bishop CLA 2003-11-14 10:03:05 EST
It would be nice to have a 'Select All' and 'Deselect All' button on the wizard
page for selecting the resources to add to your working set.
Comment 2 Troy Bishop CLA 2005-04-22 11:46:08 EDT
Just out of curiousity, is there any way this can be contained in the 3.1
release?  I would consider this a small usability part of the "Scaling Up" theme
for the 3.1 release (bug 71128) as it was reported to myself (via an IBM
customer) in this regards.  This customer has many projects in their workspace
and in some situations would rather 'select all' projects and then deselect
individual projects to create a working set.  Thanks very much!
Comment 3 Kim Horne CLA 2005-04-27 15:39:43 EDT
MvM, what do you think?  This is a pretty small fix.
Comment 4 Michael Van Meekeren CLA 2005-04-28 13:23:09 EDT
Troy, any patches with this fix would really go a long way in seeing it happen
for 3.1, otherwise I doubt it.
Comment 5 Troy Bishop CLA 2005-04-28 13:42:18 EDT
Thanks Michael.  Could you provide me some pointers as to which class[es] I
would need to look into to add these two buttons?
Comment 6 Michael Van Meekeren CLA 2005-04-29 09:33:25 EDT
Sure, have a look at the following:

WorkingSetNewWizard (the actual wizard that adds a page for selecting resources)
WorkingSetTypePage (the wizard page, see create* methods)
Comment 7 Troy Bishop CLA 2005-04-29 12:05:10 EDT
Hi Michael,

I've looked over the code and WorkingSetTypePage isn't the place that this would
need to be added (this is just the first page of the wizard) but rather it would
need to be added to each contributors WorkingSetPage (i.e. JavaWorkingSetPage,
ResourceWorkingSetPage, PluginWorkingSet, and BreakpointWorkingSetPage).  I
don't mind doing this, but it seems like a lot of duplicated code - wouldn't it
be better to have a super class that all these classes extend (i.e. a base
class) and it would implement a lot of the UI code, while each contributors
would extend it and set their corresponding providers, labels, etc.?  Right now
it seems that each contributor creates their own class which extends WizardPage
and implements IWorkingSetPage, and then they implements their own UI code even
though all working set edit pages are all the same... just with different
providers and labels.

Anyway, I just wanted to get your feedback on this... maybe I'm looking at this
all wrong - I don't know the history behind the code ;).  Also, I'm guessing it
may be to late to do this now... if that is the case then I'll look into adding
the buttons to each class file (JavaWorkingSetPage, ResourceWorkingSetPage,
PluginWorkingSet, and BreakpointWorkingSetPage).  Thanks!
Comment 8 Troy Bishop CLA 2005-05-04 14:50:41 EDT
I create bug 93654 for the fix to be added to the JavaWorkingSetPage class and
bug 93686 for the fix to be added to the BreakpointWorkingSetPage class.  I will
add the fix to this bug for the ResourceWorkingSetPage class.
Comment 9 Troy Bishop CLA 2005-05-04 14:51:06 EDT
Created attachment 20705 [details]
ResourceWorkingSetPage.java patch
Comment 10 Troy Bishop CLA 2005-05-04 14:51:28 EDT
Created attachment 20706 [details]
messages.properties patch
Comment 11 Troy Bishop CLA 2005-05-04 14:51:49 EDT
Created attachment 20707 [details]
IDEWorkbenchMessages.java patch
Comment 12 Troy Bishop CLA 2005-05-05 10:59:33 EDT
For all of the other working set pages, I updated their classes to call:

SWTUtil.setButtonDimensionHint(button)

after the button is created to ensure that the width of the button is set
properly.  This class does not seem to exist for the org.eclipse.ui.ide plug-in
so I was wondering if you have any suggestions as to how to fix this?
Comment 13 Michael Van Meekeren CLA 2005-05-11 10:53:55 EDT
kim, can you review this post M7?
Comment 14 Kim Horne CLA 2005-05-12 10:30:19 EDT
I can.  Can you bring this up in the polish meetings for other teams to investigate?
Comment 15 Kim Horne CLA 2005-05-16 10:38:46 EDT
Patch submitted with some alterations.  I've applied the dialog font to the new buttons and ensured that 
setButtonLayoutData() was called.
Comment 16 Kim Horne CLA 2005-05-16 10:42:31 EDT
Troy: instead of calling SWTUtil, you should probably have just called WizardPage.setButtonLayoutData() - 
that's the standard way of ensuring button layout.  You might want to update the other patches to reflect 
this...
Comment 17 Michael Van Meekeren CLA 2005-05-16 10:53:38 EDT
BTW - thanks for your contribution Troy
Comment 18 Troy Bishop CLA 2005-05-24 11:22:46 EDT
Thanks a lot Kim.