The tests for SWTBot are very good examples of SWTBot usage.

http://swtbot.svn.sourceforge.net/svnroot/swtbot/trunk/net.sf.swtbot.eclipse.finder.test/src/net/sf/swtbot/eclipse/finder/widgets/helpers/PackageExplorerView.java

On 17-Sep-08, at 1:54 AM, Vitor Rodrigues wrote:

> Is there anyway to look for a tree inside a specific view? If I  
> understand correctly, iterating through bot.tree(i) returns all  
> visible trees. I would like to get the tree inside the Project  
> Explorer view, but basically have to get all the trees and iterate  
> over each TreeItem until the item text is like the name of the  
> Project I'm looking for.
>
> I looked at the API for View but there is nothing there.
>
>
> I am trying to select a project so that I can use its context menu.  
> What is the best way to do it? Right now, I'm getting all the trees  
> and looking for the item with the name I'm looking for. It doesn't  
> look very nice approach, so let me know if there is any other way of  
> doing it.
>
> Thanks,
> Vitor



-------------------------------------------------------------------------
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

Reply via email to