Package org.eclipse.jface.text.source.projection

Examples of org.eclipse.jface.text.source.projection.ProjectionAnnotationModel.modifyAnnotations()


        }

      }
    }

    model.modifyAnnotations(null, null, modified.toArray(new Annotation[modified.size()]));
  }
}
View Full Code Here


                .toArray( new Annotation[annotationsToDeleteList.size()] );

            // update annotation model
            if ( !annotationsToDeleteList.isEmpty() || !annotationsToAddMap.isEmpty() )
            {
                projectionAnnotationModel.modifyAnnotations( annotationsToDelete, annotationsToAddMap,
                    new Annotation[0] );
            }

        }
        catch ( BadLocationException e )
View Full Code Here

      if (!intersectsRegion(p , region)) annotations.remove(a);
    }
    // Adjust the page
      ProjectionAnnotationModel annotationModel = viewer.getProjectionAnnotationModel();
      if (annotationModel==null) return;
    annotationModel.modifyAnnotations(deletedAnnotations.toArray(ANNOTATION_ARRAY), annotations, null);
    // Remember old values
    oldAnnotations.putAll(annotations);
    for (Annotation a : deletedAnnotations) {
      oldAnnotations.remove(a)
    }   
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.