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 243558 Details for
Bug 435948
"pixman_region32_init_rect: Invalid rectangle passed" on StyledText#setTopIndex(1)/scroll
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.java
Snippet.java (text/plain), 726 bytes, created by
Markus Keller
on 2014-05-27 11:54:58 EDT
(
hide
)
Description:
Snippet.java
Filename:
MIME Type:
Creator:
Markus Keller
Created:
2014-05-27 11:54:58 EDT
Size:
726 bytes
patch
obsolete
>package snip; > >import org.eclipse.swt.SWT; >import org.eclipse.swt.custom.StyledText; >import org.eclipse.swt.widgets.Display; >import org.eclipse.swt.widgets.Shell; > >public class Snippet { > public static void main(String[] args) { > Display display = new Display(); > Shell shell = new Shell(display); > > StyledText styledText= new StyledText(shell, SWT.V_SCROLL | SWT.H_SCROLL); > styledText.setLeftMargin(Math.max(styledText.getLeftMargin(), 2)); > styledText.setText("line\nline\nline"); > styledText.setBounds(0, 0, 0, 0); > > shell.setSize(200, 100); > shell.open(); > > styledText.setTopIndex(1); > > 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 435948
: 243558