Hans Schwaebli wrote: > I have a suggestion for improving performance. > > I have seen that finding widgets by label collects all widgets it can > find and then it returns the widget by index. Often the index is 0. So > SWTBot could stop searching as soon as it finds the first widget > matching the criteria. Or if its the second widget which needs to be > found by label, it could stop searching as soon as it finds the second.
Yes, that is quite correct. In fact SWTBot does that for all matchers, it always finds all the widgets that matched a particular widget and the selection based on the index is done at the end. This was done earlier to keep the API clean and simple, I'm however convinced that this is a good place to optimize, and can infact be scaled up to any number of finds. So we could stop looking after say 2 matches, if the user requested the 2nd widget. -- 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