org.eclipse.ui.editorActions mysterious behavior??? [message #157250] |
Sat, 15 November 2003 06:54 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: bob.objfac.com
Very frustrating. Three actions identically defined, but one shows the
accelerator key in the menu, two don't; two work, one doesn't...
1. Accelerator key shows in menu item and works:
plugin.xml:
<action accelerator="Ctrl+Shift+V" label="%Validate.label"
icon="icons/full/validate.gif" tooltip="%Validate.tooltip"
class="com.objfac.xmleditor.actions.XMLValidateAction"
menubarPath="com.objfac.xmleditor.topLevelMenu.xml/validateGroup "
id="com.objfac.xmleditor.topLevelMenu.xml.validate">
</action>
plugin.properties:
Validate.label=&Validate@Ctrl+Shift+V
Validate.tooltip=Validate document and show errors
2. Accelerator key doesn't show in menu item, but it works.
plugin.xml:
<action accelerator="Ctrl+Shift+D" label="%OpenDefinition.label"
tooltip="%OpenDefinition.tooltip"
class="com.objfac.xmleditor.actions.OpenDefinitionAction"
menubarPath="com.objfac.xmleditor.topLevelMenu.xml/navigationGroup "
id="com.objfac.xmleditor.topLevelMenu.xml.OpenDefinition">
</action>
plugin.properties:
OpenDefinition.label=Open &Definition@Ctrl+Shift+D
OpenDefinition.tooltip=Open definition of currently selected identifier
3. Accelerator key doesn't show in menu item and doesn't work, either.
plugin.xml:
<action accelerator="Ctrl+Shift+U" label="%OpenURI.label"
tooltip="%OpenURI.tooltip"
class="com.objfac.xmleditor.actions.OpenURIAction"
menubarPath="com.objfac.xmleditor.topLevelMenu.xml/navigationGroup "
id="com.objfac.xmleditor.topLevelMenu.xml.OpenURI">
</action>
plugin.properties:
OpenURI.label=Open &URI@Ctrl+Shift+U
OpenURI.tooltip=Open currently selected URI
This is in 2.1.2 and previous.
Bob Foster
|
|
|
Re: org.eclipse.ui.editorActions mysterious behavior??? [message #157263 is a reply to message #157250] |
Sat, 15 November 2003 09:28 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: bob.objfac.com
Part of the problem is some weirdshit caching behavior on the part of PDE.
After numerous launches, the Ctrl+Shift+D accelerator started showing up in
the menu. But when I changed the OpenURI menu label to:
OpenURI.label=Open &URL@Ctrl+Shift+U
("URL" instead of "URI") the menu persistently shows "Open URI". Only by
renaming the runtime-workspace folder and relaunching in PDE can I get the
menu to properly show "Open URL". (Which also says it isn't my bug.)
However, even then, the accelerator does not appear in the menu item.
So now I have two questions:
a) Why do I have to make a new runtime-workspace to get a menu label to
change?
b) Why doesn't case 3 below work?
Bob Foster
"Bob Foster" <bob@objfac.com> wrote in message
news:bp4hie$lu7$1@eclipse.org...
> Very frustrating. Three actions identically defined, but one shows the
> accelerator key in the menu, two don't; two work, one doesn't...
>
> 1. Accelerator key shows in menu item and works:
>
> plugin.xml:
>
> <action accelerator="Ctrl+Shift+V" label="%Validate.label"
> icon="icons/full/validate.gif" tooltip="%Validate.tooltip"
> class="com.objfac.xmleditor.actions.XMLValidateAction"
> menubarPath="com.objfac.xmleditor.topLevelMenu.xml/validateGroup "
> id="com.objfac.xmleditor.topLevelMenu.xml.validate">
> </action>
>
> plugin.properties:
>
> Validate.label=&Validate@Ctrl+Shift+V
> Validate.tooltip=Validate document and show errors
>
> 2. Accelerator key doesn't show in menu item, but it works.
>
> plugin.xml:
>
> <action accelerator="Ctrl+Shift+D" label="%OpenDefinition.label"
> tooltip="%OpenDefinition.tooltip"
> class="com.objfac.xmleditor.actions.OpenDefinitionAction"
> menubarPath="com.objfac.xmleditor.topLevelMenu.xml/navigationGroup "
> id="com.objfac.xmleditor.topLevelMenu.xml.OpenDefinition">
> </action>
>
> plugin.properties:
>
> OpenDefinition.label=Open &Definition@Ctrl+Shift+D
> OpenDefinition.tooltip=Open definition of currently selected identifier
>
> 3. Accelerator key doesn't show in menu item and doesn't work, either.
>
> plugin.xml:
>
> <action accelerator="Ctrl+Shift+U" label="%OpenURI.label"
> tooltip="%OpenURI.tooltip"
> class="com.objfac.xmleditor.actions.OpenURIAction"
> menubarPath="com.objfac.xmleditor.topLevelMenu.xml/navigationGroup "
> id="com.objfac.xmleditor.topLevelMenu.xml.OpenURI">
> </action>
>
> plugin.properties:
>
> OpenURI.label=Open &URI@Ctrl+Shift+U
> OpenURI.tooltip=Open currently selected URI
>
> This is in 2.1.2 and previous.
>
> Bob Foster
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03289 seconds