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 243962 Details for
Bug 436655
[GTK3] Layout problem makes a group invisible
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
LayoutBug.java (text/x-java), 1.44 KB, created by
Marc-André Laperle
on 2014-06-05 01:54:37 EDT
(
hide
)
Description:
Code snippet
Filename:
MIME Type:
Creator:
Marc-André Laperle
Created:
2014-06-05 01:54:37 EDT
Size:
1.44 KB
patch
obsolete
>package test; > >import org.eclipse.swt.SWT; >import org.eclipse.swt.layout.FillLayout; >import org.eclipse.swt.layout.GridData; >import org.eclipse.swt.layout.GridLayout; >import org.eclipse.swt.widgets.Composite; >import org.eclipse.swt.widgets.Dialog; >import org.eclipse.swt.widgets.Display; >import org.eclipse.swt.widgets.Group; >import org.eclipse.swt.widgets.Shell; >import org.eclipse.swt.widgets.Tree; > >public class LayoutBug extends Dialog { > public LayoutBug(Shell shell) { > super(shell); > } > > public static void main(String[] args) { > Display display = new Display(); > > Shell shell = new Shell(display, SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL | SWT.RESIZE); > shell.setLayout(new FillLayout()); > > Composite mainComposite = new Composite(shell, SWT.NONE); > GridLayout layout = new GridLayout(1, true); > mainComposite.setLayout(layout); > mainComposite.setLayoutData(new GridData(GridData.FILL_BOTH)); > > Group group1 = new Group(mainComposite, SWT.NONE); > group1.setText("Group1"); > group1.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); > > Group group2 = new Group(mainComposite, SWT.NONE); > group2.setText("Group2"); > group2.setLayout(new FillLayout()); > group2.setLayoutData(new GridData(GridData.FILL_BOTH)); > new Tree(group2, SWT.NONE); > > mainComposite.layout(); // commenting this line "fixes" the problem > > 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 436655
: 243962 |
244016
|
245623