Mercurial > projects > dwt-addons
comparison dwtx/jface/text/AbstractHoverInformationControlManager.d @ 142:893c017bcdc5
instanceof
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 24 Aug 2008 21:29:00 +0200 |
parents | 26688fec6d23 |
children | 53b889547456 |
comparison
equal
deleted
inserted
replaced
141:ea8dd2e11034 | 142:893c017bcdc5 |
---|---|
826 private bool inKeepUpZone(int x, int y, Control subjectControl, Rectangle subjectArea, bool blowUp) { | 826 private bool inKeepUpZone(int x, int y, Control subjectControl, Rectangle subjectArea, bool blowUp) { |
827 if (subjectArea.contains(x, y)) | 827 if (subjectArea.contains(x, y)) |
828 return true; | 828 return true; |
829 | 829 |
830 IInformationControl iControl= getCurrentInformationControl(); | 830 IInformationControl iControl= getCurrentInformationControl(); |
831 if ((iControl instanceof IInformationControlExtension5 && !(cast(IInformationControlExtension5) iControl).isVisible())) { | 831 if (( cast(IInformationControlExtension5)iControl && !(cast(IInformationControlExtension5) iControl).isVisible())) { |
832 iControl= null; | 832 iControl= null; |
833 if (getInformationControlReplacer() !is null) { | 833 if (getInformationControlReplacer() !is null) { |
834 iControl= getInformationControlReplacer().getCurrentInformationControl2(); | 834 iControl= getInformationControlReplacer().getCurrentInformationControl2(); |
835 if ((iControl instanceof IInformationControlExtension5 && !(cast(IInformationControlExtension5) iControl).isVisible())) { | 835 if (( cast(IInformationControlExtension5)iControl && !(cast(IInformationControlExtension5) iControl).isVisible())) { |
836 return false; | 836 return false; |
837 } | 837 } |
838 } | 838 } |
839 } | 839 } |
840 if ( cast(IInformationControlExtension3)iControl ) { | 840 if ( cast(IInformationControlExtension3)iControl ) { |