Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Menu - ActionBarAdvisor
Menu - ActionBarAdvisor [message #447771] Fri, 14 April 2006 17:47 Go to next message
Eclipse UserFriend
In my ApplicationActionBarAdvisor I have following code

MenuManager viewMenu = new MenuManager(Messages.Show_View, "views");
ActionFactory.IWorkbenchAction showViews =
ActionFactory.SHOW_VIEW_MENU.create(window);
viewMenu.add(showViews );

I was hoping to show all the views - however show view menu is greyed out

How do I use above to get to my views?

Dhiresh
Re: Menu - ActionBarAdvisor [message #447781 is a reply to message #447771] Sat, 15 April 2006 18:01 Go to previous message
Eclipse UserFriend
I don't know how to solve your problem, but ;-):

You could use:
showViews = ContributionItemFactory.VIEWS_SHORTLIST.create(window);

views shown in this shortlist can be added by calling
layout.addShowViewShortcut("ViewID");

in your IPerspectiveFactory - the list depends on the perspective which
is avtivated.

Regards,
Stefan

Dhiresh schrieb:
> In my ApplicationActionBarAdvisor I have following code
>
> MenuManager viewMenu = new MenuManager(Messages.Show_View, "views");
> ActionFactory.IWorkbenchAction showViews =
> ActionFactory.SHOW_VIEW_MENU.create(window);
> viewMenu.add(showViews );
>
> I was hoping to show all the views - however show view menu is greyed out
>
> How do I use above to get to my views?
>
> Dhiresh
>
Previous Topic:sharing objects in an RCP application
Next Topic:Access to ActionbarAdvisor to get list of workbench menus/menu items
Goto Forum:
  


Current Time: Sun Jul 06 15:46:38 EDT 2025

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

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

Back to the top