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 237524 Details for
Bug 421942
[Dialog] Initial size is too big
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.
The dialog code
DemoDialog.txt (text/plain), 897 bytes, created by
Robert Mägel
on 2013-11-18 04:31:21 EST
(
hide
)
Description:
The dialog code
Filename:
MIME Type:
Creator:
Robert Mägel
Created:
2013-11-18 04:31:21 EST
Size:
897 bytes
patch
obsolete
>package demo; > >import org.eclipse.jface.dialogs.TrayDialog; >import org.eclipse.swt.SWT; >import org.eclipse.swt.custom.ScrolledComposite; >import org.eclipse.swt.layout.GridLayout; >import org.eclipse.swt.widgets.Composite; >import org.eclipse.swt.widgets.Control; >import org.eclipse.swt.widgets.Shell; >import org.eclipse.swt.widgets.Text; > >public class DemoDialog extends TrayDialog{ > > public DemoDialog(Shell shell) { > super(shell); > } > > @Override > protected Control createDialogArea(Composite parent) { > > ScrolledComposite scrollBase = new ScrolledComposite(parent, SWT.V_SCROLL); > scrollBase.setLayout(new GridLayout()); > > Composite cmpBase = new Composite(scrollBase, SWT.NONE); > cmpBase.setLayout(new GridLayout()); > > Text t=new Text(cmpBase, SWT.NONE); > t.setText("Test"); > > cmpBase.pack(); > scrollBase.setContent(cmpBase); > > > return parent; > } > >}
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 421942
: 237524