Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » View Menu of part and SWTBot(How can I access to button in the View Menu of a part with SWTBot)
View Menu of part and SWTBot [message #1701790] Wed, 15 July 2015 15:32
Loic Faure is currently offline Loic FaureFriend
Messages: 24
Registered: December 2014
Junior Member
Hi,

I'm facing a problem with SWTBot, I don't know if I need to post it on the SWTBot forum or here.

When I get a SWTBotView for a part and this part have a View Menu, I cannot access the content of this menu.

I tried the following (which I found in a bug) :
viewBot.bot().toolbarDropDownButtonWithTooltip("View Menu").menuItem(...)
That does'nt work. More precisely, there isn't toolbar in my part.

So I tried to get the menu via application model but then, the menu is not yet rendered so the call :
viewBot.getPart().getMenus().get(0).getWidget return null.

So is there a method for getting this type of elements ?
Previous Topic:"Install new software" from the welcome page
Next Topic:Using Popup Menu and MDirectMenuItem
Goto Forum:
  


Current Time: Fri Apr 26 16:12:50 GMT 2024

Powered by FUDForum. Page generated in 0.03100 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top