Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » handle check events on a checkbox in a GridTreeViewer
handle check events on a checkbox in a GridTreeViewer [message #599000] Tue, 09 February 2010 04:42 Go to next message
Michael Lindner is currently offline Michael Lindner
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 #599429 is a reply to message #599000] Mon, 05 April 2010 05:10 Go to previous messageGo to next message
Santhosh Hari is currently offline Santhosh Hari
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 #600107 is a reply to message #599429] Wed, 11 August 2010 09:00 Go to previous message
David F. is currently offline David F.
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:handle check events on a checkbox in a GridTreeViewer
Next Topic:[Paperclips] is possible a Print composed by a TextPrint and GridPrint
Goto Forum:
  


Current Time: Sat Jul 26 11:14:23 EDT 2014

Powered by FUDForum. Page generated in 0.02040 seconds