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 152959 Details for
Bug 296013
[win32] Text.selectAll() does not work as expected if a Text control has a tool tip
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.
Reproducer for the described behavior.
TextSelectAllReproducer.java (text/plain), 1.21 KB, created by
Benjamin Leipold
on 2009-11-24 10:31:41 EST
(
hide
)
Description:
Reproducer for the described behavior.
Filename:
MIME Type:
Creator:
Benjamin Leipold
Created:
2009-11-24 10:31:41 EST
Size:
1.21 KB
patch
obsolete
>import org.eclipse.swt.SWT; >import org.eclipse.swt.layout.RowLayout; >import org.eclipse.swt.widgets.Display; >import org.eclipse.swt.widgets.Event; >import org.eclipse.swt.widgets.Listener; >import org.eclipse.swt.widgets.Shell; >import org.eclipse.swt.widgets.Text; > >public class TextSelectAllReproducer { > > /** > * @param args > */ > public static void main(final String[] args) { > final Display display = new Display(); > final Shell shell = new Shell(display); > shell.setLayout(new RowLayout()); > shell.setSize(640, 480); > > final Text text = new Text(shell, SWT.NONE); > text.setText("hello world"); > text.setToolTipText("hello world"); > text.addListener(SWT.MouseDown, new Listener() { > public void handleEvent(final Event event) { > text.selectAll(); > } > }); > > final Text text1 = new Text(shell, SWT.NONE); > text1.setText("foo bar"); > text1.addListener(SWT.MouseDown, new Listener() { > public void handleEvent(final Event event) { > text1.selectAll(); > } > }); > > 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 296013
: 152959