Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » GridTreeViewer with SWT.CHECK and filters
GridTreeViewer with SWT.CHECK and filters [message #600099] Wed, 11 August 2010 12:43 Go to next message
David F. is currently offline David F.Friend
Messages: 12
Registered: July 2009
Junior Member
Hello,

I'm using a GridTreeViewer with SWT.CHECK in first column :
GridViewerColumn column = new GridViewerColumn(gridtreeviewer, SWT.CHECK);
To update my model during a check, I use :
column.setEditingSupport(new CheckEditingSupport(gridtreeviewer) {
@Override
public void setValue(Object arg0, Object arg1) {
((Node) arg0).setChecked(((Boolean) arg1).booleanValue());
}
}); where Node is my model with a setChecked method for storing check state.

When I add a filter :
ViewerFilter[] filters = new ViewerFilter[1];
filters[0] = new CheckFilter();
gridtreeviewer.setFilters(filters); where CheckFilter is my filter on isChecked value of my model.
No problem, the checks are kept and my tree is updated.

But when I reset the filter :
gridtreeviewer.resetFilters();
gridtreeviewer.expandAll();

I lost my checks...


So it seems that I forget something. But what ?
Have you any idea ?

Thanks.
Re: GridTreeViewer with SWT.CHECK and filters [message #600199 is a reply to message #600099] Wed, 08 September 2010 09:25 Go to previous messageGo to next message
David F. is currently offline David F.Friend
Messages: 12
Registered: July 2009
Junior Member
Up.
It seems to be a bug. All my tests leads to the same results.
Checks seems to be stored without handling filters...

David
Re: GridTreeViewer with SWT.CHECK and filters [message #600205 is a reply to message #600199] Thu, 09 September 2010 06:36 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 5487
Registered: July 2009
Senior Member
Can you file a bugzilla and attach a simple example to reproduce?

Tom

Am 08.09.10 11:25, schrieb David F.:
> Up.
> It seems to be a bug. All my tests leads to the same results.
> Checks seems to be stored without handling filters...
>
> David
Previous Topic:GridTreeViewer with SWT.CHECK and filters
Next Topic:[PaperClips] Vertical TextPrint?
Goto Forum:
  


Current Time: Sat Dec 20 13:42:58 GMT 2014

Powered by FUDForum. Page generated in 0.02807 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software