Mercurial > projects > dwt-addons
diff dwtx/jface/text/source/projection/SourceViewerInformationControl.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/text/source/projection/SourceViewerInformationControl.d Sun Aug 24 02:22:48 2008 +0200 +++ b/dwtx/jface/text/source/projection/SourceViewerInformationControl.d Sun Aug 24 02:26:23 2008 +0200 @@ -189,7 +189,7 @@ * @param input the input object */ public void setInput(Object input) { - if (input instanceof String) + if ( cast(String)input ) setInformation(cast(String)input); else setInformation(null); @@ -421,7 +421,7 @@ do { if (control is fShell) return true; - if (control instanceof Shell) + if ( cast(Shell)control ) return false; control= control.getParent(); } while (control !is null);