Mercurial > projects > dwt2
diff org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet115.d @ 44:ed96ea2a2764
First swt win snippets are buiding with d2+phobos
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Wed, 25 Mar 2009 18:31:01 +0100 |
parents | 4e5843b771cc |
children | 536e43f63c81 |
line wrap: on
line diff
--- a/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet115.d Wed Mar 25 17:08:05 2009 +0100 +++ b/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet115.d Wed Mar 25 18:31:01 2009 +0100 @@ -29,7 +29,6 @@ import org.eclipse.swt.layout.RowLayout; import java.lang.all; -import tango.util.Convert; void main (String [] args) { Display display = new Display (); @@ -59,12 +58,12 @@ }; for (int i=0; i<4; i++) { Button button = new Button (c1, SWT.RADIO); - button.setText ("Button " ~ to!(char[])(i)); + button.setText (Format("Button {}",i)); button.addListener (SWT.Selection, radioGroup); } for (int i=0; i<4; i++) { Button button = new Button (c2, SWT.RADIO); - button.setText ("Button " ~to!(char[])(i + 4)); + button.setText (Format("Button {}",(i + 4))); button.addListener (SWT.Selection, radioGroup); } shell.pack ();