Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 327037 - Run/Debug toobar button hover not working in e4
Summary: Run/Debug toobar button hover not working in e4
Status: CLOSED DUPLICATE of bug 317182
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 4.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-05 16:00 EDT by Darin Wright CLA
Modified: 2010-10-05 16:03 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Darin Wright CLA 2010-10-05 16:00:09 EDT
Version: 4.1.0
Build id: I20100924-1514

The hover for the Run/Debug toolbar buttons is not working in e4. In 3.x the buttons display dynamically generated hover to explain what will be launched if pressed. I recall the buttons were using non-API code to do this. Not sure if there is a replacement technology in e4.

In 3.x we were getting the cool bar manager, and adding a mouse track listener to the tool bar:

CoolBarManager cmgr = ((WorkbenchWindow)window).getCoolBarManager();
if(cmgr != null) {
	IContributionItem item = cmgr.find("org.eclipse.debug.ui.launchActionSet"); //$NON-NLS-1$
	if(item instanceof ToolBarContributionItem) {
		ToolBarManager tmgr = (ToolBarManager) ((ToolBarContributionItem)item).getToolBarManager();
		ToolBar bar = tmgr.getControl();
		if(bar != null && !bar.isDisposed()) {
			bar.addMouseTrackListener(fMouseListener);
			fToolbars.put(window, bar);
		}
	}
}
Comment 1 Remy Suen CLA 2010-10-05 16:03:28 EDT

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