Mercurial > hg > RemoteEditor > Eclipse
view src/remoteeditor/ui/TestDialog.java @ 0:cf13bdba762b
Initial revision
author | pin |
---|---|
date | Sun, 22 Oct 2006 00:26:53 +0900 |
parents | |
children | fe375c84d5d0 |
line wrap: on
line source
package remoteeditor.ui; import org.eclipse.jface.dialogs.Dialog; import org.eclipse.jface.window.IShellProvider; 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; } }