Could you file a feature request with a patch for this so that others could benefit out of this ?
-- Ketan On 15-Sep-08, at 3:39 PM, Jain, Ankit wrote: > Hi, > > This problem is solved, for this one has to create separate event > and with this following information need to be sent. > private Event selectionEvent() { > Event event = createEvent(); > event.item = getTreeItem(); > event.detail = SWT.CHECK; > return event; > } > > private void notifySelection () { > notify(SWT.Selection, selectionEvent()); > } > > > > _________________________________________________________ > > Ankit Jain / Capgemini "India" / Bangalore > Consultant/ Sogeti > Com1: 080-6656700- extn: 8473 Com2: +919986017572 / www.capgemini.com > <image001.gif>Together. Free your energies > _________________________________________________________ > <image002.gif> > From: Jain, Ankit > Sent: Monday, September 15, 2008 12:09 PM > To: 'swtbot-users@lists.sourceforge.net' > Subject: Issue with CheckBoxTreeViewer > > Hi, > > I embedded a org.eclipse.jface.viewers.CheckBoxTreeViewer.java > within the GUI. > > For performing click operation over checkbox in treeItem I wrote > following Code in SWTBotTreeItem.java file > > public SWTBotTreeItem setChecked (final boolean check) { > checkEnabled(); > syncExec(new VoidResult() { > public void run() { > getTree().setSelection(getTreeItem()); > getTree().setFocus(); > getTreeItem().setChecked(check); > notifySelection(); > } > }); > return this; > } > The way I implemented the Listener: > checkboxTreeViewer = new > CheckboxTreeViewer(lGroupControl,SWT.BORDER | SWT.V_SCROLL | > SWT.FILL | DEBUG_BORDER); > checkboxTreeViewer.addCheckStateListener(new > ICheckStateListener() { > public void checkStateChanged(CheckStateChangedEvent > pEvent) { > //Source code > } > }); > > This method checks the checkbox but does not call the > org.eclipse.jface.viewers.ICheckStateListener.checkStateChanged() > method :( . Due to which all the operations written within this > method cannot be called. > > Can anyone help on this? > > _________________________________________________________ > > Ankit Jain / Capgemini "India" / Bangalore > Consultant/ Sogeti > Com1: 080-6656700- extn: 8473 Com2: +919986017572 / www.capgemini.com > <image001.gif>Together. Free your energies > _________________________________________________________ > <image002.gif> > > > > > > This message contains information that may be privileged or > confidential and is the property of the Capgemini Group. It is > intended only for the person to whom it is addressed. If you are not > the intended recipient, you are not authorized to > read, print, retain, copy, disseminate, distribute, or use this > message or any part thereof. If you receive this message > in error, please notify the sender immediately and delete all copies > of this message. > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win > great prizes > Grand prize is a trip for two to an Open Source event anywhere in > the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/_______________________________________________ > SWTBot-users mailing list > SWTBot-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/swtbot-users > http://swtbot.org/ - a functional testing tool for SWT/Eclipse > Cheers, Ketan Padegaonkar, I blog... therefore I am... http://ketan.padegaonkar.name http://swtbot.org/ - a functional testing tool for SWT/Eclipse ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ SWTBot-users mailing list SWTBot-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/swtbot-users http://swtbot.org/ - a functional testing tool for SWT/Eclipse