Mercurial > projects > dwt2
comparison org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet162.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 | 536e43f63c81 |
comparison
equal
deleted
inserted
replaced
111:b6e9904989ed | 112:9f4c18c268b2 |
---|---|
44 Snippet162.main(args); | 44 Snippet162.main(args); |
45 } | 45 } |
46 | 46 |
47 public class Snippet162 { | 47 public class Snippet162 { |
48 | 48 |
49 final static String STATE = "CheckedIndices"; | 49 const static String STATE = "CheckedIndices"; |
50 | 50 |
51 public static void main (String [] args) { | 51 public static void main (String [] args) { |
52 final Display display = new Display (); | 52 Display display = new Display (); |
53 Image checkedImage = getCheckedImage (display); | 53 Image checkedImage = getCheckedImage (display); |
54 Image uncheckedImage = getUncheckedImage (display); | 54 Image uncheckedImage = getUncheckedImage (display); |
55 Shell shell = new Shell (display); | 55 Shell shell = new Shell (display); |
56 shell.setLayout (new FillLayout ()); | 56 shell.setLayout (new FillLayout ()); |
57 final Table table = new Table (shell, SWT.BORDER); | 57 Table table = new Table (shell, SWT.BORDER); |
58 TableColumn column1 = new TableColumn (table, SWT.NONE); | 58 TableColumn column1 = new TableColumn (table, SWT.NONE); |
59 TableColumn column2 = new TableColumn (table, SWT.NONE); | 59 TableColumn column2 = new TableColumn (table, SWT.NONE); |
60 TableColumn column3 = new TableColumn (table, SWT.NONE); | 60 TableColumn column3 = new TableColumn (table, SWT.NONE); |
61 TableItem item1 = new TableItem (table, SWT.NONE); | 61 TableItem item1 = new TableItem (table, SWT.NONE); |
62 item1.setText ( ["first item", "a", "b"]); | 62 item1.setText ( ["first item", "a", "b"]); |