Mercurial > projects > dwt2
comparison org.eclipse.core.databinding/src/org/eclipse/core/internal/databinding/conversion/StringToBooleanPrimitiveConverter.d @ 88:9e0ab372d5d8
Revert from TypeInfo/ClassInfo to java.lang.Class
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 19 Apr 2009 11:10:09 +0200 |
parents | 6be48cf9f95c |
children |
comparison
equal
deleted
inserted
replaced
87:8594250b1d1c | 88:9e0ab372d5d8 |
---|---|
78 | 78 |
79 throw new IllegalArgumentException(s ~ " is not a legal bool value"); //$NON-NLS-1$ | 79 throw new IllegalArgumentException(s ~ " is not a legal bool value"); //$NON-NLS-1$ |
80 } | 80 } |
81 | 81 |
82 public Object getFromType() { | 82 public Object getFromType() { |
83 return typeid(StringCls); | 83 return Class.fromType!(StringCls); |
84 } | 84 } |
85 | 85 |
86 public Object getToType() { | 86 public Object getToType() { |
87 return Boolean.TYPE; | 87 return Boolean.TYPE; |
88 } | 88 } |