Mercurial > projects > dwt-addons
comparison dwtx/jface/text/source/LineChangeHover.d @ 141:ea8dd2e11034
instanceof and throws
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 24 Aug 2008 21:25:28 +0200 |
parents | b6bad70d540a |
children | f70d9508c95c |
comparison
equal
deleted
inserted
replaced
140:26688fec6d23 | 141:ea8dd2e11034 |
---|---|
243 IAnnotationModel diffModel= (cast(IAnnotationModelExtension)model).getAnnotationModel(IChangeRulerColumn.QUICK_DIFF_MODEL_ID); | 243 IAnnotationModel diffModel= (cast(IAnnotationModelExtension)model).getAnnotationModel(IChangeRulerColumn.QUICK_DIFF_MODEL_ID); |
244 if (diffModel !is null) | 244 if (diffModel !is null) |
245 model= diffModel; | 245 model= diffModel; |
246 } | 246 } |
247 if ( cast(ILineDiffer)model ) { | 247 if ( cast(ILineDiffer)model ) { |
248 if (model instanceof ILineDifferExtension2 && (cast(ILineDifferExtension2)model).isSuspended()) | 248 if (cast(ILineDifferExtension2)model && (cast(ILineDifferExtension2)model).isSuspended()) |
249 return null; | 249 return null; |
250 return cast(ILineDiffer)model; | 250 return cast(ILineDiffer)model; |
251 } | 251 } |
252 return null; | 252 return null; |
253 } | 253 } |