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

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

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
BufferedReader b =
  • Codota IconInputStream in;new BufferedReader(new InputStreamReader(in))
  • Codota IconReader in;new BufferedReader(in)
  • Codota IconFile file;new BufferedReader(new FileReader(file))
  • Smart code suggestions by Codota
}
origin: org.eclipse.jdt/org.eclipse.jdt.ui

/**
 * @see IAnnotationModelListenerExtension#modelChanged(AnnotationModelEvent)
 */
@Override
public void modelChanged(AnnotationModelEvent event) {
  for (IAnnotationModelListener curr : fListenerList) {
    if (curr instanceof IAnnotationModelListenerExtension) {
      ((IAnnotationModelListenerExtension) curr).modelChanged(event);
    }
  }
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

/**
 * @see IAnnotationModelListenerExtension#modelChanged(AnnotationModelEvent)
 */
@Override
public void modelChanged(AnnotationModelEvent event) {
  for (IAnnotationModelListener curr : fListenerList) {
    if (curr instanceof IAnnotationModelListenerExtension) {
      ((IAnnotationModelListenerExtension) curr).modelChanged(event);
    }
  }
}
origin: org.eclipse/org.eclipse.ajdt.ui

/**
 * @see IAnnotationModelListenerExtension#modelChanged(AnnotationModelEvent)
 */
public void modelChanged(AnnotationModelEvent event) {
  Object[] listeners= fListenerList.getListeners();
  for (int i= 0; i < listeners.length; i++) {
    Object curr= listeners[i];
    if (curr instanceof IAnnotationModelListenerExtension) {
      ((IAnnotationModelListenerExtension) curr).modelChanged(event);
    }
  }
}

origin: org.eclipse/org.eclipse.jdt.ui

/**
 * @see IAnnotationModelListenerExtension#modelChanged(AnnotationModelEvent)
 */
public void modelChanged(AnnotationModelEvent event) {
  Object[] listeners= fListenerList.getListeners();
  for (int i= 0; i < listeners.length; i++) {
    Object curr= listeners[i];
    if (curr instanceof IAnnotationModelListenerExtension) {
      ((IAnnotationModelListenerExtension) curr).modelChanged(event);
    }
  }
}
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.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/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.sourceIAnnotationModelListenerExtension

Javadoc

Extension interface for IAnnotationModelListener. Introduces a notification mechanism that notifies the user by means of AnnotationModelEvents. Thus, more detailed information can be sent to the listener. This mechanism replaces the original notification mechanism of IAnnotationModelListener.

Most used methods

  • modelChanged
    Called if a model change occurred on the given model.

Popular in Java

  • Running tasks concurrently on multiple threads
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getSharedPreferences (Context)
  • addToBackStack (FragmentTransaction)
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Vector (java.util)
    The Vector class implements a growable array of objects. Like an array, it contains components that
  • JTextField (javax.swing)
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.This exception may include information for locating the er
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