comparison dwtx/jface/text/source/AnnotationModelEvent.d @ 134:51e6e63f930e

Regex fix for casts
author Frank Benoit <benoit@tionex.de>
date Sun, 24 Aug 2008 01:46:20 +0200
parents 7d818bd32d63
children b6bad70d540a
comparison
equal deleted inserted replaced
133:7d818bd32d63 134:51e6e63f930e
230 * @param annotation the removed annotation 230 * @param annotation the removed annotation
231 * @return the position of the removed annotation or <code>null</code> 231 * @return the position of the removed annotation or <code>null</code>
232 * @since 3.0 232 * @since 3.0
233 */ 233 */
234 public Position getPositionOfRemovedAnnotation(Annotation annotation) { 234 public Position getPositionOfRemovedAnnotation(Annotation annotation) {
235 return (Position) fRemovedAnnotations.get(annotation); 235 return cast(Position) fRemovedAnnotations.get(annotation);
236 } 236 }
237 237
238 /** 238 /**
239 * Adds the given annotation to the set of annotations that are reported as 239 * Adds the given annotation to the set of annotations that are reported as
240 * being changed from the model. If this event is considered a world 240 * being changed from the model. If this event is considered a world
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 && fAnnotationModel instanceof IAnnotationModelExtension) {
308 IAnnotationModelExtension extension= (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 }
313 313
317 * 317 *
318 * @since 3.0 318 * @since 3.0
319 */ 319 */
320 public void markSealed() { 320 public void markSealed() {
321 if (fAnnotationModel instanceof IAnnotationModelExtension) { 321 if (fAnnotationModel instanceof IAnnotationModelExtension) {
322 IAnnotationModelExtension extension= (IAnnotationModelExtension) fAnnotationModel; 322 IAnnotationModelExtension extension= cast(IAnnotationModelExtension) fAnnotationModel;
323 fModificationStamp= extension.getModificationStamp(); 323 fModificationStamp= extension.getModificationStamp();
324 } 324 }
325 } 325 }
326 } 326 }