Home » Eclipse Projects » Eclipse Platform » Problem with key bindings
Problem with key bindings [message #933685] |
Fri, 05 October 2012 08:38 |
Mikael Petterson Messages: 158 Registered: July 2009 |
Senior Member |
|
|
Hi,
I have defined a Ctrl+S key binding for a view. When I run it I get a popup ( lower left corner) see attached file.
Then in the console I get the following:
!ENTRY org.eclipse.jface 2 0 2012-10-05 10:30:57.482
!MESSAGE Keybinding conflicts occurred. They may interfere with normal accelerator operation.
!SUBENTRY 1 org.eclipse.jface 2 0 2012-10-05 10:30:57.482
!MESSAGE A conflict occurred for CTRL+S:
Binding(CTRL+S,
ParameterizedCommand(Command(net.sourceforge.eclipseccase.ui.command.savecs,Save CS,
Save Config Spec,
Category(net.sourceforge.eclipseccase.category,ClearCase,ClearCase actions,true),
,
,,true),null),
org.eclipse.ui.defaultAcceleratorConfiguration,
org.eclipse.ui.contexts.window,,,system)
Binding(CTRL+S,
ParameterizedCommand(Command(org.eclipse.ui.file.save,Save,
Save the current contents,
Category(org.eclipse.ui.category.file,File,null,true),
org.eclipse.ui.internal.handlers.SaveHandler@13e9963,
,,true),null),
org.eclipse.ui.defaultAcceleratorConfiguration,
org.eclipse.ui.contexts.window,,,system)
I have defined the Ctrl+S to be enabled for that specific view.
Is this not same definitions but for different contexts?
Another question is how I can provide values from my View class to the command handler?
br,
//mike
<!-- Command Handlers and other definitions -->
<extension
point="org.eclipse.ui.handlers">
<handler
class="net.sourceforge.eclipseccase.ui.commands.SaveCsHandler"
commandId="net.sourceforge.eclipseccase.ui.command.savecs">
<activeWhen>
<reference
definitionId="net.sourceforge.eclispeccase.ui.contributions.csview">
</reference>
</activeWhen>
</handler>
</extension>
<extension
point="org.eclipse.core.expressions.definitions">
<definition
id="net.sourceforge.eclispeccase.ui.contributions.csview">
<with
variable="activePartId">
<equals
value="net.sourceforge.eclipseccase.views.ConfigSpecView">
</equals>
</with>
</definition>
</extension>
<extension point="org.eclipse.ui.bindings">
<key commandId="net.sourceforge.eclipseccase.ui.command.savecs"
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
sequence="Ctrl+S">
</key>
</extension>
-
Attachment: save_cs.JPG
(Size: 16.52KB, Downloaded 303 times)
|
|
| |
Goto Forum:
Current Time: Sun Apr 28 02:33:48 GMT 2024
Powered by FUDForum. Page generated in 0.02755 seconds
|