Hi all,
I am extending eclipse's platform with my own view. This view contains one action in its toolbar.
I want to create a key binding shortcut associated to Ctrl+R for this actions. To do that I created a my.context (my context extends org.eclipse.ui.window context), my.command and a my.command.binding extensions.
Then when my view is created, in the createPartControl(*) method, I activate my context:
IContextService contextService = (IContextService) getSite()
.getService(IContextService.class);
contextService.activateContext(VIEW_CONTEXT_ID);
When my view is opened in a debug perspective I have the following warning:
Warning: A conflict occurred for CTRL+R:
Binding(CTRL+R,
ParameterizedCommand(Command(org.eclipse.debug.ui.commands.RunToLine,Run to Line,
Resume and break when execution reaches the current line,
Category(org.eclipse.debug.ui.category.run,Run/Debug,Run/Debug command category,true),
ActionDelegateHandlerProxy(null,org.eclipse.debug.internal.ui.actions.RetargetRunToLineAction),
,,true),null),
org.eclipse.ui.defaultAcceleratorConfiguration,
org.eclipse.debug.ui.debugging,,,system)
Binding(CTRL+R,
ParameterizedCommand(Command(RestoreAction,Restore Chart (T-Charts),
Restore the initial chart display,
Category(TChartsActions,T-Charts Actions,null,true),
ActionHandler(com.st.tcharts.internal.actions.RestoreChartAction@1997b8a),
,,true),null),
org.eclipse.ui.defaultAcceleratorConfiguration,
com.st.tcharts.ui.view,,,system)
I am not sure to understand why I have this warning ....
Is there several active contexts at a given time ?
If I change my shortcut to Ctrl+C for example, I don't have this warning but Ctrl+C is also binded to another command (copy) in the debugg context ... why ?
I didn't find clear ressources delaing about Eclipse contexts on the web ...
Thanks in advance
Manu