Examples of replaceAnnotations()


Examples of org.eclipse.jface.text.source.IAnnotationModelExtension.replaceAnnotations()

    if (additions.size() > 0) {
      if (visualAnnotationModel instanceof IAnnotationModelExtension) {
        IAnnotationModelExtension extension= (IAnnotationModelExtension)visualAnnotationModel;
        if (!isCanceled(monitor))
          extension.replaceAnnotations(null, additions);
      } else {
        Iterator e1= additions.keySet().iterator();
        while (e1.hasNext()) {
          AnnotationBag bag= (AnnotationBag) e1.next();
          Position position= (Position) additions.get(bag);
View Full Code Here

Examples of org.eclipse.jface.text.source.IAnnotationModelExtension.replaceAnnotations()

      }
    }

    if (fAnnotationModel instanceof IAnnotationModelExtension) {
      IAnnotationModelExtension ext= (IAnnotationModelExtension) fAnnotationModel;
      ext.replaceAnnotations((Annotation[]) fAnnotations.toArray(new Annotation[fAnnotations.size()]), added);
    } else {
      for (Iterator it= fAnnotations.iterator(); it.hasNext();) {
        Annotation annotation= (Annotation) it.next();
        fAnnotationModel.removeAnnotation(annotation);
      }
View Full Code Here

Examples of org.eclipse.jface.text.source.IAnnotationModelExtension.replaceAnnotations()

      for (AnnotationFS annotation : annotations) {
        addAnnotationMap.put(new EclipseAnnotationPeer(annotation), new Position(annotation.getBegin(),
                annotation.getEnd() - annotation.getBegin()));
      }
     
      annotationModel.replaceAnnotations(null, addAnnotationMap);
    }

    /**
     * Removes a collection of annotations.
     *
 
View Full Code Here

Examples of org.eclipse.jface.text.source.IAnnotationModelExtension.replaceAnnotations()

      int removeAnnotationsIndex = 0;
      for (AnnotationFS annotation : deletedAnnotations) {
        removeAnnotations[removeAnnotationsIndex++] = new EclipseAnnotationPeer(annotation);
      }
     
      annotationModel.replaceAnnotations(removeAnnotations, null);
    }

    /**
     *
     * @param annotations
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.