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 278509 Details for
Bug 547030
[macOS] StyledText link color is wrong in dark mojave mode
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
LinkTest.java (text/plain), 1.22 KB, created by
Thomas Singer
on 2019-05-07 03:28:07 EDT
(
hide
)
Description:
Snippet
Filename:
MIME Type:
Creator:
Thomas Singer
Created:
2019-05-07 03:28:07 EDT
Size:
1.22 KB
patch
obsolete
>import org.eclipse.swt.*; >import org.eclipse.swt.custom.*; >import org.eclipse.swt.layout.*; >import org.eclipse.swt.widgets.*; > >public class LinkTest { > > public static void main(String[] args) { > System.getProperties().put("org.eclipse.swt.display.useSystemTheme", "true"); > > final Display display = new Display(); > > final Shell shell = new Shell(display); > final FillLayout layout = new FillLayout(SWT.VERTICAL); > layout.marginHeight = 10; > layout.marginWidth = 10; > layout.spacing = 10; > shell.setLayout(layout); > > new Text(shell, SWT.SINGLE | SWT.BORDER).setFocus(); > > final Link link = new Link(shell, SWT.NORMAL); > link.setText("This is a <a href=\"www.eclipse.org\">link</a>"); > > final StyledText st = new StyledText(shell, SWT.READ_ONLY); > st.setBackground(shell.getBackground()); > final String text = "This is a styledtext simulating a link (hard to read)."; > st.setText(text); > final StyleRange range = new StyleRange(text.indexOf("link"), 4, null, null); > range.underline = true; > range.underlineStyle = SWT.UNDERLINE_LINK; > st.setStyleRange(range); > > shell.setSize(400, 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 547030
: 278509 |
278510