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

Bug 317182

Summary: Run/Debug toolbar buttons have no hover
Product: [Eclipse Project] Platform Reporter: Dani Megert <daniel_megert>
Component: DebugAssignee: Platform-Debug-Inbox <platform-debug-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: curtis.windatt.public, daniel_megert, darin.eclipse, emoffatt, markus.kell.r, Michael_Rennie, pawel.1.piech, pwebster, remy.suen, susan
Version: 4.0   
Target Milestone: 4.2 M7   
Hardware: All   
OS: All   
Whiteboard:

Description Dani Megert CLA 2010-06-17 10:28:43 EDT
http://download.eclipse.org/e4/sdk/drops/I20100616-2127/index.php.

The few toolbar buttons that appear have no hovers.
Comment 1 Remy Suen CLA 2010-06-17 10:51:00 EDT
Dani, by "hover" you mean no tooltips, right?
Comment 2 Dani Megert CLA 2010-06-17 10:59:47 EDT
>Dani, by "hover" you mean no tooltips, right?
Yes.
Comment 3 Remy Suen CLA 2010-06-17 13:30:43 EDT
The renderer was only checking the model for a tooltip. It should be considering the command if it has an associated command.
Comment 4 Dani Megert CLA 2010-06-18 02:18:33 EDT
In which build will I be able to verify this?
Comment 5 Remy Suen CLA 2010-06-18 05:32:00 EDT
(In reply to comment #4)
> In which build will I be able to verify this?

When Paul posts the link to the matching 4.0 SDK of last night's build, it should be there.
Comment 6 Remy Suen CLA 2010-06-18 07:15:05 EDT
(In reply to comment #5)
> When Paul posts the link to the matching 4.0 SDK of last night's build, it
> should be there.

Or not...
Comment 7 Remy Suen CLA 2010-06-18 07:24:47 EDT
It works in my inner but not my outer. I even tried a new workspace for my outer and it didn't work. I'll look at it again on the weekend.
Comment 8 Eric Moffatt CLA 2010-06-21 13:33:46 EDT
Marking as FIXED in I20100618-1748. The (still few) tool items we have now show tooltips...
Comment 9 Dani Megert CLA 2010-07-05 04:56:59 EDT
In I20100701-1105 this still does not work for several buttons, e.g. 'Search', all JDT new wizards, Debug buttons, ...
Comment 10 Susan McCourt CLA 2010-07-08 17:39:05 EDT
In  I20100707-2006, I see tooltips for everything except run and debug.  (The tooltips do show for search, jdt new wizards, etc.).
Comment 11 Remy Suen CLA 2010-10-05 16:03:28 EDT
*** Bug 327037 has been marked as a duplicate of this bug. ***
Comment 12 Eric Moffatt CLA 2011-09-15 12:52:53 EDT
M2 is done...
Comment 13 Dani Megert CLA 2011-11-07 09:44:46 EST
In Juno M3 the tool tip is now shown but it is not dynamic i.e. it does not show the previously launched launch. To see this you need to choose
Run/Debug > Launching: [x] Always launch the previously launched application
Comment 14 Remy Suen CLA 2011-11-07 11:12:04 EST
(In reply to comment #13)
> In Juno M3 the tool tip is now shown but it is not dynamic i.e. it does not
> show the previously launched launch. To see this you need to choose
> Run/Debug > Launching: [x] Always launch the previously launched application

I can't find the bug but there's another one on this issue. Debug reaches into internals and updates the item labels programmatically.
Comment 15 Remy Suen CLA 2011-11-07 11:16:33 EST
(In reply to comment #14)
> (In reply to comment #13)
> > In Juno M3 the tool tip is now shown but it is not dynamic i.e. it does not
> > show the previously launched launch. To see this you need to choose
> > Run/Debug > Launching: [x] Always launch the previously launched application
> 
> I can't find the bug but there's another one on this issue.

See bug 341142 for the details. The gist of the problem is that tool tip changes from AbstractLaunchHistoryAction are being ignored.
Comment 16 Eric Moffatt CLA 2011-12-09 13:10:14 EST
Aggregate move to M5. Retarget to a different milestone if you wish...
Comment 17 Michael Rennie CLA 2012-01-31 15:31:39 EST
(In reply to comment #16)
> Aggregate move to M5. Retarget to a different milestone if you wish...

see comment 17 on bug 341142 - once debug calls back to CommandActionLegacyWrapper#setToolTipText nothing seems to be updated.
Comment 18 Michael Rennie CLA 2012-02-10 13:13:26 EST
I created my github branch for this bug:

https://github.com/mrennie/eclipse.platform.ui/tree/mrennie/bug/317182
Comment 19 Paul Webster CLA 2012-04-03 14:46:13 EDT
(In reply to comment #18)
> I created my github branch for this bug:
> 
> https://github.com/mrennie/eclipse.platform.ui/tree/mrennie/bug/317182

Is there anything to look at in this bug?  If not, that's OK (just working through the backlog).

PW
Comment 20 Dani Megert CLA 2012-04-04 04:58:34 EDT
(In reply to comment #13)
> In Juno M3 the tool tip is now shown but it is not dynamic i.e. it does not
> show the previously launched launch. To see this you need to choose
> Run/Debug > Launching: [x] Always launch the previously launched application

I think this is not a new problem but bug 211792. I'm fine closing this as FIXED.
Comment 21 Michael Rennie CLA 2012-04-04 11:02:25 EDT
(In reply to comment #19) 
> Is there anything to look at in this bug?  If not, that's OK (just working
> through the backlog).
> 
> PW

Unless there have been any code changes to make CommandActionLegacyWrapper#setToolTipText work, then yes this is still a problem. When last I was looking at this issue, our call to #setToolTip on the action would no-op in CommandActionLegacyWrapper#setToolTipText.
Comment 22 Michael Rennie CLA 2012-04-04 16:54:50 EDT
(In reply to comment #21)
> (In reply to comment #19) 
> > Is there anything to look at in this bug?  If not, that's OK (just working
> > through the backlog).
> > 
> > PW
> 
> Unless there have been any code changes to make
> CommandActionLegacyWrapper#setToolTipText work, then yes this is still a
> problem. When last I was looking at this issue, our call to #setToolTip on the
> action would no-op in CommandActionLegacyWrapper#setToolTipText.

Stepping through the new code (from Paul's legacyActions branch) shows that the tooltips are being updated (OK) but it seems that after a few different selections the actual shown tooltip gets out of sync with what the selection is.

Steps;
1. create Java class with a main - call it 'Clazz'
2. open the Java source from 1. hover over the run toolitem - should read 'Run Clazz.java'
3. launch the class from 2. - should get config named 'Clazz'
4. create some other conifg type named 'Test1' - launch it
5. select editor from 2., and hover over run button - tooltip should say 'Run Clazz'
6. select an entry in the problems view and hover over the run button - should say 'Run Test1'

It appears that the labels all get updated on every change as long as you hover over the external tools toolbar button first and then look at the run or debug ones. 

Paul, is there some code that makes the run / debug special?
Comment 23 Michael Rennie CLA 2012-04-04 22:36:48 EDT
(In reply to comment #22)
> 
> Paul, is there some code that makes the run / debug special?

It appears now the debug and run actions are part of the coolbar: 'org.eclipse.debug.ui.launch.toolbar' rather than the 'org.eclipse.debug.ui.launchActionSet' action set like they used to be.

Looks like the fix to bug 361448 changed the toolbar path from 'debug' to 'org.eclipse.debug.ui.launch.toolbar/launchGroup'. If I revert the change to the toolbar path for the run and debug dropdowns the tool tips update as expected.
Comment 24 Michael Rennie CLA 2012-04-05 14:57:25 EDT
Moving back to platform Debug. The action s changes got things rolling, but the remainder of the fix if there, with the revert for the toolbar path on the run / debug drop-downs.