Only show menu-contribution in selected view? [message #606185] |
Mon, 28 June 2010 11:17 |
js Missing name Messages: 73 Registered: July 2009 |
Member |
|
|
I am trying to create a menu contribution that only gets shown when the report designer view is active.
I have created a PDE project from the Hello, World Command and added the following to the plugin.xml file:
<menuContribution
locationURI="menu:org.eclipse.ui.main.menu?after=additions" >
<menu
label="Sample Menu"
mnemonic="M"
id="test_plugin.menus.sampleMenu">
<command
commandId="test_plugin.commands.sampleCommand"
mnemonic="S"
id="test_plugin.menus.sampleCommand">
</command>
<visibleWhen checkEnabled="false">
<with variable="activeWorkbenchWindow.activePerspective">
<equals value="org.eclipse.birt.report.designer.ui.ReportPerspective "/>
</with>
</visibleWhen>
</menu>
</menuContribution>
It works fine when I launch the PDE project from the "overview" tab in the project.
But when I export the plugin and put it in the "dropins" folder at restart eclipse it does not work.
Any ideas on why it only works inside the eclipse PDE project and not when exported?
|
|
|
Powered by
FUDForum. Page generated in 0.02881 seconds