Mercurial > hg > RemoteEditor > Eclipse
view src/remoteeditor/ui/TestDialog.java @ 207:fe375c84d5d0
warning fix.
author | one |
---|---|
date | Sat, 18 Dec 2010 18:16:03 +0900 |
parents | cf13bdba762b |
children |
line wrap: on
line source
package remoteeditor.ui; import org.eclipse.jface.dialogs.Dialog; import org.eclipse.swt.SWT; import org.eclipse.swt.graphics.Point; import org.eclipse.swt.layout.GridData; 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 TestDialog extends Dialog { public TestDialog(Shell parentShell) { super(parentShell); // TODO Auto-generated constructor stub } protected Point getInitialSize() { return new Point(400, 200); } protected void configureShell(Shell newShell) { super.configureShell(newShell); newShell.setText("REP"); } protected Control createDialogArea(Composite parent){ Composite composite = (Composite)super.createDialogArea(parent); Text text = new Text(composite, SWT.MULTI | SWT.V_SCROLL | SWT.BORDER | SWT.WRAP); text.setLayoutData(new GridData(GridData.FILL_BOTH)); text.setText("localhost:55555"); return composite; } }