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 215404 Details for
Bug 379136
Incorrect Text Size Determination for JFace Dialog
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.
An EntryPoint class that opens a dialog showing the problem
GlitchEntryPoint.java (text/java), 1.35 KB, created by
Scott Helsby
on 2012-05-10 10:33:35 EDT
(
hide
)
Description:
An EntryPoint class that opens a dialog showing the problem
Filename:
MIME Type:
Creator:
Scott Helsby
Created:
2012-05-10 10:33:35 EDT
Size:
1.35 KB
patch
obsolete
>package com.agnovi.glitches; > >import org.eclipse.jface.dialogs.Dialog; >import org.eclipse.jface.layout.GridDataFactory; >import org.eclipse.jface.layout.GridLayoutFactory; >import org.eclipse.rwt.lifecycle.IEntryPoint; >import org.eclipse.swt.SWT; >import org.eclipse.swt.widgets.Combo; >import org.eclipse.swt.widgets.Composite; >import org.eclipse.swt.widgets.Control; >import org.eclipse.swt.widgets.Label; >import org.eclipse.swt.widgets.Shell; > >public class GlitchEntryPoint implements IEntryPoint { > > @Override > public int createUI() { > Dialog dialog = new Dialog((Shell) null) { > @Override > protected Control createDialogArea(Composite parent) { > Composite dialogAreaComposite = new Composite(parent, SWT.NONE); > GridLayoutFactory.swtDefaults().numColumns(2).applyTo(dialogAreaComposite); > GridDataFactory.fillDefaults().applyTo(dialogAreaComposite); > > new Label(dialogAreaComposite, SWT.NONE).setText("\u7eb8\u5f20\u5c3a\u5bf8"); > > new Combo(dialogAreaComposite, SWT.DROP_DOWN | SWT.READ_ONLY).setItems(new String[] { > "A4\u89c4\u683c\u2013210\u6beb\u7c73 \u00d7 297\u6beb\u7c73", > "\u6cd5\u5b9a\u89c4\u683c\u20138.5\u82f1\u5bf8 \u00d7 14\u82f1\u5bf8", > "\u4fe1\u7eb8\u89c4\u683c\u20138.5\u82f1\u5bf8 \u00d7 11\u82f1\u5bf8" > }); > > return dialogAreaComposite; > } > }; > > dialog.open(); > > return 0; > } > >}
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 379136
: 215404