Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » Want to access CommandContributionItem through SWTBot
Want to access CommandContributionItem through SWTBot [message #708070] Tue, 02 August 2011 12:27
Pavan Missing name is currently offline Pavan Missing nameFriend
Messages: 3
Registered: August 2011
Junior Member
Hey all,

I have one menu option in my view's triangular button menu. In UI, if i mouse over on that menu option, one sub-menu containing 2 options (Contributed through command) come up.

I want to know the state (Enable/disable) of those command and also want to click on that sub-menu options using SWTBot.

i debugged the code and found that SWTBot uses getMenuItemsInternal method of ViewMenuFinder class to match the the menu options.

That method checks only MenuManager and ActionContributionItem. It doesn't do any thing for CommandContributionItems. That's why, i am not able to get my menu option. (My menu options are CommandContributionItems).

So is there any way to access CommandContributionItems????

Please help me out..
Thanks in advance...
Previous Topic:clearing the workspace in @AfterClass
Next Topic:how to use multiple @RunWith annotations
Goto Forum:
  


Current Time: Wed Nov 26 06:50:30 GMT 2014

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

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