Mercurial > projects > dwt2
comparison org.eclipse.core.databinding/src/org/eclipse/core/databinding/AggregateValidationStatus.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 |
---|---|
111 * @since 1.1 | 111 * @since 1.1 |
112 */ | 112 */ |
113 public this(Realm realm, | 113 public this(Realm realm, |
114 IObservableCollection validationStatusProviders, int strategy) { | 114 IObservableCollection validationStatusProviders, int strategy) { |
115 if (strategy is MERGED) { | 115 if (strategy is MERGED) { |
116 implementation = new class(realm, typeid(IStatus), validationStatusProviders) ComputedValue { | 116 implementation = new class(realm, Class.fromType!(IStatus), validationStatusProviders) ComputedValue { |
117 IObservableCollection validationStatusProviders_; | 117 IObservableCollection validationStatusProviders_; |
118 this(Realm r, TypeInfo c, IObservableCollection v){ | 118 this(Realm r, Class c, IObservableCollection v){ |
119 super(r, c); | 119 super(r, c); |
120 validationStatusProviders_=v; | 120 validationStatusProviders_=v; |
121 } | 121 } |
122 protected Object calculate() { | 122 protected Object calculate() { |
123 return cast(Object)getStatusMerged(validationStatusProviders_); | 123 return cast(Object)getStatusMerged(validationStatusProviders_); |
124 } | 124 } |
125 }; | 125 }; |
126 } else { | 126 } else { |
127 implementation = new class(realm, typeid(IStatus), validationStatusProviders) ComputedValue { | 127 implementation = new class(realm, Class.fromType!(IStatus), validationStatusProviders) ComputedValue { |
128 IObservableCollection validationStatusProviders_; | 128 IObservableCollection validationStatusProviders_; |
129 this(Realm r, TypeInfo c, IObservableCollection v){ | 129 this(Realm r, Class c, IObservableCollection v){ |
130 super(r, c); | 130 super(r, c); |
131 validationStatusProviders_=v; | 131 validationStatusProviders_=v; |
132 } | 132 } |
133 protected Object calculate() { | 133 protected Object calculate() { |
134 return cast(Object)getStatusMaxSeverity(validationStatusProviders_); | 134 return cast(Object)getStatusMaxSeverity(validationStatusProviders_); |