Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 454914 - MenuItem.setToolTip() doesn't work for items in the shell menubar on Windows
Summary: MenuItem.setToolTip() doesn't work for items in the shell menubar on Windows
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.5   Edit
Hardware: All All
: P3 trivial (vote)
Target Milestone: 4.5 M5   Edit
Assignee: Markus Keller CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 62575
Blocks:
  Show dependency tree
 
Reported: 2014-12-11 11:46 EST by Markus Keller CLA
Modified: 2014-12-18 05:57 EST (History)
3 users (show)

See Also:


Attachments
completion for bug 62575 (3.74 KB, patch)
2014-12-11 11:46 EST, 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 Markus Keller CLA 2014-12-11 11:46:41 EST
Created attachment 249359 [details]
completion for bug 62575

Like bug 451962 and bug 452009, tooltips currently don't work for menu items in the shell menubar on Windows. The attached patch should be released to show this in the APIs and in the ControlExample.
Comment 2 Dani Megert CLA 2014-12-18 03:51:36 EST
(In reply to Markus Keller from comment #1)
> Pushed a better fix:
> http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=f0d7388a92052bc58d7c003927a9fafcaf0fbd3f
> 

This caused 1 compile warning for GTK and Mac in our build:
http://download.eclipse.org/eclipse/downloads/drops4/N20141217-2000/testResults.php

1. WARNING in _64/src/org/eclipse/swt/widgets/MenuItem.java
 (at line 15)
import org.eclipse.swt.widgets.*;
The import org.eclipse.swt.widgets is never used
Comment 3 Markus Keller CLA 2014-12-18 05:57:00 EST
(In reply to Dani Megert from comment #2)
> This caused 1 compile warning for GTK and Mac in our build:

Oops, I guess I got tricked by Content Assist in a .java file that's not on the classpath. When I press Ctrl+Space after "{@link Shell" and then choose the Shell proposal, then an unused import gets added (MenuItem is already in that package):
import org.eclipse.swt.widgets.*;

Fixed with http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=7581757358232d25370c9b0fe0eaa59fd24fa1f8