Examples of removeAnnotation()


Examples of org.eclipse.jface.text.source.IAnnotationModel.removeAnnotation()

        }
        if (doRemove) {
          if (supportsBatchReplace)
            toBeRemovedAnnotations.add(annotation);
          else
            model.removeAnnotation(annotation);
        }
      }
    }
 
    if (supportsBatchReplace && !toBeRemovedAnnotations.isEmpty()) {
View Full Code Here

Examples of org.eclipse.jface.text.source.IAnnotationModel.removeAnnotation()

  }

  private void removeAnnotations(Collection<Annotation> annotations) {
    IAnnotationModel model = getDocumentProvider().getAnnotationModel(getEditorInput());
    for (Annotation annotation : annotations) {
      model.removeAnnotation(annotation);
    }
  }

  private void addAnnotations(Map<Annotation, Position> annotationToPositionMap) {
    IAnnotationModel model = getDocumentProvider().getAnnotationModel(getEditorInput());
View Full Code Here

Examples of org.eclipse.jface.text.source.IAnnotationModel.removeAnnotation()

    } else {
      for (Iterator i = model.getAnnotationIterator(); i.hasNext();) {
        Annotation a = (Annotation) i.next();

        if (a.getType().equals(fAnnotationType)) {
          model.removeAnnotation(a);
        }
      }
    }
    // System.out.println("Annotations removed.");
    fAnnotations.clear();
View Full Code Here

Examples of org.eclipse.jface.text.source.IAnnotationModel.removeAnnotation()

    } else {
      for (Iterator i = model.getAnnotationIterator(); i.hasNext();) {
        Annotation a = (Annotation) i.next();

        if (a.getType().equals(fAnnotationType)) {
          model.removeAnnotation(a);
        }
      }
      for (PositionedMessage pm : fMessages) {
        Annotation annotation = new Annotation(fAnnotationType, false,
            pm.message);
View Full Code Here

Examples of org.eclipse.jface.text.source.IAnnotationModel.removeAnnotation()

                log.error("AnnotationModel does not "
                    + "support IAnnoationModelExtension: " + model);
                errorPrinted = true;
            }
            for (Annotation annotation : annotations) {
                model.removeAnnotation(annotation);
            }
        }
    }

    /**
 
View Full Code Here

Examples of org.eclipse.jface.text.source.IAnnotationModel.removeAnnotation()

            .hasNext();) {
            Annotation annotation = it.next();
            if (annotation instanceof ViewportAnnotation) {
                if (((ViewportAnnotation) annotation).getSource()
                    .equals(source))
                    model.removeAnnotation(annotation);
            }
        }

        IDocument document = viewer.getDocument();
        try {
View Full Code Here

Examples of org.eclipse.jface.text.source.IAnnotationModel.removeAnnotation()

        if (sma != null) {
          // gray out the marker annotation
          sma.setGrayed(true);
        }
        // remove the temp one
        annotationModel.removeAnnotation(annotationsToRemove[i]);

      }
    }

    if (DEBUG) {
View Full Code Here

Examples of org.eclipse.jface.text.source.IAnnotationModel.removeAnnotation()

      }
    }
    if (!oldAnnotations.isEmpty()) {
      int size = oldAnnotations.size();
      for (int i = 0; i < size; i++) {
        annotationModel.removeAnnotation((Annotation) oldAnnotations.get(i));
      }
    }
  }

  /*
 
View Full Code Here

Examples of org.eclipse.jface.text.source.IAnnotationModel.removeAnnotation()

  }

  private void removeAnnotations(Collection<Annotation> annotations) {
    IAnnotationModel model = getDocumentProvider().getAnnotationModel(getEditorInput());
    for (Annotation annotation : annotations) {
      model.removeAnnotation(annotation);
    }
  }

  private void addAnnotations(Map<Annotation, Position> annotationToPositionMap) {
    IAnnotationModel model = getDocumentProvider().getAnnotationModel(getEditorInput());
View Full Code Here

Examples of org.eclipse.jface.text.source.IAnnotationModel.removeAnnotation()

        }
        if (doRemove) {
          if (supportsBatchReplace)
            toBeRemovedAnnotations.add(annotation);
          else
            model.removeAnnotation(annotation);
        }
      }
    }

    if (supportsBatchReplace && !toBeRemovedAnnotations.isEmpty()) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.