diff org.eclipse.jface.databinding/src/org/eclipse/jface/internal/databinding/swt/ScaleObservableValue.d @ 85:6be48cf9f95c

Work on databinding
author Frank Benoit <benoit@tionex.de>
date Sat, 18 Apr 2009 13:54:50 +0200
parents 0a55d2d5a946
children
line wrap: on
line diff
--- a/org.eclipse.jface.databinding/src/org/eclipse/jface/internal/databinding/swt/ScaleObservableValue.d	Sat Apr 18 09:25:29 2009 +0200
+++ b/org.eclipse.jface.databinding/src/org/eclipse/jface/internal/databinding/swt/ScaleObservableValue.d	Sat Apr 18 13:54:50 2009 +0200
@@ -10,6 +10,7 @@
  *     Peter Centgraf - bug 175763
  *******************************************************************************/
 module org.eclipse.jface.internal.databinding.swt.ScaleObservableValue;
+import org.eclipse.jface.internal.databinding.swt.SWTProperties;
 
 import java.lang.all;
 
@@ -77,7 +78,7 @@
         } else if (!attribute.equals(SWTProperties.MIN)
                 && !attribute.equals(SWTProperties.MAX)) {
             throw new IllegalArgumentException(
-                    "Attribute name not valid: " + attribute); //$NON-NLS-1$
+                    "Attribute name not valid: " ~ attribute); //$NON-NLS-1$
         }
     }
 
@@ -98,7 +99,7 @@
                 oldValue = scale.getMaximum();
                 scale.setMaximum(newValue);
             } else {
-                Assert.isTrue(false, "invalid attribute name:" + attribute); //$NON-NLS-1$
+                Assert.isTrue(false, "invalid attribute name:" ~ attribute); //$NON-NLS-1$
                 return;
             }
             
@@ -110,7 +111,7 @@
 
     public Object doGetValue() {
         int value = 0;
-        if (attribute.opEquals(SWTProperties.SELECTION)) {
+        if (attribute.equals(SWTProperties.SELECTION)) {
             value = scale.getSelection();
         } else if (attribute.equals(SWTProperties.MIN)) {
             value = scale.getMinimum();