Java 类org.eclipse.jface.text.source.IAnnotationModelListenerExtension 实例源码

项目:eclemma    文件:CoverageAnnotationModel.java   
private void fireModelChanged(AnnotationModelEvent event) {
  event.markSealed();
  if (!event.isEmpty()) {
    for (final IAnnotationModelListener l : annotationModelListeners) {
      if (l instanceof IAnnotationModelListenerExtension) {
        ((IAnnotationModelListenerExtension) l).modelChanged(event);
      } else {
        l.modelChanged(this);
      }
    }
  }
}
项目:Eclipse-Postfix-Code-Completion    文件:CompilationUnitDocumentProvider.java   
/**
 * @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);
        }
    }
}
项目:Eclipse-Postfix-Code-Completion-Juno38    文件:CompilationUnitDocumentProvider.java   
/**
 * @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);
        }
    }
}