Codota Logo
IAnnotationModel.addAnnotationModelListener
Code IndexAdd Codota to your IDE (free)

How to use
addAnnotationModelListener
method
in
org.eclipse.jface.text.source.IAnnotationModel

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

  • Common ways to obtain IAnnotationModel
private void myMethod () {
IAnnotationModel i =
  • Codota IconISourceViewer viewer;viewer.getAnnotationModel()
  • Codota Iconnew AnnotationModel()
  • Codota IconIDocumentProvider provider;Object element;provider.getAnnotationModel(element)
  • Smart code suggestions by Codota
}
origin: org.eclipse.platform/org.eclipse.jface.text

/**
 * Constructs this column with the given arguments.
 *
 * @param model the annotation model to get the annotations from
 * @param width the width of the vertical ruler
 */
public AnnotationRulerColumn(IAnnotationModel model, int width) {
  fWidth= width;
  fAllowSetModel= false;
  fModel= model;
  fModel.addAnnotationModelListener(fAnnotationListener);
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

/**
 * Constructs this column with the given arguments.
 *
 * @param model the annotation model to get the annotations from
 * @param width the width of the vertical ruler
 */
public AnnotationRulerColumn(IAnnotationModel model, int width) {
  fWidth= width;
  fAllowSetModel= false;
  fModel= model;
  fModel.addAnnotationModelListener(fInternalListener);
}
origin: org.eclipse/org.eclipse.ajdt.ui

public void addAnnotationModelListener(IAnnotationModelListener listener) {
  if(delegate != null) {
    delegate.addAnnotationModelListener(listener);
  }
}
origin: org.eclipse.platform/org.eclipse.jface.text

/**
 * Constructs this column with the given arguments.
 *
 * @param model the annotation model to get the annotations from
 * @param width the width of the vertical ruler
 * @param annotationAccess the annotation access
 * @since 3.0
 */
public AnnotationRulerColumn(IAnnotationModel model, int width, IAnnotationAccess annotationAccess) {
  this(width, annotationAccess);
  fAllowSetModel= false;
  fModel= model;
  fModel.addAnnotationModelListener(fAnnotationListener);
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

/**
 * Constructs this column with the given arguments.
 *
 * @param model the annotation model to get the annotations from
 * @param width the width of the vertical ruler
 * @param annotationAccess the annotation access
 * @since 3.0
 */
public AnnotationRulerColumn(IAnnotationModel model, int width, IAnnotationAccess annotationAccess) {
  this(width, annotationAccess);
  fAllowSetModel= false;
  fModel= model;
  fModel.addAnnotationModelListener(fInternalListener);
}
origin: org.eclipse.xtext/ui

public AnnotationIssueProcessor(IXtextDocument xtextDocument, IAnnotationModel annotationModel,
    IssueResolutionProvider issueResolutionProvider) {
  super();
  this.annotationModel = annotationModel;
  if(annotationModel == null) 
    throw new IllegalArgumentException("Annotation model cannot be null");
  annotationModel.addAnnotationModelListener(this);
  this.xtextDocument = xtextDocument;
  this.issueResolutionProvider = issueResolutionProvider;
}
origin: angelozerr/jdt-codemining

private void setDiffer(IAnnotationModel differ) {
  if (differ instanceof ILineDiffer || differ == null) {
    if (fLineDiffer != differ) {
      if (fLineDiffer != null)
        ((IAnnotationModel) fLineDiffer).removeAnnotationModelListener(fAnnotationListener);
      fLineDiffer = (ILineDiffer) differ;
      if (fLineDiffer != null)
        ((IAnnotationModel) fLineDiffer).addAnnotationModelListener(fAnnotationListener);
    }
  }
}
origin: org.eclipse.platform/org.eclipse.jface.text

/**
 * Adds the projection annotation model to the given annotation model.
 *
 * @param model the model to which the projection annotation model is added
 */
private void addProjectionAnnotationModel(IAnnotationModel model) {
  if (model instanceof IAnnotationModelExtension) {
    IAnnotationModelExtension extension= (IAnnotationModelExtension) model;
    extension.addAnnotationModel(ProjectionSupport.PROJECTION, fProjectionAnnotationModel);
    model.addAnnotationModelListener(fAnnotationModelListener);
  }
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

/**
 * Adds the projection annotation model to the given annotation model.
 *
 * @param model the model to which the projection annotation model is added
 */
private void addProjectionAnnotationModel(IAnnotationModel model) {
  if (model instanceof IAnnotationModelExtension) {
    IAnnotationModelExtension extension= (IAnnotationModelExtension) model;
    extension.addAnnotationModel(ProjectionSupport.PROJECTION, fProjectionAnnotationModel);
    model.addAnnotationModelListener(fAnnotationModelListener);
  }
}
origin: org.eclipse.platform/org.eclipse.text

@Override
public void addAnnotationModel(Object key, IAnnotationModel attachment) {
  Assert.isNotNull(attachment);
  if (!fAttachments.containsValue(attachment)) {
    fAttachments.put(key, attachment);
    for (int i= 0; i < fOpenConnections; i++)
      attachment.connect(fDocument);
    attachment.addAnnotationModelListener(fModelListener);
  }
}
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.text

@Override
public void addAnnotationModel(Object key, IAnnotationModel attachment) {
  Assert.isNotNull(attachment);
  if (!fAttachments.containsValue(attachment)) {
    fAttachments.put(key, attachment);
    for (int i= 0; i < fOpenConnections; i++)
      attachment.connect(fDocument);
    attachment.addAnnotationModelListener(fModelListener);
  }
}
origin: org.eclipse.platform/org.eclipse.jface.text

/**
 * Sets the line differ.
 *
 * @param differ the line differ
 */
private void setDiffer(IAnnotationModel differ) {
  if (differ instanceof ILineDiffer) {
    if (fLineDiffer != differ) {
      if (fLineDiffer != null)
        ((IAnnotationModel) fLineDiffer).removeAnnotationModelListener(fAnnotationListener);
      fLineDiffer= (ILineDiffer) differ;
      ((IAnnotationModel) fLineDiffer).addAnnotationModelListener(fAnnotationListener);
    }
  }
}
origin: org.eclipse.platform/org.eclipse.jface.text

/**
 * Sets the line differ.
 *
 * @param differ the line differ or <code>null</code> if none
 */
private void setDiffer(IAnnotationModel differ) {
  if (differ instanceof ILineDiffer || differ == null) {
    if (fLineDiffer != differ) {
      if (fLineDiffer != null)
        ((IAnnotationModel) fLineDiffer).removeAnnotationModelListener(fAnnotationListener);
      fLineDiffer= (ILineDiffer) differ;
      if (fLineDiffer != null)
        ((IAnnotationModel) fLineDiffer).addAnnotationModelListener(fAnnotationListener);
    }
  }
}
origin: org.eclipse.platform/org.eclipse.jface.text

@Override
public void setModel(IAnnotationModel model) {
  if (fAllowSetModel && model != fModel) {
    if (fModel != null)
      fModel.removeAnnotationModelListener(fAnnotationListener);
    fModel= model;
    if (fModel != null)
      fModel.addAnnotationModelListener(fAnnotationListener);
    postRedraw();
  }
}
origin: org.eclipse.platform/org.eclipse.jface.text

@Override
public void setModel(IAnnotationModel model) {
  if (model != fModel) {
    if (fModel != null)
      fModel.removeAnnotationModelListener(fInternalListener);
    fModel= model;
    if (fModel != null)
      fModel.addAnnotationModelListener(fInternalListener);
    update();
  }
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

@Override
public void setModel(IAnnotationModel model) {
  if (model != fModel) {
    if (fModel != null)
      fModel.removeAnnotationModelListener(fInternalListener);
    fModel= model;
    if (fModel != null)
      fModel.addAnnotationModelListener(fInternalListener);
    update();
  }
}
origin: org.eclipse.platform/org.eclipse.jface.text

@Override
public void setModel(IAnnotationModel model) {
  if (model != fModel || model != null) {
    if (fModel != null)
      fModel.removeAnnotationModelListener(fInternalListener);
    fModel= model;
    if (fModel != null)
      fModel.addAnnotationModelListener(fInternalListener);
    update();
  }
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

@Override
public void setModel(IAnnotationModel model) {
  if (fAllowSetModel && model != fModel) {
    if (fModel != null)
      fModel.removeAnnotationModelListener(fInternalListener);
    fModel= model;
    if (fModel != null)
      fModel.addAnnotationModelListener(fInternalListener);
    postRedraw();
  }
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

@Override
public void setModel(IAnnotationModel model) {
  if (model != fModel || model != null) {
    if (fModel != null)
      fModel.removeAnnotationModelListener(fInternalListener);
    fModel= model;
    if (fModel != null)
      fModel.addAnnotationModelListener(fInternalListener);
    update();
  }
}
origin: org.eclipse.xtext/ui

protected void updateImageAndRegisterListener() {
  defaultImage = editor.getDefaultImage();
  updateEditorImage(editor);
  annotationModel = editor.getInternalSourceViewer().getAnnotationModel();
  if (annotationModel != null)
    annotationModel.addAnnotationModelListener(this);
}
org.eclipse.jface.text.sourceIAnnotationModeladdAnnotationModelListener

Javadoc

Registers the annotation model listener with this annotation model. After registration listener is informed about each change of this model. If the listener is already registered nothing happens.

Popular methods of IAnnotationModel

  • getPosition
    Returns the position associated with the given annotation.
  • getAnnotationIterator
    Returns all annotations managed by this model.
  • addAnnotation
    Adds a annotation to this annotation model. The annotation is associated with with the given positio
  • removeAnnotation
    Removes the given annotation from the model. I.e. the annotation is no longer managed by this model.
  • connect
    Connects the annotation model to a document. The annotations managed by this model must subsequently
  • disconnect
    Disconnects this model from a document. After that, document changes no longer matter. An annotation
  • removeAnnotationModelListener
    Removes the listener from the model's list of annotation model listeners. If the listener is not reg

Popular in Java

  • Making http requests using okhttp
  • getExternalFilesDir (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Reference (javax.naming)
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
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