Mercurial > projects > dwt2
comparison org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet26.d @ 112:9f4c18c268b2
Update to compile and execute with dmd 2.052.
author | kntroh |
---|---|
date | Wed, 16 Mar 2011 21:53:53 +0900 |
parents | 69b1fa94a4a8 |
children |
comparison
equal
deleted
inserted
replaced
111:b6e9904989ed | 112:9f4c18c268b2 |
---|---|
20 */ | 20 */ |
21 import org.eclipse.swt.SWT; | 21 import org.eclipse.swt.SWT; |
22 import org.eclipse.swt.widgets.Display; | 22 import org.eclipse.swt.widgets.Display; |
23 import org.eclipse.swt.widgets.Shell; | 23 import org.eclipse.swt.widgets.Shell; |
24 import org.eclipse.swt.widgets.Combo; | 24 import org.eclipse.swt.widgets.Combo; |
25 import java.lang.all; | |
25 | 26 |
26 char[][] content = ["A", "B", "C"]; | 27 String[] content = ["A", "B", "C"]; |
27 | 28 |
28 void main () { | 29 void main () { |
29 auto display = new Display (); | 30 auto display = new Display (); |
30 auto shell = new Shell (display); | 31 auto shell = new Shell (display); |
31 auto combo = new Combo (shell, SWT.READ_ONLY); | 32 auto combo = new Combo (shell, SWT.READ_ONLY); |