Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 353213 - SWT_AWT-Bridge kills ToolBar-ToolTips
Summary: SWT_AWT-Bridge kills ToolBar-ToolTips
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.7   Edit
Hardware: PC Windows 7
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-27 10:30 EDT by Dima.B CLA
Modified: 2019-11-14 03:45 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dima.B CLA 2011-07-27 10:30:33 EDT
Hi There : )

it seems that I found a bug with the combination of an used SWT_AWT-Bridge and ToolBar-ToolTips.

OS:  Win7 (but works on Linux)
SWT: v3.7final

please see the example below:

import org.eclipse.swt.*;
import org.eclipse.swt.awt.SWT_AWT;
import org.eclipse.swt.graphics.Rectangle;
import org.eclipse.swt.widgets.*;

public class CopyPasteExample
{
	public static void main (String [] args)
	{
		final Display display = new Display();
		final Shell shell = new Shell(display);
		
		ToolBar bar = new ToolBar (shell, SWT.BORDER);
		for (int i=0; i<8; i++) {
			ToolItem item = new ToolItem (bar, SWT.PUSH);
			item.setText ("Item " + i);
			item.setToolTipText("Item " + i);
		}
		
		//killMyToolTips
		SWT_AWT.new_Frame(new Composite(shell, SWT.EMBEDDED));
		
		
		Rectangle clientArea = shell.getClientArea ();
		bar.setLocation (clientArea.x, clientArea.y);
		bar.pack ();
		shell.open ();
		while (!shell.isDisposed ()) {
			if (!display.readAndDispatch ()) display.sleep ();
		}
		display.dispose ();
	}
}




best regards,
Dima B.
Comment 1 Remy Suen CLA 2011-07-27 11:10:29 EDT
Are you using Java 6u26 from Oracle?
Comment 2 Dima.B CLA 2011-07-27 12:05:10 EDT
(In reply to comment #1)
> Are you using Java 6u26 from Oracle?


Programs ans Features > Publisher : "Java 6 Sun Microsystems, Inc"

cmd-output:
Java SE RE: (build 1.6.0_26-b03)
Client VM (build 20.1-b02)

not sure but seems so..
Comment 3 Lars Vogel CLA 2019-11-14 03:45:10 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

If the bug is still relevant, please remove the "stalebug" whiteboard tag.