Mercurial > projects > dwt-addons
comparison dwtx/jface/text/source/AnnotationBarHoverManager.d @ 142:893c017bcdc5
instanceof
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 24 Aug 2008 21:29:00 +0200 |
parents | b6bad70d540a |
children | 53b889547456 |
comparison
equal
deleted
inserted
replaced
141:ea8dd2e11034 | 142:893c017bcdc5 |
---|---|
644 | 644 |
645 if ( cast(CompositeRuler)fVerticalRulerInfo ) { | 645 if ( cast(CompositeRuler)fVerticalRulerInfo ) { |
646 CompositeRuler comp= cast(CompositeRuler) fVerticalRulerInfo; | 646 CompositeRuler comp= cast(CompositeRuler) fVerticalRulerInfo; |
647 for (Iterator it= comp.getDecoratorIterator(); it.hasNext();) { | 647 for (Iterator it= comp.getDecoratorIterator(); it.hasNext();) { |
648 Object o= it.next(); | 648 Object o= it.next(); |
649 if (o instanceof IVerticalRulerInfoExtension && o instanceof IVerticalRulerInfo) { | 649 if ( cast(IVerticalRulerInfoExtension)o && o instanceof IVerticalRulerInfo) { |
650 if ((cast(IVerticalRulerInfo) o).getControl() is event.getSource()) { | 650 if ((cast(IVerticalRulerInfo) o).getControl() is event.getSource()) { |
651 IAnnotationHover hover= (cast(IVerticalRulerInfoExtension) o).getHover(); | 651 IAnnotationHover hover= (cast(IVerticalRulerInfoExtension) o).getHover(); |
652 if (hover !is null) | 652 if (hover !is null) |
653 return hover; | 653 return hover; |
654 } | 654 } |