Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 330462

Summary: Key bindings of a disabled Command Group interfere with enabled key bindings
Product: [Eclipse Project] Platform Reporter: Alan Boxall <boxall>
Component: UIAssignee: Platform-UI-Inbox <Platform-UI-Inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: pawel.1.piech, remy.suen
Version: 4.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Screen cap of Command Group none

Description Alan Boxall CLA 2010-11-17 10:30:36 EST
Build Identifier: M20100909-0800

This might best be described using an example.

While a debug session is active (doesn't matter what type of debug session) the F5 key becomes "Step into" globally.  Even if there are no debug views in the current perspective.  While this might seem like a feature, the problem is the conflict with F5 - refresh.  Many views rely on F5 for refresh and as long as a debug session is running it becomes Step Into.

If I customize the perspective to disable the debug command group (includes Step Into) F5 doesn't step into OR refresh. It acts as if it is bound to nothing.

NOTE: The Navigator view gets around this problem by intercepting the F5 key and forcing it to refresh.

I have included a screen cap of the Command Group Availability tab clearly showing that F5 is not available as step into.  
But as this bug shows it isn't available as the normal binding of refresh.

Debugging the platform code I discovered that F5 is bound to Step Into but when checked against the command group availability it is treated as disabled.  I would expect the binding to step into to not have occurred in the first place.

The behavior should allow F5 to stay bound to refresh.



Reproducible: Always

Steps to Reproduce:
1.Open Resource perspective "Customize Perspective" dialog.  (RMB on Resource perspective tab)
2.Choose "Command Groups Availability" tab.  
3.Ensure that the "Debug" command group is unchecked.
4.Close dialog and switch to the Java perspective.
5.Start a debug session (e.g. java debug) such that it stops at a breakpoint.
6.Make sure to switch to the debug perspective if prompted.
7.During the debug session the F5 key becomes "Step Into"
8.Switch to the Resource perspective and with focus in the Project Explorer view press F5 (it will do nothing)
9.Switch to the Debug perspective and terminate the debug session 
10.Switch back to the Resource perspective and press F5 in the Project Explorer view and it will refresh.
Comment 1 Alan Boxall CLA 2010-11-17 10:40:32 EST
Created attachment 183307 [details]
Screen cap of Command Group
Comment 2 Paul Webster CLA 2010-11-17 10:55:02 EST
w.r.t. disabling the command group, that simply leaves the Step Into command with no handler.  Disabling behaviour won't effect key bindings.

PW

*** This bug has been marked as a duplicate of bug 246483 ***