diff dwtx/jface/text/source/AnnotationBarHoverManager.d @ 145:02cd5f1224d3

...
author Frank Benoit <benoit@tionex.de>
date Sun, 24 Aug 2008 22:31:00 +0200
parents 53b889547456
children f70d9508c95c
line wrap: on
line diff
--- a/dwtx/jface/text/source/AnnotationBarHoverManager.d	Sun Aug 24 21:34:15 2008 +0200
+++ b/dwtx/jface/text/source/AnnotationBarHoverManager.d	Sun Aug 24 22:31:00 2008 +0200
@@ -126,7 +126,7 @@
 
     /**
      * The information control closer for the hover information. Closes the information control as soon as the mouse pointer leaves the subject area, a mouse button is pressed, the user presses a key, or the subject control is resized or moved.
-     * 
+     *
      * @since 3.0
      * @deprecated As of 3.4, no longer used as closer from super class is used
      */
@@ -190,7 +190,7 @@
                 fSubjectControl.getShell().addShellListener(this);
                 fSubjectControl.addControlListener(this);
                 fSubjectControl.addKeyListener(this);
-                
+
                 fDisplay= fSubjectControl.getDisplay();
                 if (!fDisplay.isDisposed() && fHideOnMouseWheel) {
                     fHasWheelFilter= true;
@@ -216,18 +216,18 @@
                 fSubjectControl.removeControlListener(this);
                 fSubjectControl.removeKeyListener(this);
             }
-            
+
             if (fDisplay !is null && !fDisplay.isDisposed() && fHasWheelFilter)
                 fDisplay.removeFilter(DWT.MouseWheel, this);
             fHasWheelFilter= false;
-            
+
             fDisplay= null;
-            
+
         }
 
         /**
          * Stops the information control and if <code>delayRestart</code> is set allows restart only after a certain delay.
-         * 
+         *
          * @param delayRestart <code>true</code> if restart should be delayed
          * @deprecated As of 3.4, replaced by {@link #stop()}. Note that <code>delayRestart</code> was never honored.
          */
@@ -262,7 +262,7 @@
         public void mouseDoubleClick(MouseEvent event) {
             hideInformationControl();
         }
-        
+
         /*
          * @see dwt.widgets.Listener#handleEvent(dwt.widgets.Event)
          * @since 3.2
@@ -364,11 +364,11 @@
     protected bool fAllowMouseExit= false;
     /**
      * Whether we should hide the over on mouse wheel action.
-     * 
+     *
      * @since 3.2
      */
     private bool fHideOnMouseWheel= true;
-    
+
     /**
      * The current annotation hover.
      * @since 3.2
@@ -443,7 +443,7 @@
         }
 
     }
-    
+
     /*
      * @see dwtx.jface.text.AbstractInformationControlManager#showInformationControl(dwt.graphics.Rectangle)
      * @since 3.2
@@ -452,7 +452,7 @@
         super.showInformationControl(subjectArea);
         fCurrentHover= getHover(getHoverEvent());
     }
-    
+
     /*
      * @see dwtx.jface.text.AbstractInformationControlManager#hideInformationControl()
      * @since 3.2
@@ -533,11 +533,11 @@
             Rectangle size= text.getClientArea();
             Rectangle trim= text.computeTrim(0, 0, 0, 0);
             int height= size.height - trim.height;
-            
+
             int lines= JFaceTextUtil.getLineIndex(text, height) - text.getTopIndex();
-            
+
             int bottomLine= topLine + lines;
-            
+
             int rangeBottomLine= getWidgetLineNumber(lineRange.getStartLine() + lineRange.getNumberOfLines() - 1);
             int bottomDelta= Math.max(rangeBottomLine - bottomLine, 0);
 
@@ -808,7 +808,7 @@
      * <p>
      * <strong>Note:</strong> This method is not intended to be referenced or overridden by clients.
      * </p>
-     * 
+     *
      * @return the replaceable information control accessor
      * @since 3.4
      * @noreference This method is not intended to be referenced by clients.
@@ -817,41 +817,44 @@
     public InternalAccessor getInternalAccessor() {
         return new class()  InternalAccessor {
             public IInformationControl getCurrentInformationControl() {
-                return AnnotationBarHoverManager.super.getInternalAccessor().getCurrentInformationControl();
+                return outer.superGetInternalAccessor().getCurrentInformationControl();
             }
-            
+
             public void setInformationControlReplacer(InformationControlReplacer replacer) {
-                AnnotationBarHoverManager.super.getInternalAccessor().setInformationControlReplacer(replacer);
+                outer.superGetInternalAccessor().setInformationControlReplacer(replacer);
             }
-            
+
             public InformationControlReplacer getInformationControlReplacer() {
-                return AnnotationBarHoverManager.super.getInternalAccessor().getInformationControlReplacer();
+                return outer.superGetInternalAccessor().getInformationControlReplacer();
             }
-            
+
             public bool canReplace(IInformationControl control) {
-                return AnnotationBarHoverManager.super.getInternalAccessor().canReplace(control);
+                return outer.superGetInternalAccessor().canReplace(control);
             }
-            
+
             public bool isReplaceInProgress() {
-                return AnnotationBarHoverManager.super.getInternalAccessor().isReplaceInProgress();
+                return outer.superGetInternalAccessor().isReplaceInProgress();
             }
-            
+
             public void replaceInformationControl(bool takeFocus) {
-                AnnotationBarHoverManager.super.getInternalAccessor().replaceInformationControl(takeFocus);
+                outer.superGetInternalAccessor().replaceInformationControl(takeFocus);
             }
 
             public void cropToClosestMonitor(Rectangle bounds) {
-                AnnotationBarHoverManager.super.getInternalAccessor().cropToClosestMonitor(bounds);
+                outer.superGetInternalAccessor().cropToClosestMonitor(bounds);
             }
-            
+
             public void setHoverEnrichMode(EnrichMode mode) {
-                AnnotationBarHoverManager.super.getInternalAccessor().setHoverEnrichMode(mode);
+                outer.superGetInternalAccessor().setHoverEnrichMode(mode);
             }
-            
+
             public bool getAllowMouseExit() {
                 return fAllowMouseExit;
             }
         };
     }
+    private InternalAccessor superGetInternalAccessor() {
+        return super.getInternalAccessor();
+    }
 }