Skip to main content


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 #505353] Tue, 29 December 2009 20:45 Go to next message
Eclipse UserFriend
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?
Re: actionsSet is visible in all perspectives [message #505361 is a reply to message #505353] Tue, 29 December 2009 18:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ddd.asd.com

Problem solved:

<visibleWhen checkEnabled="false">
<with variable="activeWorkbenchWindow.activePerspective">
<equals
value="org.eclipse.birt.report.designer.ui.ReportPerspective "/>
</with>
</visibleWhen>




"klm" <ddd@asd.com> wrote in message news:hhdpp4$fok$1@build.eclipse.org...
>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?
Re: actionsSet is visible in all perspectives [message #603893 is a reply to message #505353] Tue, 29 December 2009 23:19 Go to previous message
Eclipse UserFriend
Originally posted by: ddd.asd.com

Problem solved:

<visibleWhen checkEnabled="false">
<with variable="activeWorkbenchWindow.activePerspective">
<equals
value="org.eclipse.birt.report.designer.ui.ReportPerspective "/>
</with>
</visibleWhen>




"klm" <ddd@asd.com> wrote in message news:hhdpp4$fok$1@build.eclipse.org...
>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:One command and handler per menu entry?
Next Topic:Class Loader Issue
Goto Forum:
  


Current Time: Sat Apr 20 01:11:08 GMT 2024

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

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

Back to the top