Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 09:42 Go to next message
Michael Lindner is currently offline Michael LindnerFriend
Messages: 10
Registered: November 2009
Junior Member
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 09:10 Go to previous messageGo to next message
Santhosh Hari is currently offline Santhosh HariFriend
Messages: 21
Registered: March 2010
Junior Member
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 13:00 Go to previous message
David F. is currently offline David F.Friend
Messages: 12
Registered: July 2009
Junior Member
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: Sat Dec 20 16:42:10 GMT 2014

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

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