예제 #1
0
 /*
  * @see org.eclipse.jface.text.source.ISourceViewerExtension#showAnnotationsOverview(boolean)
  * @since 2.1
  */
 public void showAnnotationsOverview(boolean show) {
   boolean old = fIsOverviewRulerVisible;
   fIsOverviewRulerVisible = (show && fOverviewRuler != null);
   if (old != fIsOverviewRulerVisible) {
     if (fComposite != null && !fComposite.isDisposed()) fComposite.layout();
     if (fIsOverviewRulerVisible) {
       ensureOverviewHoverManagerInstalled();
     } else if (fOverviewRulerHoveringController != null) {
       fOverviewRulerHoveringController.dispose();
       fOverviewRulerHoveringController = null;
     }
   }
 }
예제 #2
0
 /*
  * @see TextViewer#activatePlugins()
  */
 public void activatePlugins() {
   ensureAnnotationHoverManagerInstalled();
   ensureOverviewHoverManagerInstalled();
   super.activatePlugins();
 }