Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 355541 - Tooltip not shown in Rich Client Application (RCP) under Windows Server 2003
Summary: Tooltip not shown in Rich Client Application (RCP) under Windows Server 2003
Status: RESOLVED NOT_ECLIPSE
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.7   Edit
Hardware: PC Windows Server 2003
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-23 13:22 EDT by Julia Kurde CLA
Modified: 2011-08-29 10:20 EDT (History)
3 users (show)

See Also:


Attachments
RCP snipped extracted fom our application (124.53 KB, application/zip)
2011-08-26 06:41 EDT, Julia Kurde CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Julia Kurde CLA 2011-08-23 13:22:19 EDT
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.
Comment 1 Remy Suen CLA 2011-08-23 13:27:56 EDT
What JRE are you using?
Comment 2 Felipe Heidrich CLA 2011-08-23 16:41:46 EDT
What version of Windows have the problem ?
Can you write up a simple SWT snippet that reproduces the problem ?
Comment 3 Julia Kurde CLA 2011-08-26 06:41:26 EDT
Created attachment 202216 [details]
RCP snipped extracted fom our application

The problematic line of code is located in
"ApplicationWorkbenchWindowAdvisor.java": java.awt.Toolkit.getDefaultToolkit();
Comment 4 Julia Kurde CLA 2011-08-26 06:43:10 EDT
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.
Comment 5 Julia Kurde CLA 2011-08-26 06:45:31 EDT
We are using JRE6
Comment 6 Remy Suen CLA 2011-08-26 07:04:01 EDT
(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?
Comment 7 Henno Vermeulen CLA 2011-08-26 07:26:16 EDT
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 :))
Comment 8 Henno Vermeulen CLA 2011-08-26 07:49:15 EDT
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!
Comment 9 Julia Kurde CLA 2011-08-26 11:57:56 EDT
> 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
Comment 10 Felipe Heidrich CLA 2011-08-29 10:20:11 EDT
Closing as not Eclipse, see https://bugs.eclipse.org/bugs/show_bug.cgi?id=349387#c21 for more information.