@Override public void annotationAdded(Annotation annotation) { super.annotationAdded(annotation); testIfProblemMarker(annotation); }
@Override public void annotationAdded(Annotation annotation) { super.annotationAdded(annotation); testIfProblemMarker(annotation); }
public void annotationAdded(Annotation annotation) { super.annotationAdded(annotation); testIfProblemMarker(annotation); }
/** * Adds the given annotation to this model. Associates the * annotation with the given position. If requested, all annotation * model listeners are informed about this model change. If the annotation * is already managed by this model nothing happens. * * @param annotation the annotation to add * @param position the associate position * @param fireModelChanged indicates whether to notify all model listeners * @throws BadLocationException if the position is not a valid document position */ protected void addAnnotation(Annotation annotation, Position position, boolean fireModelChanged) throws BadLocationException { if (!fAnnotations.containsKey(annotation)) { addPosition(fDocument, position); fAnnotations.put(annotation, position); fPositions.put(position, annotation); synchronized (getLockObject()) { getAnnotationModelEvent().annotationAdded(annotation); } if (fireModelChanged) fireModelChanged(); } }
/** * Adds the given annotation to this model. Associates the * annotation with the given position. If requested, all annotation * model listeners are informed about this model change. If the annotation * is already managed by this model nothing happens. * * @param annotation the annotation to add * @param position the associate position * @param fireModelChanged indicates whether to notify all model listeners * @throws BadLocationException if the position is not a valid document position */ protected void addAnnotation(Annotation annotation, Position position, boolean fireModelChanged) throws BadLocationException { if (!fAnnotations.containsKey(annotation)) { addPosition(fDocument, position); fAnnotations.put(annotation, position); fPositions.put(position, annotation); synchronized (getLockObject()) { getAnnotationModelEvent().annotationAdded(annotation); } if (fireModelChanged) fireModelChanged(); } }
for (Iterator<QuickDiffRangeDifference> it= fAdded.iterator(); it.hasNext(); ) { QuickDiffRangeDifference rd= it.next(); ame.annotationAdded(rd.getDiffRegion(fDifferences, fLeftDocument));
for (Iterator it= fAdded.iterator(); it.hasNext(); ) { RangeDifference rd= (RangeDifference) it.next(); ame.annotationAdded(rd.getDiffRegion(fDifferences, fLeftDocument));
for (Iterator<QuickDiffRangeDifference> it= fAdded.iterator(); it.hasNext(); ) { QuickDiffRangeDifference rd= it.next(); ame.annotationAdded(rd.getDiffRegion(fDifferences, fLeftDocument));