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 286450 Details for
Bug 573760
[GTK] Composite.setRegion causes children to not be rendered
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Snippet to reproduce
RegionTest.java (text/plain), 1.08 KB, created by
Thomas Singer
on 2021-05-25 10:25:14 EDT
(
hide
)
Description:
Snippet to reproduce
Filename:
MIME Type:
Creator:
Thomas Singer
Created:
2021-05-25 10:25:14 EDT
Size:
1.08 KB
patch
obsolete
>import org.eclipse.swt.*; >import org.eclipse.swt.custom.*; >import org.eclipse.swt.graphics.*; >import org.eclipse.swt.layout.*; >import org.eclipse.swt.widgets.*; > >/** > * @author Thomas Singer > */ >public class RegionTest { > > public static void main(String[] args) { > final Display display = new Display(); > > final Shell shell = new Shell(display); > shell.setLayout(new FillLayout(SWT.VERTICAL)); > > final StyledText text = new StyledText(shell, SWT.BORDER); > text.setText("hello world"); > > final Composite composite = new Composite(shell, SWT.NONE); > composite.setBackground(display.getSystemColor(SWT.COLOR_DARK_GREEN)); > composite.setLayout(new GridLayout()); > final Region region = new Region(); > region.add(new int[]{ > 0, 0, > 100, 0, > 0, 100 > }); > composite.setRegion(region); > > final Button button = new Button(composite, SWT.PUSH); > button.setText("Button"); > > 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 573760
: 286450 |
286451
|
286452