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 256852 Details for
Bug 478442
[GTK3] ImageHyperLink is rendered incorrectly
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.
Code snippet to reproduce the issue
Bug1.java (text/plain), 1.51 KB, created by
Alexander Burdukov
on 2015-09-25 14:13:05 EDT
(
hide
)
Description:
Code snippet to reproduce the issue
Filename:
MIME Type:
Creator:
Alexander Burdukov
Created:
2015-09-25 14:13:05 EDT
Size:
1.51 KB
patch
obsolete
>package com.bug; > >import org.eclipse.swt.SWT; >import org.eclipse.swt.custom.SashForm; >import org.eclipse.swt.custom.ScrolledComposite; >import org.eclipse.swt.custom.StyledText; >import org.eclipse.swt.layout.FillLayout; >import org.eclipse.swt.widgets.Composite; >import org.eclipse.swt.widgets.Display; >import org.eclipse.swt.widgets.Shell; >import org.eclipse.ui.forms.widgets.ImageHyperlink; > >public class Bug1 { > public static void main(String[] args) { > Display display = new Display(); > Shell shell = new Shell(display); > shell.setLayout(new FillLayout()); > > SashForm sashForm = new SashForm(shell, SWT.HORIZONTAL); > ScrolledComposite sc = new ScrolledComposite(sashForm, SWT.H_SCROLL | SWT.V_SCROLL); > Composite composite = new Composite(sc, SWT.NONE); > composite.setLayout(new FillLayout()); > > ImageHyperlink imageLink = new ImageHyperlink(composite, SWT.NONE); > imageLink.setText("Some long long long long long long long long string"); > imageLink.setOrientation(SWT.RIGHT_TO_LEFT); > > sc.setContent(composite); > sc.setMinSize(400, 30); > sc.setExpandHorizontal(true); > sc.setExpandVertical(true); > > StyledText styledText = new StyledText(sashForm, SWT.NONE); > styledText.setText("Right Panel"); > > shell.setSize(600, 120); > 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 478442
:
256851
| 256852