Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 177071

Summary: [CommonNavigator] Project Explorer Working Sets As Top-Level Do Not Work
Product: [Eclipse Project] Platform Reporter: Mark Melvin <mark.melvin>
Component: UIAssignee: Michael D. Elder <mdelder>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 3.3   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Mark Melvin CLA 2007-03-12 17:33:50 EDT
Build ID: I20070222-0951

Steps To Reproduce:
1. Install the Eclipse 3.3M5eh and execute Eclipse like so:
eclipse.exe -application org.eclipse.ui.ide.application.workbench
2. Create a few new projects.
3. Create a couple working sets, and add the projects to them in any combination you wish.
4. Now try to set the top-level item in the Project Explorer window to "Working Sets".

You won't see anything happen.  It will just show you the projects.


More information:
Now I am totally confused because when I tried to reproduce this bug I couldn't at first.  I could reproduce it when I ran our product, but not with a standard Eclipse.  There were no menu contributions to the Project Explorer it seemed.  Then I realized that our product was using the -application ID "org.eclipse.ui.ide.workbench", which no longer exists.  So I changed it to the new value of "org.eclipse.ui.ide.application.workbench" and the menu contributions appeared (and failed to work as outlined in this bug report.

So, I am left with some questions.

1) What is the default application ID now??  It is obviously not org.eclipse.ui.ide.application.workbench.

2) Why doesn't the default application ID contribute what I consider very useful functionality to the Project Explorer view?  I very much like viewing the working sets at the top level, and didn't realize this wouldn't be exposed in 3.3 out of the box.

3) I also am unclear with exactly what the toolbar containing the 3 working sets buttons is for.  It looks like I can add/remove selections to the working sets (I understand these two buttons), but what is the 3rd one for?  It looks liek it is for editing working sets, but why are the menu items (the working sets) checkable in this dropdown menu??  It seems to me like this doesn;t do anything.
Comment 1 Kim Horne CLA 2007-03-21 09:30:23 EDT
1) the application name should once again be "org.eclipse.ui.ide.workbench" - there was some confusion there for awhile
2) I'm not entirely sure myself.  I will forward this bug along to the right people to address this issue.
3) The third button governs the contents of the window working set.  The window working set is an aggregate working set - it contains other working sets.  With all views set to the window working set, this button allows you to quickly change the filter on all views to match a list of working sets.  If the window working set is empty the views will act as if they are unfiltered.
Comment 2 Michael D. Elder CLA 2007-04-26 12:02:31 EDT
Can you provide a little more information about what your second question? 

"2) Why doesn't the default application ID contribute what I consider very
useful functionality to the Project Explorer view?  I very much like viewing
the working sets at the top level, and didn't realize this wouldn't be exposed
in 3.3 out of the box."

If you select the "Select Working Set" action, then choose a check list of Working Sets, you can have the view display many working sets at the same time. If you want to show them in a group, choose "Top Level Elements> ..". 

You may have opened the view after you started the workbench. There was a defect that was recently fixed where the Working Set menus were displayed if the view was opened after the workbench started; could this be what you're referring to?
Comment 3 Mark Melvin CLA 2007-04-26 13:14:32 EDT
I have tried this with the latest integration build and it seems to be working.  I think what led me to confusion before is I was creating a single working set, and never seeing it in the Project Explorer - even if I set the working sets to be "top level".

(note I am using the platform runtime only and the Resource perspective)

It appears that the view will not show the working set at the top level if there is only a single working set selected.  I guess this makes sense, it just isn't consistent with the way the Java Perspective works (and what I was used to) where it will always show a working set at the top level, even if there is only one working set present (or 'none', in which case it creates a dummy "Other Projects" working set for you - and shows it at the top level).
Comment 4 Michael D. Elder CLA 2007-04-26 13:33:35 EDT
In that case, it sounds like the real issue is the consistency. I will close this as a duplicate of bug 157877. It won't be addressed in 3.3, but I think we can address it in 3.4. 

*** This bug has been marked as a duplicate of bug 157877 ***