Mercurial > projects > dwt-addons
diff dwtx/jface/internal/text/source/DiffPainter.d @ 138:b6bad70d540a
Regex instanceof changes
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 24 Aug 2008 02:26:23 +0200 |
parents | 65801ad2b265 |
children | 75302ef3f92f |
line wrap: on
line diff
--- a/dwtx/jface/internal/text/source/DiffPainter.d Sun Aug 24 02:22:48 2008 +0200 +++ b/dwtx/jface/internal/text/source/DiffPainter.d Sun Aug 24 02:26:23 2008 +0200 @@ -341,7 +341,7 @@ */ public void setModel(IAnnotationModel model) { IAnnotationModel newModel; - if (model instanceof IAnnotationModelExtension) + if ( cast(IAnnotationModelExtension)model ) newModel= (cast(IAnnotationModelExtension) model).getAnnotationModel(IChangeRulerColumn.QUICK_DIFF_MODEL_ID); else newModel= model; @@ -355,7 +355,7 @@ * @param differ the line differ */ private void setDiffer(IAnnotationModel differ) { - if (differ instanceof ILineDiffer) { + if ( cast(ILineDiffer)differ ) { if (fLineDiffer !is differ) { if (fLineDiffer !is null) (cast(IAnnotationModel) fLineDiffer).removeAnnotationModelListener(fAnnotationListener); @@ -530,7 +530,7 @@ * @since 3.3 */ public bool hasInformation() { - if (fLineDiffer instanceof ILineDifferExtension2) + if ( cast(ILineDifferExtension2)fLineDiffer ) return !(cast(ILineDifferExtension2) fLineDiffer).isSuspended(); return fLineDiffer !is null; }