Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 137898 - [Contributions] Icon tool tips should also show key bindings in Debug view
Summary: [Contributions] Icon tool tips should also show key bindings in Debug view
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.2   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 3.4 M3   Edit
Assignee: Paul Webster CLA
QA Contact:
URL:
Whiteboard: hasPatch
Keywords:
: 120459 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-04-21 04:25 EDT by Juergen Weber CLA
Modified: 2007-10-30 09:53 EDT (History)
8 users (show)

See Also:


Attachments
Fix (4.44 KB, patch)
2007-08-22 14:37 EDT, Markus Keller CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Juergen Weber CLA 2006-04-21 04:25:39 EDT
The tool tips for icons in the tool bar should also display the key bindings of the actions.

E.g. the tooltip [Step Into] should be [Step Into (F5)]

cf. Preferences -> Keys(Experimental) : there is the icon and the binding
Comment 1 Eric Moffatt CLA 2006-04-21 09:42:59 EDT
While the implementation would be done by me or Paul the decision is workbench-level so on to you Tod...
Comment 2 Benjamin Muskalla CLA 2006-08-22 10:23:04 EDT
This is a great enhancement which I missed since the beginnging of my eclipse-tour. 1+ for this.

Moffat and Paul: tell me if you don't have the time for this one, then i'll look into that and provide a patch
Comment 3 Markus Keller CLA 2007-03-20 14:09:15 EDT
Another dup of bug 46469?
Comment 4 Tod Creasey CLA 2007-06-18 16:32:20 EDT
There are currently no plans to work on this although we would be happy to review a a patch.
Comment 5 Markus Keller CLA 2007-06-19 06:17:21 EDT
My patch to bug 46469 added keybindings to tooltips in workbench toolbars. I've verified in I20070615-1200 that it also works in view toolbars (assigned a shortcut to JUnit's Rerun Test action).

Moving to Debug to see why the tooltips don't appear in the Debug view initially. They do appear, however, when I close all instances of the Debug view and the reopen it.
Comment 6 Markus Keller CLA 2007-06-28 08:21:35 EDT
*** Bug 120459 has been marked as a duplicate of this bug. ***
Comment 7 Curtis Windatt CLA 2007-08-17 14:28:29 EDT
Investigate for 3.4.
Comment 8 Curtis Windatt CLA 2007-08-22 12:42:14 EDT
When the debug view is opened for the first time, nothing is being debugged.  The keybindings for resume/suspend/etc are only active in the "debugging" context.  So when the view is opened and the tooltips computed, there is no active key binding.

Tooltips are not recomputed unless the view is closed/reopened.  If the view is opened when the debugging context is active, the keybindings may be active, resulting in tooltips with the keys.

Don't know what debug can do about this, moving to platform UI for comment.
Comment 9 Markus Keller CLA 2007-08-22 14:37:02 EDT
Created attachment 76685 [details]
Fix

The problem is that ExternalActionManager.CommandCallback.addPropertyChangeListener(..) silently throws away the previous listeners if the same command is registered more than once. This assumption makes little sense, since the same command can sensibly be bound to multiple actions.

Fortunately, the fix is not a breaking API change, since it just fixes a previously undefined case.
Comment 10 Curtis Windatt CLA 2007-08-22 15:04:38 EDT
Tested the patch.  Works great.  Tooltips update properly to show keybindings when debugging.
Comment 11 Markus Keller CLA 2007-09-17 10:25:52 EDT
Does anything speak against a target milestone of 3.4 M3 for releasing the patch?
Comment 12 Paul Webster CLA 2007-09-24 15:25:27 EDT
Released to HEAD >20070924

with a slight fix to CommandCallback#removePropertyChangeListener(*)

PW
Comment 13 Markus Keller CLA 2007-09-25 04:55:46 EDT
> with a slight fix to CommandCallback#removePropertyChangeListener(*)

<blush> Sorry for this leak and thanks for the careful review!
Comment 14 Paul Webster CLA 2007-10-30 09:53:09 EDT
In I20071030-0010
PW