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 220186 Details for
Bug 387864
Unified toolbar: filling separator causes preferred size to be at 1200 pixels
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.
test case to reproduce
UnifiedToolbarSizeTest.java (text/plain), 1016 bytes, created by
Thomas Singer
on 2012-08-23 03:31:17 EDT
(
hide
)
Description:
test case to reproduce
Filename:
MIME Type:
Creator:
Thomas Singer
Created:
2012-08-23 03:31:17 EDT
Size:
1016 bytes
patch
obsolete
>import org.eclipse.swt.*; >import org.eclipse.swt.graphics.*; >import org.eclipse.swt.layout.*; >import org.eclipse.swt.widgets.*; > >/** > * @author Thomas Singer > */ >public class UnifiedToolbarSizeTest { > > public static void main(String[] args) { > final Display display = new Display(); > final Shell shell = new Shell(display, SWT.SHELL_TRIM); > > final ToolBar toolBar = shell.getToolBar(); > new ToolItem(toolBar, SWT.PUSH).setText("Foo"); > new ToolItem(toolBar, SWT.SEPARATOR).setWidth(SWT.SEPARATOR_FILL); > new ToolItem(toolBar, SWT.PUSH).setText("Bar"); > > shell.setLayout(new GridLayout(1, false)); > new Text(shell, SWT.BORDER | SWT.SINGLE).setLayoutData(new GridData(SWT.FILL, SWT.BEGINNING, true, false)); > > final Point size = shell.computeSize(SWT.DEFAULT, SWT.DEFAULT); > System.out.println("size = " + size); > shell.setMinimumSize(size); > shell.setSize(size); > > 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 387864
: 220186 |
220187