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

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

Best Java code snippets using org.eclipse.jface.text.source.IAnnotationModel.removeAnnotationModelListener (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: angelozerr/jdt-codemining

public void uninstall() {
  if (fLineDiffer != null) {
    ((IAnnotationModel) fLineDiffer).removeAnnotationModelListener(fAnnotationListener);
    fLineDiffer = null;
  }
}
origin: org.eclipse.xtext/ui

protected void unregisterListener() {
  if (annotationModel != null) {
    annotationModel.removeAnnotationModelListener(this);
    annotationModel = null;
  }
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

/**
 * Disposes of this painter and releases any resources.
 */
private void handleDispose() {
  if (fLineDiffer != null) {
    ((IAnnotationModel) fLineDiffer).removeAnnotationModelListener(fAnnotationListener);
    fLineDiffer= null;
  }
}
origin: org.eclipse.platform/org.eclipse.jface.text

/**
 * Disposes of this painter and releases any resources.
 */
private void handleDispose() {
  if (fLineDiffer != null) {
    ((IAnnotationModel) fLineDiffer).removeAnnotationModelListener(fAnnotationListener);
    fLineDiffer= null;
  }
}
origin: org.eclipse/org.eclipse.ajdt.ui

public void removeAnnotationModelListener(IAnnotationModelListener listener) {
  if(delegate != null) {
    delegate.removeAnnotationModelListener(listener);
  }
}
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.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.text

@Override
public IAnnotationModel removeAnnotationModel(Object key) {
  IAnnotationModel ret= fAttachments.remove(key);
  if (ret != null) {
    for (int i= 0; i < fOpenConnections; i++)
      ret.disconnect(fDocument);
    ret.removeAnnotationModelListener(fModelListener);
  }
  return ret;
}
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.text

@Override
public IAnnotationModel removeAnnotationModel(Object key) {
  IAnnotationModel ret= fAttachments.remove(key);
  if (ret != null) {
    for (int i= 0; i < fOpenConnections; i++)
      ret.disconnect(fDocument);
    ret.removeAnnotationModelListener(fModelListener);
  }
  return ret;
}
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

@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.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) {
    if (fModel != null)
      fModel.removeAnnotationModelListener(fInternalListener);
    fModel= model;
    if (fModel != null)
      fModel.addAnnotationModelListener(fInternalListener);
    update();
  }
}
origin: org.eclipse.platform/org.eclipse.jface.text

/**
 * Disposes of the painter's resources.
 */
private void handleDispose() {
  updateFocusLine(-1);
  if (fLineDiffer != null) {
    ((IAnnotationModel) fLineDiffer).removeAnnotationModelListener(fAnnotationListener);
    fLineDiffer= null;
  }
  fRevisionSelectionProvider.uninstall();
}
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 (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

/**
 * Disposes of the painter's resources.
 */
private void handleDispose() {
  updateFocusLine(-1);
  if (fLineDiffer != null) {
    ((IAnnotationModel) fLineDiffer).removeAnnotationModelListener(fAnnotationListener);
    fLineDiffer= null;
  }
  fRevisionSelectionProvider.uninstall();
}
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/org.eclipse.jdt.ui

protected void disposeFileInfo(Object element, FileInfo info) {
  if (info instanceof CompilationUnitInfo) {
    CompilationUnitInfo cuInfo= (CompilationUnitInfo) info;
    try  {
      cuInfo.fCopy.discardWorkingCopy();
    } catch (JavaModelException x)  {
      handleCoreException(x, x.getMessage());
    }
    if (cuInfo.fModel != null)
      cuInfo.fModel.removeAnnotationModelListener(fGlobalAnnotationModelListener);
  }
  super.disposeFileInfo(element, info);
}

origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

@Override
protected void disposeFileInfo(Object element, FileInfo info) {
  if (info instanceof CompilationUnitInfo) {
    CompilationUnitInfo cuInfo= (CompilationUnitInfo) info;
    try  {
      cuInfo.fCopy.discardWorkingCopy();
    } catch (JavaModelException x)  {
      handleCoreException(x, x.getMessage());
    }
    if (cuInfo.fModel != null)
      cuInfo.fModel.removeAnnotationModelListener(fGlobalAnnotationModelListener);
  }
  super.disposeFileInfo(element, info);
}
org.eclipse.jface.text.sourceIAnnotationModelremoveAnnotationModelListener

Javadoc

Removes the listener from the model's list of annotation model listeners. If the listener is not registered with the model 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.
  • addAnnotationModelListener
    Registers the annotation model listener with this annotation model. After registration listener is i
  • 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

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