Skip to main content



      Home
Home » Eclipse Projects » Nebula » handle check events on a checkbox in a GridTreeViewer
icon9.gif  handle check events on a checkbox in a GridTreeViewer [message #513184] Tue, 09 February 2010 04:42 Go to next message
Eclipse UserFriend
Hello everyboody,

I have a GridTreeViewer with checkboxes
treeviewer = new GridTreeViewer(parent, SWT.CHECK | SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL | SWT.FULL_SELECTION | SWT.MULTI);


How do i get the check events on these checkboxes?
I have to modify attributes of the underling domain model if the state changes but I haven't found a listener...

Thank you

M. Lindner
Re: handle check events on a checkbox in a GridTreeViewer [message #525001 is a reply to message #513184] Mon, 05 April 2010 05:10 Go to previous messageGo to next message
Eclipse UserFriend
Is your poblem is resolved? If yes,Can you please let me know the solution for it? Im facing a similar task to handle check events in Grid TreeViewer..


Thanks.,
Santhosh



Re: handle check events on a checkbox in a GridTreeViewer [message #552255 is a reply to message #525001] Wed, 11 August 2010 09:00 Go to previous message
Eclipse UserFriend
Too late, I suppose... But I hope this will help the others. I have used :
column.setEditingSupport(new CheckEditingSupport(gridtreeviewer) {
	@Override
	public void setValue(Object arg0, Object arg1) {
		// arg0 is the checked element in your model and arg1 the Boolean value of the checkbox
		// Just update your model here to follow check modifications.
	}
});


David
Previous Topic:Nebula GanttChart EventListener
Next Topic:handle check events on a checkbox in a GridTreeViewer
Goto Forum:
  


Current Time: Wed Jul 23 01:30:50 EDT 2025

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

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

Back to the top