Bug 183539 - [Viewers] [Viewers]CheckboxTableViewer only uses the TableItem's checked state
Summary: [Viewers] [Viewers]CheckboxTableViewer only uses the TableItem's checked state
Status: RESOLVED DUPLICATE of bug 181308
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Boris Bokowski CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-22 17:31 EDT by Michael D. Elder CLA
Modified: 2007-04-23 09:44 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael D. Elder CLA 2007-04-22 17:31:54 EDT
On Eclipse 3.3 20070418.

In order to fix bug 160916, the dialog has to maintain a copy of the checked state from the table. The JFace viewer only uses the checked items, so if you use a pattern filter against the table, the widgets (which have valuable state) can be removed, causing the loss of the checked state. 

The result is that after every refresh of the tree, the duplicated checked state (maintained outside of the CheckboxTableViewer) must manually be restored.
Comment 1 Boris Bokowski CLA 2007-04-23 09:24:34 EDT
Michael, would it help to introduce a "checked state provider"?  Can we mark this one as a dupe of bug 181308?
Comment 2 Michael D. Elder CLA 2007-04-23 09:35:04 EDT
I think that would be fine. In affect, the solution that was implemented does just that; it just has to "push" the state. 
Comment 3 Boris Bokowski CLA 2007-04-23 09:44:50 EDT

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