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

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

Best Java code snippets using org.eclipse.jface.text.source.IAnnotationModelExtension.removeAnnotationModel (Showing top 9 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

/**
 * Removes the projection annotation model from the given annotation model.
 *
 * @param model the mode from which the projection annotation model is removed
 * @return the removed projection annotation model or <code>null</code> if there was none
 */
private IAnnotationModel removeProjectionAnnotationModel(IAnnotationModel model) {
  if (model instanceof IAnnotationModelExtension) {
    model.removeAnnotationModelListener(fAnnotationModelListener);
    IAnnotationModelExtension extension= (IAnnotationModelExtension) model;
    return extension.removeAnnotationModel(ProjectionSupport.PROJECTION);
  }
  return null;
}
origin: org.eclipse.platform/org.eclipse.jface.text

/**
 * Removes the projection annotation model from the given annotation model.
 *
 * @param model the mode from which the projection annotation model is removed
 * @return the removed projection annotation model or <code>null</code> if there was none
 */
private IAnnotationModel removeProjectionAnnotationModel(IAnnotationModel model) {
  if (model instanceof IAnnotationModelExtension) {
    model.removeAnnotationModelListener(fAnnotationModelListener);
    IAnnotationModelExtension extension= (IAnnotationModelExtension) model;
    return extension.removeAnnotationModel(ProjectionSupport.PROJECTION);
  }
  return null;
}
origin: org.eclipse.platform/org.eclipse.jface.text

private void uninstallAnnotationModel(LinkedModeUITarget target) {
  ITextViewer viewer= target.getViewer();
  if (viewer instanceof ISourceViewer) {
    ISourceViewer sv= (ISourceViewer) viewer;
    IAnnotationModel model= sv.getAnnotationModel();
    if (model instanceof IAnnotationModelExtension) {
      IAnnotationModelExtension ext= (IAnnotationModelExtension) model;
      ext.removeAnnotationModel(getUniqueKey());
    }
  }
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

private void uninstallAnnotationModel(LinkedModeUITarget target) {
  ITextViewer viewer= target.getViewer();
  if (viewer instanceof ISourceViewer) {
    ISourceViewer sv= (ISourceViewer) viewer;
    IAnnotationModel model= sv.getAnnotationModel();
    if (model instanceof IAnnotationModelExtension) {
      IAnnotationModelExtension ext= (IAnnotationModelExtension) model;
      ext.removeAnnotationModel(getUniqueKey());
    }
  }
}
origin: org.eclipse.platform/org.eclipse.jface.text

/**
 * Disposes the visual annotation model.
 *
 * @since 3.1
 */
protected void disposeVisualAnnotationModel() {
  if (fVisualAnnotationModel != null) {
    if (getDocument() != null)
      fVisualAnnotationModel.disconnect(getDocument());
    if ( fVisualAnnotationModel instanceof IAnnotationModelExtension)
      ((IAnnotationModelExtension)fVisualAnnotationModel).removeAnnotationModel(MODEL_ANNOTATION_MODEL);
    fVisualAnnotationModel= null;
  }
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

/**
 * Disposes the visual annotation model.
 *
 * @since 3.1
 */
protected void disposeVisualAnnotationModel() {
  if (fVisualAnnotationModel != null) {
    if (getDocument() != null)
      fVisualAnnotationModel.disconnect(getDocument());
    if ( fVisualAnnotationModel instanceof IAnnotationModelExtension)
      ((IAnnotationModelExtension)fVisualAnnotationModel).removeAnnotationModel(MODEL_ANNOTATION_MODEL);
    fVisualAnnotationModel= null;
  }
}
origin: at.bestsolution.eclipse/org.eclipse.fx.text.ui

/**
 * Disposes the visual annotation model.
 *
 * @since 3.1
 */
protected void disposeVisualAnnotationModel() {
  if (this.fVisualAnnotationModel != null) {
    if (getDocument() != null)
      this.fVisualAnnotationModel.disconnect(getDocument());
    if ( this.fVisualAnnotationModel instanceof IAnnotationModelExtension)
      ((IAnnotationModelExtension)this.fVisualAnnotationModel).removeAnnotationModel(MODEL_ANNOTATION_MODEL);
    this.fVisualAnnotationModel= null;
  }
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.ui.editors

modelExtension.removeAnnotationModel(IChangeRulerColumn.QUICK_DIFF_MODEL_ID);
origin: org.eclipse/org.eclipse.ui.editors

modelExtension.removeAnnotationModel(IChangeRulerColumn.QUICK_DIFF_MODEL_ID);
org.eclipse.jface.text.sourceIAnnotationModelExtensionremoveAnnotationModel

Javadoc

Removes and returns the attached IAnnotationModel for key.

Popular methods of IAnnotationModelExtension

  • replaceAnnotations
    Adds and removes annotations to/from this annotation model in a single step. The annotations to remo
  • addAnnotationModel
    Attaches attachment to the receiver. Connectsattachment to the currently connected document. Ifattac
  • getAnnotationModel
    Returns the attached IAnnotationModel for key, or null if none is attached for key.
  • 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

  • Reactive rest calls using spring rest template
  • setContentView (Activity)
  • orElseThrow (Optional)
  • addToBackStack (FragmentTransaction)
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • Iterator (java.util)
    An iterator over a collection. Iterator takes the place of Enumeration in the Java Collections Frame
  • LinkedHashMap (java.util)
    Hash table and linked list implementation of the Map interface, with predictable iteration order. Th
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • BoxLayout (javax.swing)
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
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