Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Menu - ActionBarAdvisor
Menu - ActionBarAdvisor [message #447771] Fri, 14 April 2006 21:47 Go to next message
Dhiresh Patel  is currently offline Dhiresh Patel Friend
Messages: 86
Registered: July 2009
Member
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 22:01 Go to previous message
Stefan Zugal is currently offline Stefan ZugalFriend
Messages: 59
Registered: July 2009
Member
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: Thu Dec 26 11:43:26 GMT 2024

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

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

Back to the top