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 03:45
Alexey Romanov is currently offline Alexey Romanov
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:Integration of Apache HttpClient 4.1.1 to a RCP client
Next Topic:Browser in RCP application triggers multiple combination on key strokes
Goto Forum:
  


Current Time: Fri Apr 18 21:58:38 EDT 2014

Powered by FUDForum. Page generated in 0.04219 seconds