diff org.eclipse.jface.examples.databinding/src/org/eclipse/jface/examples/databinding/snippets/Snippet014WizardDialog.d @ 100:e884642ad36e

more work on examples
author Frank Benoit <benoit@tionex.de>
date Thu, 23 Apr 2009 00:02:38 +0200
parents 5d5bd660917f
children
line wrap: on
line diff
--- a/org.eclipse.jface.examples.databinding/src/org/eclipse/jface/examples/databinding/snippets/Snippet014WizardDialog.d	Wed Apr 22 18:59:26 2009 +0200
+++ b/org.eclipse.jface.examples.databinding/src/org/eclipse/jface/examples/databinding/snippets/Snippet014WizardDialog.d	Thu Apr 23 00:02:38 2009 +0200
@@ -44,11 +44,11 @@
  */
 public class Snippet014WizardDialog {
 
-    static class FirstWizardPage extends WizardPage {
-        private final class SingleDigitValidator implements IValidator {
+    static class FirstWizardPage : WizardPage {
+        private final class SingleDigitValidator : IValidator {
             public IStatus validate(Object value) {
                 Integer i = (Integer) value;
-                if (i == null) {
+                if (i is null) {
                     return ValidationStatus
                             .info("Please enter a value.");
                 }
@@ -85,7 +85,7 @@
         }
     }
 
-    static class SecondWizardPage extends WizardPage {
+    static class SecondWizardPage : WizardPage {
         protected SecondWizardPage() {
             super("Second", "Second Page", ImageDescriptor
                     .createFromImage(new Image(Display.getDefault(), 16, 16)));
@@ -114,7 +114,7 @@
         IObservableValue dateValue = new WritableValue(null, Date.class);
     }
 
-    static class SampleWizard extends Wizard {
+    static class SampleWizard : Wizard {
 
         private SampleWizardModel model = new SampleWizardModel();
 
@@ -150,7 +150,7 @@
                 dialog.open();
                 // The SWT event loop
                 Display display = Display.getCurrent();
-                while (dialog.getShell() != null
+                while (dialog.getShell() !is null
                         && !dialog.getShell().isDisposed()) {
                     if (!display.readAndDispatch()) {
                         display.sleep();