Package org.eclipse.jface.text.source

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


                /*
                 * Clear existing annotations.
                 */
                Annotation currentAnnotation = currentAnnotations.remove(currentLine);
                if (currentAnnotation != null) {
                    annotationModel.removeAnnotation(currentAnnotation);
                }

                /*
                 * Now check for new ones.
                 */
 
View Full Code Here


            if (annotationModel instanceof IAnnotationModelExtension) {
                ((IAnnotationModelExtension) annotationModel)
                        .replaceAnnotations(fOccurrenceAnnotations, null);
            } else {
                for (int i = 0, length = fOccurrenceAnnotations.length; i < length; i++)
                    annotationModel.removeAnnotation(fOccurrenceAnnotations[i]);
            }
            fOccurrenceAnnotations = null;
        }
    }
}
View Full Code Here

            if (annotationModel instanceof IAnnotationModelExtension) {
                ((IAnnotationModelExtension) annotationModel)
                        .replaceAnnotations(fOccurrenceAnnotations, null);
            } else {
                for (int i = 0, length = fOccurrenceAnnotations.length; i < length; i++)
                    annotationModel.removeAnnotation(fOccurrenceAnnotations[i]);
            }
            fOccurrenceAnnotations = null;
        }
    }
View Full Code Here

      ((IAnnotationModelExtension) annotationModel).replaceAnnotations(
          annotations.toArray(new Annotation[annotations.size()]), newAnnotations);
    }
    else {
      for (Annotation annotation : annotations) {
        annotationModel.removeAnnotation(annotation);
      }

      for (Annotation annotation : newAnnotations.keySet()) {
        annotationModel.addAnnotation(annotation, newAnnotations.get(annotation));
      }
View Full Code Here

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

    if (supportsBatchReplace && !toBeRemovedAnnotations.isEmpty()) {
View Full Code Here

        }
        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.