diff dwtx/jface/internal/text/link/contentassist/ContextInformationPopup2.d @ 134:51e6e63f930e

Regex fix for casts
author Frank Benoit <benoit@tionex.de>
date Sun, 24 Aug 2008 01:46:20 +0200
parents 7d818bd32d63
children 65801ad2b265
line wrap: on
line diff
--- a/dwtx/jface/internal/text/link/contentassist/ContextInformationPopup2.d	Sun Aug 24 01:29:22 2008 +0200
+++ b/dwtx/jface/internal/text/link/contentassist/ContextInformationPopup2.d	Sun Aug 24 01:46:20 2008 +0200
@@ -184,7 +184,7 @@
         if (validator !is null) {
             ContextFrame current= new ContextFrame();
             current.fInformation= information;
-            current.fBeginOffset= (information instanceof IContextInformationExtension) ? ((IContextInformationExtension) information).getContextInformationPosition() : offset;
+            current.fBeginOffset= (information instanceof IContextInformationExtension) ? (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);
@@ -306,7 +306,7 @@
             }
 
             if (size > 0) {
-                ContextFrame current= (ContextFrame) fContextFrameStack.peek();
+                ContextFrame current= cast(ContextFrame) fContextFrameStack.peek();
                 internalShowContextFrame(current, false);
             } else {
 
@@ -634,7 +634,7 @@
          */
         fContextInfoPopup.getDisplay().asyncExec(new Runnable() {
 
-            private ContextFrame fFrame= (ContextFrame) fContextFrameStack.peek();
+            private ContextFrame fFrame= cast(ContextFrame) fContextFrameStack.peek();
 
             public void run() {
                 if (Helper2.okToUse(fContextInfoPopup) && fFrame is fContextFrameStack.peek()) {