diff dwtx/jface/internal/text/link/contentassist/ContextInformationPopup2.d @ 138:b6bad70d540a

Regex instanceof changes
author Frank Benoit <benoit@tionex.de>
date Sun, 24 Aug 2008 02:26:23 +0200
parents 65801ad2b265
children eb21d3dfc767
line wrap: on
line diff
--- a/dwtx/jface/internal/text/link/contentassist/ContextInformationPopup2.d	Sun Aug 24 02:22:48 2008 +0200
+++ b/dwtx/jface/internal/text/link/contentassist/ContextInformationPopup2.d	Sun Aug 24 02:26:23 2008 +0200
@@ -184,7 +184,7 @@
         if (validator !is null) {
             ContextFrame current= new ContextFrame();
             current.fInformation= information;
-            current.fBeginOffset= (information instanceof IContextInformationExtension) ? (cast(IContextInformationExtension) information).getContextInformationPosition() : offset;
+            current.fBeginOffset= ( cast(IContextInformationExtension)information ) ? (cast(IContextInformationExtension) information).getContextInformationPosition() : offset;
             if (current.fBeginOffset is -1) current.fBeginOffset= offset;
             current.fOffset= offset;
             current.fVisibleOffset= fViewer.getTextWidget().getSelectionRange().x - (offset - current.fBeginOffset);