Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 98666 Details for
Bug 230246
[JFace] DefaultToolTip flickers when exceeding screen boundary
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
Snippet demonstrating the described behaviour
DefaultToolTipFlicker.java (text/plain), 1.18 KB, created by
Karsten ...
on 2008-05-05 12:29:00 EDT
(
hide
)
Description:
Snippet demonstrating the described behaviour
Filename:
MIME Type:
Creator:
Karsten ...
Created:
2008-05-05 12:29:00 EDT
Size:
1.18 KB
patch
obsolete
>package snippets; > > >import org.eclipse.jface.window.DefaultToolTip; >import org.eclipse.jface.window.ToolTip; >import org.eclipse.swt.SWT; >import org.eclipse.swt.layout.GridLayout; >import org.eclipse.swt.widgets.Display; >import org.eclipse.swt.widgets.Label; >import org.eclipse.swt.widgets.Shell; > > >public class DefaultToolTipFlicker { > > public static void main(String[] args) { > > final Display display = new Display(); > final Shell shell = new Shell(); > > GridLayout gl = new GridLayout(); > shell.setLayout(gl); > > final Label l = new Label(shell, SWT.NONE); > l.setText("Point here for tooltip,\nthen move window leftward and point here again."); > > DefaultToolTip d = new DefaultToolTip(l, ToolTip.NO_RECREATE, false); > d.setText("This is a tooltip containing an incredibly long string to demonstrate it is being" + > "truncated when it hits the right screen border"); > > shell.pack(); > shell.setLocation(display.getClientArea().width - shell.getSize().x, shell.getLocation().y); > shell.open(); > > while (!shell.isDisposed()) { > if (!display.readAndDispatch()) { > display.sleep(); > } > } > > display.dispose(); > > } > >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 230246
: 98666 |
99608
|
99632