shortcut keys in context menu disappear in second occurrence [message #465807] |
Thu, 05 April 2007 18:08 |
No real name Messages: 5 Registered: July 2009 |
Junior Member |
|
|
I have shortcut keys created successfully in a context menu of an editor.
When I first bring up the context menu, I can see the shortcut keys right
beside the menuitem text, e.g. "action1 Ctrl+Shift+F", but if I leave
the current editor, and bring up another kind of editor, that is to make
the current editor to be out of focus, then come back to the previous
editor, and bring up the context menu again, the shortcut keys for
menutiems disappear, the context menu just show "action1 ". Is
this a bug in eclipse or it is something that I have not done correctly?
Below is what I did.
In plugin xml:
<extension
point="org.eclipse.ui.editors">
<editor
name="%Editor.name"
default="false"
extensions="abc"
contributorClass="...AbcActionContributor"
class="...AbcEditor"
id="...Abc"
</editor>
</extension>
<extension
point="org.eclipse.ui.contexts">
<context
name="%KeyBindings.context.esql.label"
description="%KeyBindings.context.esql.description"
parentId="org.eclipse.ui.textEditorScope"
id="com.ibm.etools.mft.esql.editor.context">
</context>
</extension>
<extension
point="org.eclipse.ui.commands">
<category
name="%KeyBindings.label"
description="%KeyBindings.description"
id="abc.editor.category">
</category>
<command
name="%KeyBindings.command.comment.label"
description="%KeyBindings.command.comment.description"
categoryId="abc.editor.category"
id="abc.editor.comment">
</command>
</extension>
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03700 seconds