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 265541 Details for
Bug 508040
[Win32] Tree: selected item hard to read with selected foreground/background if unfocused
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.
sample to reproduce
ThemedTreeTableTest.java (text/plain), 1.37 KB, created by
Thomas Singer
on 2016-11-23 06:19:07 EST
(
hide
)
Description:
sample to reproduce
Filename:
MIME Type:
Creator:
Thomas Singer
Created:
2016-11-23 06:19:07 EST
Size:
1.37 KB
patch
obsolete
>import org.eclipse.swt.*; >import org.eclipse.swt.graphics.*; >import org.eclipse.swt.layout.*; >import org.eclipse.swt.widgets.*; > >/** > * @author Thomas Singer > */ >public class ThemedTreeTableTest { > > public static void main(String[] args) { > final Display display = new Display(); > > final Shell shell = new Shell(display); > shell.setLayout(new FillLayout()); > > final Tree tree = new Tree(shell, SWT.FULL_SELECTION); > > for (int i = 0; i < 10; i++) { > final TreeItem treeItem = new TreeItem(tree, SWT.NONE); > treeItem.setText("Item " + i); > } > > final Table table = new Table(shell, SWT.FULL_SELECTION); > final TableColumn column = new TableColumn(table, SWT.NONE); > column.setWidth(200); > column.setText("Column"); > table.setHeaderVisible(true); > for (int i = 0; i < 10; i++) { > new TableItem(table, SWT.NONE).setText(0, "Item " + i); > } > > final Color background = new Color(display, 64, 64, 64); > final Color foreground = display.getSystemColor(SWT.COLOR_WHITE); > shell.setBackground(background); > tree.setBackground(background); > tree.setForeground(foreground); > table.setBackground(background); > table.setForeground(foreground); > > shell.setSize(800, 400); > shell.open(); > > while (!shell.isDisposed()) { > if (!display.readAndDispatch()) { > display.sleep(); > } > } > > background.dispose(); > 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 508040
:
265540
| 265541