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

Bug 327037

Summary: Run/Debug toobar button hover not working in e4
Product: [Eclipse Project] Platform Reporter: Darin Wright <darin.eclipse>
Component: DebugAssignee: Platform-Debug-Inbox <platform-debug-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: pwebster, remy.suen
Version: 4.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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 ***