Beispiel #1
0
 /*
  * @see org.eclipse.jface.text.TextViewer#setHoverEnrichMode(org.eclipse.jface.text.ITextViewerExtension8.EnrichMode)
  * @since 3.4
  */
 public void setHoverEnrichMode(EnrichMode mode) {
   super.setHoverEnrichMode(mode);
   if (fVerticalRulerHoveringController != null)
     fVerticalRulerHoveringController.getInternalAccessor().setHoverEnrichMode(mode);
   if (fOverviewRulerHoveringController != null)
     fOverviewRulerHoveringController.getInternalAccessor().setHoverEnrichMode(mode);
 }
Beispiel #2
0
 /**
  * After this method has been executed the caller knows that any installed annotation hover has
  * been installed.
  */
 protected void ensureAnnotationHoverManagerInstalled() {
   if (fVerticalRuler != null
       && (fAnnotationHover != null || !isVerticalRulerOnlyShowingAnnotations())
       && fVerticalRulerHoveringController == null
       && fHoverControlCreator != null) {
     fVerticalRulerHoveringController =
         new AnnotationBarHoverManager(
             fVerticalRuler, this, fAnnotationHover, fHoverControlCreator);
     fVerticalRulerHoveringController.install(fVerticalRuler.getControl());
     fVerticalRulerHoveringController
         .getInternalAccessor()
         .setInformationControlReplacer(new StickyHoverManager(this));
   }
 }