Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » actionsSet is visible in all perspectives
actionsSet is visible in all perspectives [message #603886] Tue, 29 December 2009 15:45
Eclipse User
Originally posted by: ddd.asd.com

I would like to create an actionSet that contains a menu which is only
visible when the Reporting Perspective is choosen. I have done the
following:


<extension point="org.eclipse.ui.perspectiveExtensions">
<perspectiveExtension
targetID="org.eclipse.birt.report.designer.ui.ReportPerspective ">
<actionSet
id="DropDownButton.actionSet">
</actionSet>

</perspectiveExtension>
</extension>


<extension
point="org.eclipse.ui.actionSets">
<actionSet
id="DropDownButton.actionSet"
label="MyFirst ActionSet"
visible="false">
<menu
id="DropDownButton.menu"
label="MyFirstMenu"
path="additions">
<groupMarker
name="content">
</groupMarker>
<separator
name="additions">
</separator>
</menu>
<action
id="DropDownButton.action"
label="RunMyApplication"
menubarPath="DropDownButton.menu/content"
style="push">
</action>
</actionSet>
</extension>


I have explicitly set visible to "false" based on the steps (step i)
described here:

http://www-10.lotus.com/ldd/lewiki.nsf/dx/dqx1lpp_ui_addinga ndcontributingmenus.htm


but when I launch the plugin the menu appears in all perspectives. How do I
make the menu only appear when the ReportPerspective is active?
Previous Topic:issues with source plug-ins / features
Next Topic:One command and handler per menu entry?
Goto Forum:
  


Current Time: Fri Aug 29 12:22:14 EDT 2014

Powered by FUDForum. Page generated in 0.14275 seconds