Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 185556 - [CommonNavigator] [Common Navigator] Filters always reset whenever selection changed
Summary: [CommonNavigator] [Common Navigator] Filters always reset whenever selection ...
Status: RESOLVED DUPLICATE of bug 160916
Alias: None
Product: Platform
Classification: Eclipse Project
Component: IDE (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Michael D. Elder CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-04 10:51 EDT by Robert Ma CLA
Modified: 2007-05-04 11:20 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Ma CLA 2007-05-04 10:51:19 EDT
Build ID: 20070212-1330

Steps To Reproduce:
We are building our own common navigator by extending the CommonNavigator class.  We declare filters both declaratively in plugin.xml and programmatically, so that some filters are always enabled and some can be customized by users.  

What we found was whenever filter selection are changed from Available Customization dialog, all filters associating with the Common Navigator will first be reset then set according to the selection made in the dialog.  

Hence, all the filters that were added programmatically will be disabled.

1. Declare a new class that extends the CommonNavigator class, and programmatically add filters to the CommonViewer
2. Declare an instance of the org.eclipse.ui.navigator.viewer extension point using the new class
3. Declare other filters declaratively in plugin.xml
4. Make filter selection changes on the Available Customization dialog, and you will see all programmatically added filters are removed. 


More information:
Comment 1 Michael D. Elder CLA 2007-05-04 11:20:49 EDT

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