Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » GridTreeViewer with SWT.CHECK and filters(Lost of previous checks when resetFilters)
GridTreeViewer with SWT.CHECK and filters [message #552248] Wed, 11 August 2010 08:43 Go to next message
David F. is currently offline David F.
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 #557604 is a reply to message #552248] Wed, 08 September 2010 05:25 Go to previous messageGo to next message
David F. is currently offline David F.
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 #557826 is a reply to message #557604] Thu, 09 September 2010 02:36 Go to previous message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5014
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:Grid, GridTableViewer - multiple column sort
Next Topic:GridTreeViewer with SWT.CHECK and filters
Goto Forum:
  


Current Time: Sat Apr 19 16:03:18 EDT 2014

Powered by FUDForum. Page generated in 0.04556 seconds