On 16-Sep-08, at 12:45 PM, Vitor Rodrigues wrote:

> Hi all,
>
> is there anything "special" about the Project menu in eclipse? I  
> want to open the menu Project->Properties for the selected project,  
> but I get a null value when I do:
>         projecthelper.selectProject(PROJECT_NAME);
>         SWTBotMenu propmenu = bot.menu("Project").menu("Properties");
>
> propmenu is assigned a null value.

I looked at the code, and you should not get a null value here, ever.  
You'll instead get a WidgetNotFoundException. What version are you  
using, can you reproduce this with the latest in trunk: 
http://swtbot.sourceforge.net/artifacts/trunk/

> However, when I get the menu Edit->Delete, it works fine:
>         projecthelper.selectProject(PROJECT_NAME);
>         SWTBotMenu delmenu = bot.menu("Edit").menu("Delete");
>
> delmenu references the appropriate menu. I haven't been able to get  
> any submenu from the Project menu (tried Close Project, Open  
> Project, Properties). Is there any special consideration about the  
> Project menu that I'm not aware of? All the other menus work fine.
>
> Let me know if you want any debug or logging information.


I presume you've figured out logging, the logger prints out  
information about what widgets were found, their complete hierarchy,  
and what widgets actually matched against a matcher. If you feel this  
is a bug, you can attach the log4j logs at bugs.eclipse.org

As a workaround, you can do a context menu click on the project  
explorer to open up properties, until this issue is resolved.

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

Reply via email to