Community
Participate
Working Groups
I20070427-0010 I get these 2 messages on every startup. They are very hard to read without proper formatting. Warning Fri Apr 27 14:46:30 CEST 2007 A conflict occurred for ALT+SHIFT+Q Z: [Binding(ALT+SHIFT+Q Z,ParameterizedCommand(Command(org.eclipse.team.ui.GenericHistoryView,History,Show the Team History view,Category(org.eclipse.ui.category.views,Views,Commands for opening views,true),org.eclipse.ui.internal.registry.ShowViewHandler@155bb17,null,null,true),null),org.eclipse.ui.defaultAcceleratorConfiguration,org.eclipse.ui.contexts.window,null,null,system), Binding(ALT+SHIFT+Q Z,ParameterizedCommand(Command(org.eclipse.jdt.jeview.views.JavaElementView,JavaElementView,JavaElement View,Category(org.eclipse.ui.category.views,Views,Commands for opening views,true),org.eclipse.ui.internal.registry.ShowViewHandler@16e1f2f,null,null,true),null),org.eclipse.ui.defaultAcceleratorConfiguration,org.eclipse.ui.contexts.window,null,null,system)] Warning Fri Apr 27 14:46:30 CEST 2007 A conflict occurred for CTRL+NUMPAD_DIVIDE: [Binding(CTRL+NUMPAD_DIVIDE,ParameterizedCommand(Command(com.oti.zrh.tree.key.collapseall,Tree Collapse All,Collapses the whole tree,Category(org.eclipse.ui.category.widget,Widget,null,true),com.oti.zrh.tree.key.CollapseAllHandler,null,null,true),null),org.eclipse.ui.defaultAcceleratorConfiguration,org.eclipse.ui.contexts.dialogAndWindow,null,null,system), Binding(CTRL+NUMPAD_DIVIDE,ParameterizedCommand(Command(com.oti.zrh.tree.key.collapseall,Tree Collapse All,Collapses the whole tree,Category(org.eclipse.ui.category.widget,Widget,null,true),com.oti.zrh.tree.key.CollapseAllHandler,null,null,true),null),org.eclipse.ui.defaultAcceleratorConfiguration,org.eclipse.ui.contexts.dialogAndWindow,null,null,system)]
The first entry is due to two plug-ins using the same keybinding. The second entry is a duplicate key binding definition in the same plug-in. So, they are both justified. I'm not sure if it is a good idea to log these all the time. In practice, people will install plug-ins from different sources, and they may not have a chance to get the conflicts fixed in a reasonable timeframe. I think it would be more helpful if the keybindings page offered a quick way to find (and resolve) conflicts. If you really want to keep these messages, then you should - format them with linebreaks and indentation, and - subsume all these log entries under a common parent entry, such that the Error Log view can fold them away.
I got some more (different ones): !ENTRY org.eclipse.jface 2 0 2007-04-27 12:01:45.729 !MESSAGE A conflict occurred for CTRL+W: [Binding(CTRL+W,ParameterizedCommand(Command(org.eclipse.help.ui.closeTray,Close User Assistance Tray,Close the user assistance tray containing context help information and cheat sheets.,Category(org.eclipse.ui.category.help,Help,null,true),org.eclipse.help.ui.internal.CloseHelpTrayHandler,null,null,true),null),org.eclipse.ui.defaultAcceleratorConfiguration,org.eclipse.ui.contexts.dialog,null,null,system), Binding(CTRL+W,ParameterizedCommand(Command(org.eclipse.ui.file.close,Close,Close the active editor,Category(org.eclipse.ui.category.file,File,null,true),org.eclipse.ui.internal.CloseEditorHandler@332b9a,null,null,true),null),org.eclipse.ui.defaultAcceleratorConfiguration,org.eclipse.ui.contexts.window,null,null,system)] !ENTRY org.eclipse.jface 2 0 2007-04-27 12:01:45.729 !MESSAGE A conflict occurred for CTRL+F4: [Binding(CTRL+F4,ParameterizedCommand(Command(org.eclipse.help.ui.closeTray,Close User Assistance Tray,Close the user assistance tray containing context help information and cheat sheets.,Category(org.eclipse.ui.category.help,Help,null,true),org.eclipse.help.ui.internal.CloseHelpTrayHandler,null,null,true),null),org.eclipse.ui.defaultAcceleratorConfiguration,org.eclipse.ui.contexts.dialog,null,null,system), Binding(CTRL+F4,ParameterizedCommand(Command(org.eclipse.ui.file.close,Close,Close the active editor,Category(org.eclipse.ui.category.file,File,null,true),org.eclipse.ui.internal.CloseEditorHandler@332b9a,null,null,true),null),org.eclipse.ui.defaultAcceleratorConfiguration,org.eclipse.ui.contexts.window,null,null,system)]
*** Bug 184467 has been marked as a duplicate of this bug. ***
I updated the handler activation conflict as well: !ENTRY org.eclipse.jface 2 0 2007-04-27 14:07:20.849 !MESSAGE Keybinding conflicts occurred. They may interfere with normal accelerator operation. !SUBENTRY 1 org.eclipse.jface 2 0 2007-04-27 14:07:20.849 !MESSAGE A conflict occurred for F11: Binding(F11, ParameterizedCommand(Command(org.eclipse.debug.ui.commands.DebugLast,Debug Last Launched, Debug the last launch in debug mode, Category(org.eclipse.debug.ui.category.run,Run/Debug,Run/Debug command category,true), null, null,null,true),null), org.eclipse.ui.defaultAcceleratorConfiguration, org.eclipse.ui.contexts.window,null,null,system) Binding(F11, ParameterizedCommand(Command(org.eclipse.jdt.ui.edit.text.java.add.javadoc.comment,Add Javadoc Comment, Add a Javadoc comment stub to the member element, Category(org.eclipse.jdt.ui.category.source,Source,Java Source Actions,true), LegacyHandlerWrapper(ActionHandler(action=org.eclipse.jdt.ui.actions.AddJavaDocStubAction@1e3f34c)), null,null,true),null), org.eclipse.ui.defaultAcceleratorConfiguration, org.eclipse.ui.contexts.window,null,null,user) I've opened bug 184502 to track comment #2 PW
In I20070501-0010 PW
Paul, the message is still pretty unreadable on WindowsXP when the .log file is opened in editors that only accept the official CRLF as line delimiter. Since writing a .log entry is like writing to a file you need to use the right line delimiter and can't just use '\n'. Simply replace your StringBuffer with a BufferedWriter: StringWriter sw= new StringWriter(); BufferedWriter bw= new BufferedWriter(sw); bw.write(someString); bw.newline(); bw.write(someOtherString); bw.newline(); ... bw.flush(); sw.toString; Do you want a new bug for this or should I reopen this one?
Released to HEAD PW
It will be included today when UI re-submits PW
Verified using I20070503-0010.
(In reply to comment #1) I've opened bug 185523 for logging all the time and bug 185518 for showing conflicts on the Keys pref page.