Mercurial > projects > dwt-addons
diff dwtx/jface/text/AbstractHoverInformationControlManager.d @ 138:b6bad70d540a
Regex instanceof changes
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 24 Aug 2008 02:26:23 +0200 |
parents | 25170b5a8951 |
children | 26688fec6d23 |
line wrap: on
line diff
--- a/dwtx/jface/text/AbstractHoverInformationControlManager.d Sun Aug 24 02:22:48 2008 +0200 +++ b/dwtx/jface/text/AbstractHoverInformationControlManager.d Sun Aug 24 02:26:23 2008 +0200 @@ -268,7 +268,7 @@ fSubjectControl.addMouseMoveListener(this); fSubjectControl.addControlListener(this); fSubjectControl.addKeyListener(this); - if (fSubjectControl instanceof Scrollable) { + if ( cast(Scrollable)fSubjectControl ) { Scrollable scrollable= cast(Scrollable) fSubjectControl; ScrollBar vBar= scrollable.getVerticalBar(); if (vBar !is null) @@ -312,7 +312,7 @@ fSubjectControl.removeMouseMoveListener(this); fSubjectControl.removeControlListener(this); fSubjectControl.removeKeyListener(this); - if (fSubjectControl instanceof Scrollable) { + if ( cast(Scrollable)fSubjectControl ) { Scrollable scrollable= cast(Scrollable) fSubjectControl; ScrollBar vBar= scrollable.getVerticalBar(); if (vBar !is null) @@ -455,7 +455,7 @@ } else if (cancelReplacingDelay()) { if (event.type is DWT.MouseUp) { stop(); // avoid that someone else replaces the info control before the async is exec'd - if (infoControl instanceof IDelayedInputChangeProvider) { + if ( cast(IDelayedInputChangeProvider)infoControl ) { final IDelayedInputChangeProvider delayedICP= cast(IDelayedInputChangeProvider) infoControl; final IInputChangedListener inputChangeListener= new DelayedInputChangeListener(delayedICP, getInformationControlReplacer()); delayedICP.setDelayedInputChangeListener(inputChangeListener); @@ -837,7 +837,7 @@ } } } - if (iControl instanceof IInformationControlExtension3) { + if ( cast(IInformationControlExtension3)iControl ) { IInformationControlExtension3 iControl3= cast(IInformationControlExtension3) iControl; Rectangle iControlBounds= subjectControl.getDisplay().map(null, subjectControl, iControl3.getBounds());