Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Dynamic Menus with perspectiveExtension viewShortcut in RCP
Dynamic Menus with perspectiveExtension viewShortcut in RCP [message #453426] Mon, 31 July 2006 02:05 Go to next message
sensystems is currently offline sensystemsFriend
Messages: 24
Registered: July 2009
Junior Member
Hello, i know you can, in theory, use viewShortcut to put a menuAction
in the Window/showView menu.

Can you tellme how to enable the Windows/showView menu?

At this moment i only have one menu in my RCP "File", so when i use this
extension point i get no results since no "windows/show view" is
automatically populated.

so, how can i enable this placeholder
can i use this extension with my own File/showView menu?

thanks in advance.
Re: Dynamic Menus with perspectiveExtension viewShortcut in RCP [message #453625 is a reply to message #453426] Fri, 04 August 2006 11:44 Go to previous message
Daniel Krügler is currently offline Daniel KrüglerFriend
Messages: 853
Registered: July 2009
Senior Member
sensystems wrote:
> Hello, i know you can, in theory, use viewShortcut to put a menuAction
> in the Window/showView menu.
>
> Can you tellme how to enable the Windows/showView menu?
>
> At this moment i only have one menu in my RCP "File", so when i use this
> extension point i get no results since no "windows/show view" is
> automatically populated.
>
> so, how can i enable this placeholder
> can i use this extension with my own File/showView menu?

Add the following in your ActionAdvisor:

private final void addPerspectiveActions(MenuManager menu) {
MenuManager showViewMenuMgr = new MenuManager(<your label>, <your id>);
IContributionItem showViewMenu =
ContributionItemFactory.VIEWS_SHORTLIST.create(window);
showViewMenuMgr.add(showViewMenu);
menu.add(showViewMenuMgr);
}

Greetings from Bremen,

Daniel Krügler
Previous Topic:[3.2] exportation of the application in French
Next Topic:Modifying a view
Goto Forum:
  


Current Time: Tue Oct 15 00:26:22 GMT 2024

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

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

Back to the top