Skip to main content


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 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 #557604 is a reply to message #552248] 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 #557826 is a reply to message #557604] Thu, 09 September 2010 06:36 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
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: Wed Apr 24 19:34:25 GMT 2024

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

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

Back to the top