Community
Participate
Working Groups
(In reply to comment #0) Description: If a working set does not contain the project node, the Project Explorer shows the flat working set elements, instead of a filtered view of the resource structure. Steps to reproduce: Create resource structure - project 'P' - file 'F1' - file 'F2' - file 'F3' Create working set containing only the files 'F1' and 'F2' Select working set in PE PE shows - file 'F1' - file 'F2' Expected: - project 'P' - file 'F1' - file 'F2'
Created attachment 84942 [details] Proposed fix The fix uses a ResourceWorkingSetFilter to make the PE behave like the Resource Navigator. It fixes also bug 157877.
*** Bug 190819 has been marked as a duplicate of this bug. ***
*** Bug 162966 has been marked as a duplicate of this bug. ***
Created attachment 110156 [details] Revisions to proposed fix Thanks for your contribution; I revised it a little, added the correct copyright notice; removed some unecessary checking for null, and inlined a method you has that was called only once.
Created attachment 110157 [details] Test cases for this bug Attached are the test suite modifications and new test cases. To make these work, I had to add a class to org.eclipse.ui.navigator to help get access to some otherwise unavailable methods. This class is clearly marked as non-API. Ideally it should not show up in the Javadoc, but I don't know if that's possible. I welcome comments or corrections about this.
Kim, can you have a look at this? (Boris said that I should have all 3.4.1 changed reviewed by someone). I'm particularly interested in your comments about how I approach the testing, I had added a new class to support the testing to the org.eclipse.ui.navigator package, and I hope I have marked it correctly that it can not be construed as API. Ideally I would like it not to be present in the Javadoc as well. If there is a better way to handle this, I'm interested. Thanks! PS - if you think someone else would be better to review this, please pass it to them.
Created attachment 110160 [details] Further Revised to add fix for 220090 Since this fix was in the same code.
Created attachment 110161 [details] Test Cases, revised to add tests for 220090
*** Bug 220090 has been marked as a duplicate of this bug. ***
Oh, and Kim, please excuse the printlns in the patch, I will remove them.
Created attachment 110173 [details] Tests revised again to use a better approach for public classes Moved TestAccessHelper into the tests
*** Bug 239465 has been marked as a duplicate of this bug. ***
*** Bug 202933 has been marked as a duplicate of this bug. ***
It seems fine, please remove any System.out and System.err calls before you commit it PW
Released to 3.4.1, HEAD (35M2)
You should not release .api_filters without PMC approval. The filter is necessary due to a bug in the API tools. Since I didn't find a corresponding bug, I've opened a new one: Bug 244673. Furthermore, the released filter is too broad. Only the last entry is necessary: <?xml version="1.0" encoding="UTF-8" standalone="no"?> <component id="org.eclipse.ui.navigator" version="2"> <resource path="src/org/eclipse/ui/navigator/NavigatorActionService.java" type="org.eclipse.ui.navigator.NavigatorActionService"> <filter id="338944126"> <message_arguments> <message_argument value="org.eclipse.ui.navigator.NavigatorActionService"/> <message_argument value="getActionProviderInstance(CommonActionProviderDescriptor)"/> </message_arguments> </filter> </resource> </component>
RE-resolving this bug, opened bug 244697 to track the issue with the .api-filter.
*** Bug 226949 has been marked as a duplicate of this bug. ***
*** Bug 131575 has been marked as a duplicate of this bug. ***
*** Bug 198583 has been marked as a duplicate of this bug. ***
Verified the case described in this bug works, and that when the project explorer is set to include selected working sets and there are no working sets that everything is shown. Also verified that working sets are shown correctly as the top level view. All verified in M20080827-2000. Finally test case that was added ran in that build.
*** Bug 247679 has been marked as a duplicate of this bug. ***
*** Bug 226952 has been marked as a duplicate of this bug. ***