Community
Participate
Working Groups
N20100516-2000, broken since 3.6 M7, works in R3.5.x. First Show In > Project Explorer removes selection after setting it. 1. start with new workspace 2. switch to 'Resource' perspective 3. close the 'Project Explorer' 4. open the 'Navigator' 5. create a simple project 'P' 6. Navigate > Show In > Project Explorer ==> selection is set in the 'Project Explorer' but immediately removed afterwards Should fix for 3.6 since Show In > is broken
Increasing severity. Not having the element selected severely impacts the Show In feature.
I will fix this today.
Any update on the fix? ;-)
(In reply to comment #3) > Any update on the fix? ;-) Didn't get to it yesterday, looks like today is going to have to be the day.
Created attachment 169190 [details] Proposed patch This problem was introduced by the fix to bug 262096. This bug fix made a significant change in the way the working set filters were implements. Previously the working set filter (which are part of the Project Explorer and not part of the CN) was a filter directly on the view. So when the CN filters were changed, it updated the view filter and then lost the working set filter. The fix to this was to have the working set filter be implemented as a CN fillter (instead of directly on the view). In the course of doing this, I created the NavigatorFilterService.updateFilters() method so that when the working set filter changed it could properly refresh. The current version of the updateFilters() also reset the selection, which is causing this problem. The fix is very conservative (as appropriate for RC2). It moves the reset of the selection back to its original place (the other call of updateFilters()) so that the filter change code continues to work the same. But when the working set code calls updateFilters() it will no longer reset the selection.
BTW - in show annotation the bug number incorrectly shows up as a different number. The number in this bug report (bug 262096) is the correct one.
Released to HEAD 3.6RC2
Verified in N20100519-2000 that the fix works (didn't review the code).