diff org.eclipse.jface.examples.databinding/src/org/eclipse/jface/examples/databinding/snippets/Snippet017TableViewerWithDerivedColumns.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/Snippet017TableViewerWithDerivedColumns.d	Wed Apr 22 18:59:26 2009 +0200
+++ b/org.eclipse.jface.examples.databinding/src/org/eclipse/jface/examples/databinding/snippets/Snippet017TableViewerWithDerivedColumns.d	Thu Apr 23 00:02:38 2009 +0200
@@ -103,7 +103,7 @@
     private static Person UNKNOWN = new Person("unknown", null, null);
 
     // The data model class. This is normally a persistent class of some sort.
-    static class Person extends AbstractModelObject {
+    static class Person : AbstractModelObject {
         // A property...
         String name = "Donald Duck";
         Person mother;
@@ -245,7 +245,7 @@
             peopleViewer.addFilter(new ViewerFilter() {
                 public bool select(Viewer viewer, Object parentElement,
                         Object element) {
-                    return element != UNKNOWN;
+                    return element !is UNKNOWN;
                 }
             });