Community
Participate
Working Groups
Build Identifier: 20110615-0604 Normally when a tooltip is about to be shown, the NMHDR code is OS.TTN_GETDISPINFOW. But in the RCP we are develloping this case never occures. So the tooltip will not be shown. Never the less in the example org.eclipse.ui.examples.rcp.texteditor tooltips are fine. Under Windows XP tooltips are there in our RCP, as well as under OpenSuse and Ubuntu. Reproducible: Always Steps to Reproduce: 1. Just start the application (has ~100000 lines of code so is to big to submit here) 2. 3.
What JRE are you using?
What version of Windows have the problem ? Can you write up a simple SWT snippet that reproduces the problem ?
Created attachment 202216 [details] RCP snipped extracted fom our application The problematic line of code is located in "ApplicationWorkbenchWindowAdvisor.java": java.awt.Toolkit.getDefaultToolkit();
When trying to extract a snipped from our application, we were able to identify the problematic line of code. It is located in "ApplicationWorkbenchWindowAdvisor.java": java.awt.Toolkit.getDefaultToolkit(); We used this to get the screensize when starting the application to maximize the window on the sceen. * It will suppress all tooltips if run on * * 1) MS Server 2003 2) MS Server 2008 * Standard Edition R2 Standard * Build 3790: SP 2 SP 1 (Build unknown) * (Excess via CitrixXenApp 6.0 Server 3) * * Although tooltips keep visible if run on * * 1) MS Server 2008 2) Various MS XP PCs * Standard Version 6.0 3) Linux OpenSuse * Build 6002: SP 2 4) Linux Ubuntu * In the attachment you find the snippet to reproduce the problem. It could be related to a conflict of awt and swt.
We are using JRE6
(In reply to comment #3) > The problematic line of code is located in > "ApplicationWorkbenchWindowAdvisor.java": java.awt.Toolkit.getDefaultToolkit(); See bug 349387. (In reply to comment #5) > We are using JRE6 There are many different versions of Java 6. Which vendor's VM are you using? Which update of Java 6 are you using?
Reproducible under Windows 7 with JDK 1.6.0_26. I am using 3.7 as a target platform. Even worse: always seems to happen when deploying an RCP application through Java Web Start! At least one other person has noticed this (http://www.eclipse.org/forums/index.php/m/693981/?srch=tooltips#msg_693981). When I simply add Toolkit.getDefaultToolkit() to our ApplicationWorkbenchWindowAdvisor.preWindowOpen() all swt tooltips stop working. The weird thing is that all tooltips keep working fine when I only add this line to postWindowOpen()! For the Java web start case I suspect that web start calls Toolkit.getDefaultToolkit() to do some AWT/Swing stuff before starting the application. (Probably the general web start splash screen and/or the application splash screen). Problem does not occur with custom swt tooltip windows org.eclipse.swt.widgets.ToolTip. (Wow, I got a "mid air collision"; Remy Suen actually submitted a comment at around the same time :))
Thank you Remy for the bug link, this may well be be a duplicate of bug 355541. I tried with an older java version than Sun's JDK 1.6.0_26 and it is not reproducible!
> There are many different versions of Java 6. Which vendor's VM are you using? > Which update of Java 6 are you using? Java 6 Update 26 from Oracle
Closing as not Eclipse, see https://bugs.eclipse.org/bugs/show_bug.cgi?id=349387#c21 for more information.