Hi All,
I found the reason why the code below is not working. It is because The listener added to Comboviewer object not to Combo. Therefore it is not working. I am trying to extend SWTBot api for the implementation for some Jface components. Thanks and regards, _________________________________________________________ Ankit Jain / Capgemini "India" / Bangalore Consultant/ Sogeti Com1: 080-6656700- extn: 8473 Com2: +919986017572 / www.capgemini.com <http://www.capgemini.com> Together. Free your energies _________________________________________________________ ________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jain, Ankit Sent: Wednesday, August 27, 2008 3:30 PM To: swtbot-users@lists.sourceforge.net Subject: [SWTBot-users] Selection Listener not working Hi All, am calling the combobox as follows: SWTBotCombo lcombo = bot.comboBoxWithLabel("AC_ICD", 0); lcombo.setSelection(0); Listner to this combobox: superComboViewer = new org.eclipse.jface.viewers.ComboViewer(top, SWT.BORDER | SWT.READ_ONLY); superCombo = superComboViewer.getCombo(); superComboViewer.addSelectionChangedListener(new org.eclipse.jface.viewers.ISelectionChangedListener() { public void selectionChanged(SelectionChangedEvent pEvent) { // some code snippet inside this listener } }); The above listener implementation is in different plugin. The ISelectionChangeListener is not getting called for this selection. Issue similar to this exist when I select some node in a tree, like "SWTBotTreeItem.select()" Please help me. _________________________________________________________ Ankit Jain / Capgemini "India" / Bangalore Consultant/ Sogeti Com1: 080-6656700- extn: 8473 Com2: +919986017572 / www.capgemini.com <http://www.capgemini.com> Together. Free your energies _________________________________________________________
<<image001.gif>>
<<image002.gif>>
------------------------------------------------------------------------- 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