diff org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet68.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
line wrap: on
line diff
--- a/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet68.d	Sat Nov 13 14:15:51 2010 +0100
+++ b/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet68.d	Wed Mar 16 21:53:53 2011 +0900
@@ -34,15 +34,15 @@
 
 void main (String [] args) {
     Display display = new Display ();
-    final Color red = display.getSystemColor (SWT.COLOR_RED);
-    final Color blue = display.getSystemColor (SWT.COLOR_BLUE);
+    Color red = display.getSystemColor (SWT.COLOR_RED);
+    Color blue = display.getSystemColor (SWT.COLOR_BLUE);
     Shell shell = new Shell (display);
     shell.setLayout (new RowLayout ());
     Button button = new Button (shell, SWT.PUSH);
     button.setText ("Stop Timer");
-    final Label label = new Label (shell, SWT.BORDER);
+    Label label = new Label (shell, SWT.BORDER);
     label.setBackground (red);
-    final int time = 500;
+    int time = 500;
     Runnable timer;
     timer = dgRunnable({
         if (label.isDisposed ()) return;