Mercurial > projects > dwt-addons
comparison dwtx/jface/text/source/AnnotationModelEvent.d @ 143:53b889547456
instanceof after &&
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 24 Aug 2008 21:32:37 +0200 |
parents | b6bad70d540a |
children | f70d9508c95c |
comparison
equal
deleted
inserted
replaced
142:893c017bcdc5 | 143:53b889547456 |
---|---|
302 * | 302 * |
303 * @return <code>true</code> if this event is still valid, <code>false</code> otherwise | 303 * @return <code>true</code> if this event is still valid, <code>false</code> otherwise |
304 * @since 3.0 | 304 * @since 3.0 |
305 */ | 305 */ |
306 public bool isValid() { | 306 public bool isValid() { |
307 if (fModificationStamp !is null && fAnnotationModel instanceof IAnnotationModelExtension) { | 307 if (fModificationStamp !is null && cast(IAnnotationModelExtension)fAnnotationModel ) { |
308 IAnnotationModelExtension extension= cast(IAnnotationModelExtension) fAnnotationModel; | 308 IAnnotationModelExtension extension= cast(IAnnotationModelExtension) fAnnotationModel; |
309 return fModificationStamp is extension.getModificationStamp(); | 309 return fModificationStamp is extension.getModificationStamp(); |
310 } | 310 } |
311 return true; | 311 return true; |
312 } | 312 } |