Adding Show View menu in plugin.xml [message #707902] |
Tue, 02 August 2011 07:45 |
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?
|
|
|
Powered by
FUDForum. Page generated in 0.02847 seconds