Codota Logo
AnnotationModelEvent
Code IndexAdd Codota to your IDE (free)

How to use
AnnotationModelEvent
in
org.eclipse.jface.text.source

Best Java code snippets using org.eclipse.jface.text.source.AnnotationModelEvent (Showing top 20 results out of 315)

  • Common ways to obtain AnnotationModelEvent
private void myMethod () {
AnnotationModelEvent a =
  • Codota IconDocumentLineDiffer documentLineDiffer;new AnnotationModelEvent(documentLineDiffer, false)
  • Smart code suggestions by Codota
}
origin: org.eclipse.platform/org.eclipse.text

/**
 * Creates and returns a new annotation model event. Subclasses may override.
 *
 * @return a new and empty annotation model event
 * @since 3.0
 */
protected AnnotationModelEvent createAnnotationModelEvent() {
  return new AnnotationModelEvent(this);
}
origin: org.eclipse.jdt/org.eclipse.jdt.ui

@Override
public void annotationChanged(Annotation annotation) {
  testIfProblemMarker(annotation);
  super.annotationChanged(annotation);
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

@Override
public void annotationAdded(Annotation annotation) {
  super.annotationAdded(annotation);
  testIfProblemMarker(annotation);
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.ui.workbench.texteditor

AnnotationModelEvent ame= new AnnotationModelEvent(this, false);
for (Iterator<QuickDiffRangeDifference> it= fAdded.iterator(); it.hasNext(); ) {
  QuickDiffRangeDifference rd= it.next();
  ame.annotationAdded(rd.getDiffRegion(fDifferences, fLeftDocument));
  ame.annotationRemoved(rd.getDiffRegion(fDifferences, fLeftDocument));
  ame.annotationChanged(rd.getDiffRegion(fDifferences, fLeftDocument));
origin: org.eclipse.platform/org.eclipse.jface.text

@Override
public void modelChanged(AnnotationModelEvent event) {
  if (!event.isValid())
    return;
  if (event.isWorldChange()) {
    update();
    return;
  Annotation[] annotations= event.getAddedAnnotations();
  int length= annotations.length;
  for (int i= 0; i < length; i++) {
  annotations= event.getRemovedAnnotations();
  length= annotations.length;
  for (int i= 0; i < length; i++) {
  annotations= event.getChangedAnnotations();
  length= annotations.length;
  for (int i= 0; i < length; i++) {
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.text

/**
 * Adds the given annotation to the set of annotations that are reported as
 * being removed from the model. If this event is considered a world
 * change, it is no longer so after this method has successfully finished.
 *
 * @param annotation the removed annotation
 * @since 3.0
 */
public void annotationRemoved(Annotation annotation) {
  annotationRemoved(annotation, null);
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

if (DEBUG && event != null && event.isWorldChange()) {
  System.out.println("AP: WORLD CHANGED, stack trace follows:"); //$NON-NLS-1$
  new Throwable().printStackTrace(System.out);
origin: org.eclipse/org.eclipse.ui.workbench.texteditor

AnnotationModelEvent ame= new AnnotationModelEvent(this, false);
for (Iterator it= fAdded.iterator(); it.hasNext(); ) {
  RangeDifference rd= (RangeDifference) it.next();
  ame.annotationAdded(rd.getDiffRegion(fDifferences, fLeftDocument));
  ame.annotationRemoved(rd.getDiffRegion(fDifferences, fLeftDocument));
  ame.annotationChanged(rd.getDiffRegion(fDifferences, fLeftDocument));
origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

@Override
public void modelChanged(AnnotationModelEvent event) {
  if (!event.isValid())
    return;
  if (event.isWorldChange()) {
    update();
    return;
  Annotation[] annotations= event.getAddedAnnotations();
  int length= annotations.length;
  for (int i= 0; i < length; i++) {
  annotations= event.getRemovedAnnotations();
  length= annotations.length;
  for (int i= 0; i < length; i++) {
  annotations= event.getChangedAnnotations();
  length= annotations.length;
  for (int i= 0; i < length; i++) {
origin: org.eclipse.platform/org.eclipse.text

/**
 * Adds the given annotation to the set of annotations that are reported as
 * being removed from the model. If this event is considered a world
 * change, it is no longer so after this method has successfully finished.
 *
 * @param annotation the removed annotation
 * @since 3.0
 */
public void annotationRemoved(Annotation annotation) {
  annotationRemoved(annotation, null);
}
origin: org.eclipse.platform/org.eclipse.jface.text

if (DEBUG && event != null && event.isWorldChange()) {
  System.out.println("AP: WORLD CHANGED, stack trace follows:"); //$NON-NLS-1$
  new Throwable().printStackTrace(System.out);
origin: org.eclipse.platform/org.eclipse.ui.workbench.texteditor

AnnotationModelEvent ame= new AnnotationModelEvent(this, false);
for (Iterator<QuickDiffRangeDifference> it= fAdded.iterator(); it.hasNext(); ) {
  QuickDiffRangeDifference rd= it.next();
  ame.annotationAdded(rd.getDiffRegion(fDifferences, fLeftDocument));
  ame.annotationRemoved(rd.getDiffRegion(fDifferences, fLeftDocument));
  ame.annotationChanged(rd.getDiffRegion(fDifferences, fLeftDocument));
origin: org.eclipse.platform/org.eclipse.jface.text

if (event == null || event.isWorldChange()) {
  isWorldChange= true;
  Annotation[] removedAnnotations= event.getRemovedAnnotations();
  for (Annotation annotation : removedAnnotations) {
    Decoration decoration= highlightedDecorationsMap.remove(annotation);
  Annotation[] changedAnnotations= event.getChangedAnnotations();
  for (Annotation annotation : changedAnnotations) {
    boolean isHighlighting= false;
  e= Arrays.asList(event.getAddedAnnotations()).iterator();
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.text

/**
 * Creates and returns a new annotation model event. Subclasses may override.
 *
 * @return a new and empty annotation model event
 * @since 3.0
 */
protected AnnotationModelEvent createAnnotationModelEvent() {
  return new AnnotationModelEvent(this);
}
origin: org.eclipse.jdt/org.eclipse.jdt.ui

@Override
public void annotationRemoved(Annotation annotation, Position position) {
  super.annotationRemoved(annotation, position);
  testIfProblemMarker(annotation);
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

@Override
public void annotationChanged(Annotation annotation) {
  testIfProblemMarker(annotation);
  super.annotationChanged(annotation);
}
origin: org.eclipse.jdt/org.eclipse.jdt.ui

@Override
public void annotationAdded(Annotation annotation) {
  super.annotationAdded(annotation);
  testIfProblemMarker(annotation);
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

if (event == null || event.isWorldChange()) {
  isWorldChange= true;
  Annotation[] removedAnnotations= event.getRemovedAnnotations();
  for (int i= 0, length= removedAnnotations.length; i < length; i++) {
    Annotation annotation= removedAnnotations[i];
  Annotation[] changedAnnotations= event.getChangedAnnotations();
  for (int i= 0, length= changedAnnotations.length; i < length; i++) {
    Annotation annotation= changedAnnotations[i];
  e= Arrays.asList(event.getAddedAnnotations()).iterator();
origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

@Override
public synchronized void modelChanged(final IAnnotationModel model) {
  if (DEBUG)
    System.err.println("AP: OLD API of AnnotationModelListener called"); //$NON-NLS-1$
  modelChanged(new AnnotationModelEvent(model));
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

@Override
public void annotationRemoved(Annotation annotation, Position position) {
  super.annotationRemoved(annotation, position);
  testIfProblemMarker(annotation);
}
org.eclipse.jface.text.sourceAnnotationModelEvent

Javadoc

Specification of changes applied to annotation models. The event carries the changed annotation model as well as added, removed, and modified annotations.

An event can be sealed. Afterwards it can not be modified. Thus, the normal process is that an empty event is created, filled with the changed information, and before it is sent to the listeners, the event is sealed.

Most used methods

  • <init>
    Creates a new annotation model event for the given model.
  • annotationChanged
    Adds the given annotation to the set of annotations that are reported as being changed from the mode
  • annotationAdded
    Adds the given annotation to the set of annotations that are reported as being added from the model.
  • annotationRemoved
    Adds the given annotation to the set of annotations that are reported as being removed from the mode
  • getAddedAnnotations
    Returns the added annotations.
  • getChangedAnnotations
    Returns the changed annotations.
  • getRemovedAnnotations
    Returns the removed annotations.
  • isWorldChange
    Returns whether this annotation model events contains detailed information about the modifications a
  • getAnnotationModel
    Returns the model this event refers to.
  • getPositionOfRemovedAnnotation
    Returns the position of the removed annotation at that point in time when the annotation has been re
  • isEmpty
    Returns whether this annotation model event is empty or not. If this event represents a world change
  • isValid
    Returns whether this annotation model event is still valid.
  • isEmpty,
  • isValid,
  • markSealed,
  • markWorldChange

Popular in Java

  • Making http post requests using okhttp
  • addToBackStack (FragmentTransaction)
  • runOnUiThread (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • FileOutputStream (java.io)
    A file output stream is an output stream for writing data to aFile or to a FileDescriptor. Whether
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Hashtable (java.util)
    Hashtable is a synchronized implementation of Map. All optional operations are supported.Neither key
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now