On 27-Aug-08, at 7:04 PM, Jain, Ankit wrote: > 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.
AFAIK ComboViewer (or any other viewer) does a hookControl(Control) which adapts the SWT's SelectionListener to JFace's SelectionChangedEvent. So listeners hooked into Combo or ComboViewer should continue to work. JFace merely translates SWT events into JFace events. I may be wrong so I'd recommend going through the hookControl that's invoked in the ComboViewer's constructor. You could add a breakpoint into the anonymous SelectionListener inside hookControl() -- Ketan ------------------------------------------------------------------------- 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