コード例 #1
0
  /*
   * @see org.eclipse.jface.text.source.AnnotationRulerColumn#mouseDoubleClicked(int)
   * @since 3.5
   */
  protected void mouseDoubleClicked(int rulerLine) {
    if (findAnnotation(rulerLine, true) != null) return;

    ProjectionAnnotation annotation = findAnnotation(rulerLine, false);
    if (annotation != null) {
      ProjectionAnnotationModel model = (ProjectionAnnotationModel) getModel();
      model.toggleExpansionState(annotation);
    }
  }
コード例 #2
0
 /*
  * @see org.eclipse.jface.text.source.AnnotationRulerColumn#mouseClicked(int)
  */
 protected void mouseClicked(int line) {
   clearCurrentAnnotation();
   if (fMouseDownLine != line) return;
   ProjectionAnnotation annotation = findAnnotation(line, true);
   if (annotation != null) {
     ProjectionAnnotationModel model = (ProjectionAnnotationModel) getModel();
     model.toggleExpansionState(annotation);
   }
 }