Mercurial > projects > dwt-addons
diff dwtx/jface/text/contentassist/PopupCloser.d @ 138:b6bad70d540a
Regex instanceof changes
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 24 Aug 2008 02:26:23 +0200 |
parents | 65801ad2b265 |
children | 26688fec6d23 |
line wrap: on
line diff
--- a/dwtx/jface/text/contentassist/PopupCloser.d Sun Aug 24 02:22:48 2008 +0200 +++ b/dwtx/jface/text/contentassist/PopupCloser.d Sun Aug 24 02:26:23 2008 +0200 @@ -257,10 +257,10 @@ if (event.widget instanceof Control) { Control control= cast(Control) event.widget; IInformationControl infoControl= fAdditionalInfoController.getCurrentInformationControl2(); - if (infoControl instanceof IInformationControlExtension5) { + if ( cast(IInformationControlExtension5)infoControl ) { final IInformationControlExtension5 iControl5= cast(IInformationControlExtension5) infoControl; if (iControl5.containsControl(control)) { - if (infoControl instanceof IDelayedInputChangeProvider) { + if ( cast(IDelayedInputChangeProvider)infoControl ) { final IDelayedInputChangeProvider delayedICP= cast(IDelayedInputChangeProvider) infoControl; final IInputChangedListener inputChangeListener= new DelayedInputChangeListener(delayedICP, fAdditionalInfoController.getInternalAccessor().getInformationControlReplacer()); delayedICP.setDelayedInputChangeListener(inputChangeListener);