Mercurial > projects > dwt-addons
diff dwtx/jface/text/information/InformationPresenter.d @ 142:893c017bcdc5
instanceof
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 24 Aug 2008 21:29:00 +0200 |
parents | b6bad70d540a |
children | 53b889547456 |
line wrap: on
line diff
--- a/dwtx/jface/text/information/InformationPresenter.d Sun Aug 24 21:25:28 2008 +0200 +++ b/dwtx/jface/text/information/InformationPresenter.d Sun Aug 24 21:29:00 2008 +0200 @@ -433,7 +433,7 @@ * @see AbstractInformationControlManager#showInformationControl(Rectangle) */ protected void showInformationControl(Rectangle subjectArea) { - if (fTextViewer instanceof IWidgetTokenOwnerExtension && fTextViewer instanceof IWidgetTokenOwner) { + if ( cast(IWidgetTokenOwnerExtension)fTextViewer && fTextViewer instanceof IWidgetTokenOwner) { IWidgetTokenOwnerExtension extension= cast(IWidgetTokenOwnerExtension) fTextViewer; if (extension.requestWidgetToken(this, WIDGET_PRIORITY)) super.showInformationControl(subjectArea);