Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Adding Show View menu in plugin.xml
Adding Show View menu in plugin.xml [message #707902] Tue, 02 August 2011 07:45
Alexey Romanov is currently offline Alexey RomanovFriend
Messages: 263
Registered: May 2010
Senior Member
I want to add Show View menu to my RCP application via plugin.xml (so that I can control its placement). At Stack Overflow this solution was given:
public class MyShowViewContributionItem extends org.eclipse.ui.internal.ShowViewMenu {
    public MyShowViewContributionItem() {
    public MyShowViewContributionItem(String id) {
        super(org.eclipse.ui.PlatformUI.getWorkbench().getActiveWorkbenchWindow(), id);

<menu label="My Show View">

However, after doing this (and adding <viewShortcut>s) the item is disabled and has label "<No applicable views>". How can I fix this?
Previous Topic:CommonNavigator context menu issue
Next Topic:Detached views to be brought up independently
Goto Forum:

Current Time: Thu Apr 27 00:11:45 GMT 2017

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

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