I am expanding the eclipse platform with my own view. This view contains one action on the toolbar.
I want to create a key binding shortcut associated with Ctrl + R for these actions. To do this, I created my.context (my context extends the context of org.eclipse.ui.window), my.command, and my.command.binding extensions.
Then, when my look 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 open in a debugging 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 ....
Are there several active contexts at the moment?
If I change my shortcut to Ctrl + C , for example, I do not have this warning, but Ctrl + C is also attached to another command (copy) in the debugging context ... why?
I did not find clear ressources delaing about Eclipse contexts on the web ...
Thank you in advance
Mana