Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » General (non-technical) » Eclipse Foundation » Action visible (true or false)
Action visible (true or false) [message #24749] Sun, 02 October 2005 03:46 Go to next message
Yevgeni is currently offline Yevgeni
Messages: 18
Registered: July 2009
Junior Member
Please, help!

I have used the org.eclipse.ui.actionSets to define my action set
that is available in the Search>>"Rapid Search" menu item. Look at
snipped code from my plugin XML :

//////////////////////////////////////////////////////////// ///////////////
<extension point="org.eclipse.ui.actionSets">
<actionSet
id="com.esim.eclipse.rapid.ui.SearchActionSet"
label="Rapid Search"
visible="false">
<menu
id="org.eclipse.search.menu"
label="%RapidPLUSSearch.searchMenu.label"
path="navigate">
<groupMarker name="dialogGroup"/>
</menu>
<action

class=" com.esim.eclipse.rapid.internal.ui.search.OpenRapidSearchPag eAction "
icon="icons/full/obj16/RapidSearch.gif"
id="com.esim.eclipse.rapid.ui.actions.OpenRapidSearchPage"
label="%WorkbehchWindow.search.rapid.label"
menubarPath="org.eclipse.search.menu/dialogGroup"
style="push">
</action>
</actionSet>
</extension>

//////////////////////////////////////////////////////////// /////////////////

I want that this action is visible when my editor window is opened. To
implement this condition under which the menu item is visible, I have
used the org.eclipse.ui.actionSetPartAssociations action point. Look at
snipped code from my plugin XML :

point="org.eclipse.ui.actionSetPartAssociations">
<actionSetPartAssociation
targetID="com.esim.eclipse.rapid.ui.SearchActionSet">
<part id="com.esim.eclipse.rapid.ui.UDOEditor"/>
</actionSetPartAssociation>
</extension>

My action is always visible.

Thanks for any help!


Yevgeni
Re: Action visible (true or false) [message #24819 is a reply to message #24749] Mon, 03 October 2005 06:59 Go to previous message
Eclipse User
Originally posted by: merks.ca.ibm.com

Yevgeni,

It's best to ask this question on the platform newsgroup.


Yevgeni wrote:

> Please, help!
>
> I have used the org.eclipse.ui.actionSets to define my action set
> that is available in the Search>>"Rapid Search" menu item. Look at
> snipped code from my plugin XML :
>
> //////////////////////////////////////////////////////////// ///////////////
>
> <extension point="org.eclipse.ui.actionSets">
> <actionSet
> id="com.esim.eclipse.rapid.ui.SearchActionSet"
> label="Rapid Search"
> visible="false">
> <menu
> id="org.eclipse.search.menu"
> label="%RapidPLUSSearch.searchMenu.label"
> path="navigate">
> <groupMarker name="dialogGroup"/>
> </menu>
> <action
>
> class=" com.esim.eclipse.rapid.internal.ui.search.OpenRapidSearchPag eAction "
>
> icon="icons/full/obj16/RapidSearch.gif"
> id="com.esim.eclipse.rapid.ui.actions.OpenRapidSearchPage"
> label="%WorkbehchWindow.search.rapid.label"
> menubarPath="org.eclipse.search.menu/dialogGroup"
> style="push">
> </action>
> </actionSet>
> </extension>
>
> //////////////////////////////////////////////////////////// /////////////////
>
>
> I want that this action is visible when my editor window is opened. To
> implement this condition under which the menu item is visible, I have
> used the org.eclipse.ui.actionSetPartAssociations action point. Look
> at snipped code from my plugin XML :
>
> point="org.eclipse.ui.actionSetPartAssociations">
> <actionSetPartAssociation
> targetID="com.esim.eclipse.rapid.ui.SearchActionSet">
> <part id="com.esim.eclipse.rapid.ui.UDOEditor"/>
> </actionSetPartAssociation>
> </extension>
>
> My action is always visible.
>
> Thanks for any help!
>
>
> Yevgeni
Previous Topic:eclipse.org email addresses
Next Topic:Eclipse.org seach
Goto Forum:
  


Current Time: Thu Aug 28 21:40:22 EDT 2014

Powered by FUDForum. Page generated in 0.15629 seconds