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

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

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
StringBuilder s =
  • Codota Iconnew StringBuilder()
  • Codota Iconnew StringBuilder(32)
  • Codota IconString str;new StringBuilder(str)
  • Smart code suggestions by Codota
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

/**
 * @see IAnnotationModelListener#modelChanged(IAnnotationModel)
 */
@Override
public void modelChanged(IAnnotationModel model) {
  for (IAnnotationModelListener listener : fListenerList) {
    listener.modelChanged(model);
  }
}
origin: org.eclipse.jdt/org.eclipse.jdt.ui

/**
 * @see IAnnotationModelListener#modelChanged(IAnnotationModel)
 */
@Override
public void modelChanged(IAnnotationModel model) {
  for (IAnnotationModelListener listener : fListenerList) {
    listener.modelChanged(model);
  }
}
origin: org.eclipse/org.eclipse.jdt.ui

/**
 * @see IAnnotationModelListener#modelChanged(IAnnotationModel)
 */
public void modelChanged(IAnnotationModel model) {
  Object[] listeners= fListenerList.getListeners();
  for (int i= 0; i < listeners.length; i++) {
    ((IAnnotationModelListener) listeners[i]).modelChanged(model);
  }
}
origin: org.eclipse/org.eclipse.ajdt.ui

/**
 * @see IAnnotationModelListener#modelChanged(IAnnotationModel)
 */
public void modelChanged(IAnnotationModel model) {
  Object[] listeners= fListenerList.getListeners();
  for (int i= 0; i < listeners.length; i++) {
    ((IAnnotationModelListener) listeners[i]).modelChanged(model);
  }
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.ui.workbench.texteditor

/**
 * Informs all annotation model listeners that this model has been changed
 * as described in the annotation model event. The event is sent out
 * to all listeners implementing <code>IAnnotationModelListenerExtension</code>.
 * All other listeners are notified by just calling <code>modelChanged(IAnnotationModel)</code>.
 *
 * @param event the event to be sent out to the listeners
 */
protected void fireModelChanged(AnnotationModelEvent event) {
  ArrayList<IAnnotationModelListener> v= new ArrayList<>(fAnnotationModelListeners);
  Iterator<IAnnotationModelListener> e= v.iterator();
  while (e.hasNext()) {
    IAnnotationModelListener l= e.next();
    if (l instanceof IAnnotationModelListenerExtension)
       ((IAnnotationModelListenerExtension)l).modelChanged(event);
    else
      l.modelChanged(this);
  }
}
origin: org.eclipse.platform/org.eclipse.ui.workbench.texteditor

/**
 * Informs all annotation model listeners that this model has been changed
 * as described in the annotation model event. The event is sent out
 * to all listeners implementing <code>IAnnotationModelListenerExtension</code>.
 * All other listeners are notified by just calling <code>modelChanged(IAnnotationModel)</code>.
 *
 * @param event the event to be sent out to the listeners
 */
protected void fireModelChanged(AnnotationModelEvent event) {
  ArrayList<IAnnotationModelListener> v= new ArrayList<>(fAnnotationModelListeners);
  Iterator<IAnnotationModelListener> e= v.iterator();
  while (e.hasNext()) {
    IAnnotationModelListener l= e.next();
    if (l instanceof IAnnotationModelListenerExtension)
       ((IAnnotationModelListenerExtension)l).modelChanged(event);
    else
      l.modelChanged(this);
  }
}
origin: org.eclipse/org.eclipse.ui.workbench.texteditor

/**
 * Informs all annotation model listeners that this model has been changed
 * as described in the annotation model event. The event is sent out
 * to all listeners implementing <code>IAnnotationModelListenerExtension</code>.
 * All other listeners are notified by just calling <code>modelChanged(IAnnotationModel)</code>.
 *
 * @param event the event to be sent out to the listeners
 */
protected void fireModelChanged(AnnotationModelEvent event) {
  ArrayList v= new ArrayList(fAnnotationModelListeners);
  Iterator e= v.iterator();
  while (e.hasNext()) {
    IAnnotationModelListener l= (IAnnotationModelListener)e.next();
    if (l instanceof IAnnotationModelListenerExtension)
       ((IAnnotationModelListenerExtension)l).modelChanged(event);
    else
      l.modelChanged(this);
  }
}
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.text

@Override
public void addAnnotationModelListener(IAnnotationModelListener listener) {
  if (!fAnnotationModelListeners.contains(listener)) {
    fAnnotationModelListeners.add(listener);
    if (listener instanceof IAnnotationModelListenerExtension) {
      IAnnotationModelListenerExtension extension= (IAnnotationModelListenerExtension) listener;
      AnnotationModelEvent event= createAnnotationModelEvent();
      event.markSealed();
      extension.modelChanged(event);
    } else
      listener.modelChanged(this);
  }
}
origin: org.eclipse.platform/org.eclipse.text

@Override
public void addAnnotationModelListener(IAnnotationModelListener listener) {
  if (!fAnnotationModelListeners.contains(listener)) {
    fAnnotationModelListeners.add(listener);
    if (listener instanceof IAnnotationModelListenerExtension) {
      IAnnotationModelListenerExtension extension= (IAnnotationModelListenerExtension) listener;
      AnnotationModelEvent event= createAnnotationModelEvent();
      event.markSealed();
      extension.modelChanged(event);
    } else
      listener.modelChanged(this);
  }
}
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.text

/**
 * Informs all annotation model listeners that this model has been changed
 * as described in the annotation model event. The event is sent out
 * to all listeners implementing <code>IAnnotationModelListenerExtension</code>.
 * All other listeners are notified by just calling <code>modelChanged(IAnnotationModel)</code>.
 *
 * @param event the event to be sent out to the listeners
 * @since 2.0
 */
protected void fireModelChanged(AnnotationModelEvent event) {
  event.markSealed();
  if (event.isEmpty())
    return;
  ArrayList<IAnnotationModelListener> v= new ArrayList<>(fAnnotationModelListeners);
  Iterator<IAnnotationModelListener> e= v.iterator();
  while (e.hasNext()) {
    IAnnotationModelListener l= e.next();
    if (l instanceof IAnnotationModelListenerExtension)
      ((IAnnotationModelListenerExtension) l).modelChanged(event);
    else if (l != null)
      l.modelChanged(this);
  }
}
origin: org.eclipse.platform/org.eclipse.text

/**
 * Informs all annotation model listeners that this model has been changed
 * as described in the annotation model event. The event is sent out
 * to all listeners implementing <code>IAnnotationModelListenerExtension</code>.
 * All other listeners are notified by just calling <code>modelChanged(IAnnotationModel)</code>.
 *
 * @param event the event to be sent out to the listeners
 * @since 2.0
 */
protected void fireModelChanged(AnnotationModelEvent event) {
  event.markSealed();
  if (event.isEmpty())
    return;
  ArrayList<IAnnotationModelListener> v= new ArrayList<>(fAnnotationModelListeners);
  Iterator<IAnnotationModelListener> e= v.iterator();
  while (e.hasNext()) {
    IAnnotationModelListener l= e.next();
    if (l instanceof IAnnotationModelListenerExtension)
      ((IAnnotationModelListenerExtension) l).modelChanged(event);
    else if (l != null)
      l.modelChanged(this);
  }
}
org.eclipse.jface.text.sourceIAnnotationModelListener

Javadoc

Interface for objects interested in getting informed about annotation model changes. Changes are the addition or removal of annotations managed by the model. Clients may implement this interface. In order to provided backward compatibility for clients of IAnnotationModelListener, extension interfaces are used to provide a means of evolution. The following extension interfaces exist:
  • org.eclipse.jface.text.source.IAnnotationModelListenerExtensionsince version 2.0 replacing the change notification mechanisms.

Most used methods

  • modelChanged
    Called if a model change occurred on the given model. Replaced by IAnnotationModelListenerExtension#

Popular in Java

  • Reading from database using SQL prepared statement
  • setContentView (Activity)
  • onCreateOptionsMenu (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • BigInteger (java.math)
    Immutable arbitrary-precision integers. All operations behave as if BigIntegers were represented in
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
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