Codota Logo
IAnnotationModelExtension.addAnnotationModel
Code IndexAdd Codota to your IDE (free)

How to use
addAnnotationModel
method
in
org.eclipse.jface.text.source.IAnnotationModelExtension

Best Java code snippets using org.eclipse.jface.text.source.IAnnotationModelExtension.addAnnotationModel (Showing top 15 results out of 315)

  • Common ways to obtain IAnnotationModelExtension
private void myMethod () {
IAnnotationModelExtension i =
  • Codota Iconnew AnnotationModel()
  • Smart code suggestions by Codota
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

/**
 * Creates the visual annotation model on top of the given annotation model.
 *
 * @param annotationModel the wrapped annotation model
 * @return the visual annotation model on top of the given annotation model
 * @since 3.0
 */
protected IAnnotationModel createVisualAnnotationModel(IAnnotationModel annotationModel) {
  IAnnotationModelExtension model= new AnnotationModel();
  model.addAnnotationModel(MODEL_ANNOTATION_MODEL, annotationModel);
  return (IAnnotationModel) model;
}
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.platform/org.eclipse.jface.text

/**
 * Creates the visual annotation model on top of the given annotation model.
 *
 * @param annotationModel the wrapped annotation model
 * @return the visual annotation model on top of the given annotation model
 * @since 3.0
 */
protected IAnnotationModel createVisualAnnotationModel(IAnnotationModel annotationModel) {
  IAnnotationModelExtension model= new AnnotationModel();
  model.addAnnotationModel(MODEL_ANNOTATION_MODEL, annotationModel);
  return (IAnnotationModel) model;
}
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: at.bestsolution.eclipse/org.eclipse.fx.text.ui

/**
 * Creates the visual annotation model on top of the given annotation model.
 *
 * @param annotationModel the wrapped annotation model
 * @return the visual annotation model on top of the given annotation model
 * @since 3.0
 */
@SuppressWarnings("static-method")
protected IAnnotationModel createVisualAnnotationModel(IAnnotationModel annotationModel) {
  IAnnotationModelExtension model= new AnnotationModel();
  model.addAnnotationModel(MODEL_ANNOTATION_MODEL, annotationModel);
  return (IAnnotationModel) model;
}
origin: angelozerr/jdt-codemining

public RevisionInformation getRevisionInformation(IResource resource, ITextViewer viewer, ITextEditor textEditor) {
  for (IRevisionInformationProvider provider : providers) {
    if (provider.canApply(resource)) {
      RevisionInformation info = provider.getRevisionInformation(resource);
      if (info != null) {
        ILineDiffer differ = provider.getDocumentLineDiffer(viewer, textEditor);
        // Connect line differ
        IAnnotationModelExtension ext = (IAnnotationModelExtension) ((ISourceViewer) viewer).getAnnotationModel();
        ext.addAnnotationModel(RevisionInformationSupport.MY_QUICK_DIFF_MODEL_ID, (IAnnotationModel) differ);
        return info;
      }
    }
  }
  return null;
}
origin: org.eclipse.platform/org.eclipse.jface.text

private void ensureAnnotationModelInstalled() {
  LinkedPositionAnnotations lpa= fCurrentTarget.fAnnotationModel;
  if (lpa != null) {
    ITextViewer viewer= fCurrentTarget.getViewer();
    if (viewer instanceof ISourceViewer) {
      ISourceViewer sv= (ISourceViewer) viewer;
      IAnnotationModel model= sv.getAnnotationModel();
      if (model instanceof IAnnotationModelExtension) {
        IAnnotationModelExtension ext= (IAnnotationModelExtension) model;
        IAnnotationModel ourModel= ext.getAnnotationModel(getUniqueKey());
        if (ourModel == null) {
          ext.addAnnotationModel(getUniqueKey(), lpa);
        }
      }
    }
  }
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

private void ensureAnnotationModelInstalled() {
  LinkedPositionAnnotations lpa= fCurrentTarget.fAnnotationModel;
  if (lpa != null) {
    ITextViewer viewer= fCurrentTarget.getViewer();
    if (viewer instanceof ISourceViewer) {
      ISourceViewer sv= (ISourceViewer) viewer;
      IAnnotationModel model= sv.getAnnotationModel();
      if (model instanceof IAnnotationModelExtension) {
        IAnnotationModelExtension ext= (IAnnotationModelExtension) model;
        IAnnotationModel ourModel= ext.getAnnotationModel(getUniqueKey());
        if (ourModel == null) {
          ext.addAnnotationModel(getUniqueKey(), lpa);
        }
      }
    }
  }
}
origin: org.eclipse.platform/org.eclipse.ui.workbench.texteditor

model.addAnnotationModel(IChangeRulerColumn.QUICK_DIFF_MODEL_ID, differ);
origin: org.eclipse/org.eclipse.ui.workbench.texteditor

model.addAnnotationModel(IChangeRulerColumn.QUICK_DIFF_MODEL_ID, differ);
origin: org.eclipse.scout.sdk.deps/org.eclipse.ui.workbench.texteditor

model.addAnnotationModel(IChangeRulerColumn.QUICK_DIFF_MODEL_ID, differ);
origin: org.eclipse/org.eclipse.ui.editors

modelExtension.addAnnotationModel(IChangeRulerColumn.QUICK_DIFF_MODEL_ID, newDiffer);
origin: org.eclipse.scout.sdk.deps/org.eclipse.ui.editors

modelExtension.addAnnotationModel(IChangeRulerColumn.QUICK_DIFF_MODEL_ID, newDiffer);
origin: org.eclipse.scout.sdk.deps/org.eclipse.ui.editors

if (model == null)
  model= new AnnotationModel();
model.addAnnotationModel(IChangeRulerColumn.QUICK_DIFF_MODEL_ID, differ);
origin: org.eclipse/org.eclipse.ui.editors

if (model == null)
  model= new AnnotationModel();
model.addAnnotationModel(IChangeRulerColumn.QUICK_DIFF_MODEL_ID, differ);
org.eclipse.jface.text.sourceIAnnotationModelExtensionaddAnnotationModel

Javadoc

Attaches attachment to the receiver. Connects attachment to the currently connected document. If attachment is already attached (even) under a different key), it is not attached again.

Popular methods of IAnnotationModelExtension

  • replaceAnnotations
    Adds and removes annotations to/from this annotation model in a single step. The annotations to remo
  • getAnnotationModel
    Returns the attached IAnnotationModel for key, or null if none is attached for key.
  • removeAnnotationModel
    Removes and returns the attached IAnnotationModel forkey.
  • modifyAnnotationPosition
    Modifies the position associated with the given annotation to equal the given position. If the annot
  • removeAllAnnotations
    Removes all annotations from this annotation model.
  • getModificationStamp
    Returns the modification stamp of this annotation model.

Popular in Java

  • Creating JSON documents from java classes using gson
  • getApplicationContext (Context)
  • onRequestPermissionsResult (Fragment)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • Point (java.awt)
    A point representing a location in (x, y) coordinate space, specified in integer precision.
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement.A servlet is a small Java program that runs within
  • JComboBox (javax.swing)
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