|Want to access CommandContributionItem through SWTBot [message #708070]
||Tue, 02 August 2011 12:27
| Pavan Missing name
Registered: August 2011
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...
Powered by FUDForum
. Page generated in 0.04982 seconds