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() {
        this("om.myplugin.myShowViewId");
    }
    public MyShowViewContributionItem(String id) {
        super(org.eclipse.ui.PlatformUI.getWorkbench().getActiveWorkbenchWindow(), id);
    }
}


<menu label="My Show View">
    <dynamic
        class="com.myplugin.MyShowViewContributionItem"
        id="com.myplugin.myShowViewId">
    </dynamic>
</menu>

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: Sun Aug 20 13:46:39 GMT 2017

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

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