Accessing "View Menu"? [message #536684] |
Sat, 29 May 2010 20:05 |
|
I need help accessing the "View Menu", the triangle icon next to the
minimize and maximize icons. I need to be able to test things like
presence of menu items and to click them to confirm their action. An
example would be great.
Thanks,
Craig
|
|
|
|
|
Re: Accessing "View Menu"? [message #538532 is a reply to message #536684] |
Mon, 07 June 2010 21:29 |
|
Thanks for replying but this is still not working for me. I've debugged through to ViewMenuFinder#getMenuItemsInternal where it iterates over the menu items looking for the match. Its two checks for MenuManager and ActionContributionItem both fail so my menu item is not found. My item is in the list iterated over but it is a SubContributionItem with an "innerItem" that is the sought ActionContributionItem.
If it helps, the menu item I'm looking for is an Action contributed to the PropertySheet via a custom IPropertySheetPage implementation's #setActionBars. That method is provided an IActionBars from which I get the IMenuManager to which I add the Action.
I'm wondering if the nature of PageBooks and how they contribute to the host view's menu is a factor here. Either way, I can't see how that method can return my menu item as is. So I guess either I'm doing something really wrong or I've found a bug.
Any ideas greatly appreciated.
Craig
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05431 seconds