Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Re: ActionSet
Re: ActionSet [message #91103] Thu, 10 July 2003 16:21
Eclipse UserFriend
Originally posted by: dfhuynh.ai.mit.edu

Never mind again. Setting visible="true" does the job.

Thanks anyhow.

David


"David Huynh" <dfhuynh@ai.mit.edu> wrote in message
news:beid58$nga$1@eclipse.org...
> Hi,
>
> I'm trying to make a menu command in the Navigate menu with the following
> code in plugin.xml:
>
> <extension
> point="org.eclipse.ui.commands">
> <command
> id="edu.mit.lcs.haystack.adt.commands.openResource"
> category="org.eclipse.ui.category.navigate"
> name= "%commands.openResource.name"
> description= "%commands.openResource.description">
> </command>
>
> <keyBinding
> string="Ctrl+Shift+A"
> scope="org.eclipse.ui.globalScope"
> command="edu.mit.lcs.haystack.adt.commands.openResource"
> configuration="org.eclipse.ui.defaultAcceleratorConfiguration ">
> </keyBinding>
> </extension>
>
> <extension point="org.eclipse.ui.actionSets">
> <actionSet
> id="edu.mit.lcs.haystack.adt.AdenineActionSet"
> label="Adenine Action Set"
> visible="false"
> description="Adenine action set">
>
> <action id="edu.mit.lcs.haystack.adt.actions.openResource"
> icon="icons/editor.gif"
> menubarPath="navigate"
> toolbarPath="additions"
> label="%actions.openResource.label"
> tooltip="%actions.openResource.tooltip"
> definitionId="edu.mit.lcs.haystack.adt.commands.openResource "
>
> class="edu.mit.lcs.haystack.adt.actions.OpenResourceActionDelegate "/>
> </actionSet>
> </extension>
>
> and the following code in plugin.properties:
>
> commands.openResource.name= Open Adenine Resource
> commands.openResource.description= Open Adenine resource
> actions.openResource.label= Open Adenine Resource
> actions.openResource.tooltip= Open Adenine resource
>
> The command shows up fine in the Preferences dialog -> Workbench ->
Keys ->
> Navigate, but never shows up in the Navigate menu or on the toolbar. Does
> anyone know why?
>
> In fact, I got the example from this article
>
http://www.eclipse.org/articles/Article-action-contribution/ Contributing%20A
> ctions%20to%20the%20Eclipse%20Workbench.html
> and the menu commands it adds don't show up either. There is no error in
> Eclipse's log.
>
> I traced around JDT's action sets and couldn't find anything different
from
> my own code.
>
> I'm running Version: 2.1.1, Build id: 200306271545.
>
> Many thanks.
>
> David
>
>
Previous Topic:Code coverage for Eclipse plugins
Next Topic:basic framework question
Goto Forum:
  


Current Time: Wed Jul 24 13:36:15 GMT 2024

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

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

Back to the top