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

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) :"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: Wed Oct 24 05:18:00 GMT 2018

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

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

Back to the top