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 281801 Details for
Bug 560071
TreeEditor displays over scroll bars
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Test case
file_560071.txt (text/plain), 1.94 KB, created by
Mark Peters
on 2020-02-12 17:43:55 EST
(
hide
)
Description:
Test case
Filename:
MIME Type:
Creator:
Mark Peters
Created:
2020-02-12 17:43:55 EST
Size:
1.94 KB
patch
obsolete
>import org.eclipse.swt.SWT; >import org.eclipse.swt.custom.TreeEditor; >import org.eclipse.swt.layout.FillLayout; >import org.eclipse.swt.widgets.Combo; >import org.eclipse.swt.widgets.Display; >import org.eclipse.swt.widgets.Shell; >import org.eclipse.swt.widgets.Tree; >import org.eclipse.swt.widgets.TreeColumn; >import org.eclipse.swt.widgets.TreeItem; > >public class TestTreeScrollbars { > > public static void main(String[] args) { > Display display = new Display(); > > Shell shell = new Shell(display, SWT.SHELL_TRIM); > shell.setLayout(new FillLayout()); > > Tree tree = new Tree(shell, SWT.NONE); > tree.setHeaderVisible(true); > tree.setLinesVisible(true); > for (int i = 0; i < 3; ++i) { > TreeColumn col = new TreeColumn(tree, SWT.NONE); > col.setText("Column " + i); > } > > shell.pack(); > shell.setSize(200, 200); > shell.open(); > > // Create tree items with tree editors for the second column > for (int i = 0; i < 10; ++i) { > TreeItem item = new TreeItem(tree, SWT.NONE); > item.setText(0, "Some test text"); > Combo control = new Combo(tree, SWT.READ_ONLY); > control.setItems("test1", "test2"); > TreeEditor treeEditor = new TreeEditor(tree); > treeEditor.grabHorizontal = treeEditor.grabVertical = true; > treeEditor.setEditor(control, item, 1); > item.setText(2, "End text"); > } > > // Pack all columns > for (TreeColumn column : tree.getColumns()) { > /* > * Double packing just because the middle TreeEditor column displays > * really small for me otherwise > */ > column.pack(); > column.pack(); > } > > while (!shell.isDisposed()) { > if (!display.readAndDispatch()) { > display.sleep(); > } > } > } >}
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 560071
: 281801 |
281803
|
281804