Mercurial > projects > dwt-addons
diff dwtx/jface/internal/text/InformationControlReplacer.d @ 138:b6bad70d540a
Regex instanceof changes
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 24 Aug 2008 02:26:23 +0200 |
parents | 51e6e63f930e |
children | 26688fec6d23 |
line wrap: on
line diff
--- a/dwtx/jface/internal/text/InformationControlReplacer.d Sun Aug 24 02:22:48 2008 +0200 +++ b/dwtx/jface/internal/text/InformationControlReplacer.d Sun Aug 24 02:26:23 2008 +0200 @@ -138,7 +138,7 @@ IInformationControl informationControl= getInformationControl(); Rectangle controlBounds= fContentBounds; - if (informationControl instanceof IInformationControlExtension3) { + if ( cast(IInformationControlExtension3)informationControl ) { IInformationControlExtension3 iControl3= cast(IInformationControlExtension3) informationControl; Rectangle trim= iControl3.computeTrim(); controlBounds= Geometry.add(controlBounds, trim); @@ -159,7 +159,7 @@ // Caveat: some IInformationControls fail unless setSizeConstraints(..) is called with concrete values informationControl.setSizeConstraints(size.x, size.y); - if (informationControl instanceof IInformationControlExtension2) + if ( cast(IInformationControlExtension2)informationControl ) (cast(IInformationControlExtension2) informationControl).setInput(information); else informationControl.setInformation(information.toString());