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 230644 Details for
Bug 312568
[GTK] Editor does not get focus after double click from Project/Package Explorer
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Snippet312568.java
Snippet312568.java (text/plain), 1.15 KB, created by
Markus Keller
on 2013-05-08 08:48:42 EDT
(
hide
)
Description:
Snippet312568.java
Filename:
MIME Type:
Creator:
Markus Keller
Created:
2013-05-08 08:48:42 EDT
Size:
1.15 KB
patch
obsolete
>package snippet; > >import org.eclipse.swt.*; >import org.eclipse.swt.events.*; >import org.eclipse.swt.layout.*; >import org.eclipse.swt.widgets.*; > >public class Snippet312568 { > > public static void main(String[] args) { > final Display display= new Display(); > final Shell shell= new Shell(display); > shell.setLayout(new FillLayout(SWT.VERTICAL)); > > Tree tree= new Tree(shell, SWT.BORDER); > TreeItem treeItem= new TreeItem(tree, SWT.NONE); > treeItem.setText("Calls text.setFocus() on DefaultSelection"); > > final Text text= new Text(shell, SWT.MULTI | SWT.WRAP | SWT.V_SCROLL | SWT.BORDER); > text.setFocus(); > > tree.addSelectionListener(new SelectionAdapter() { > @Override > public void widgetDefaultSelected(SelectionEvent e) { > text.append(e.toString() + "\n"); > text.setFocus(); > } > }); > > shell.setSize(500, 300); > 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 312568
:
221871
| 230644 |
255028
|
255301