Java 类org.eclipse.jdt.core.IBufferChangedListener 实例源码

项目:eclipse.jdt.ls    文件:DocumentAdapter.java   
@Override
public void addBufferChangedListener(IBufferChangedListener listener) {
    synchronized (lock) {
        if (!fBufferListeners.contains(listener)) {
            fBufferListeners.add(listener);
        }
    }
}
项目:eclipse.jdt.ls    文件:DocumentAdapter.java   
private void fireBufferChanged(BufferChangedEvent event) {
    IBufferChangedListener[] listeners = null;
    synchronized (lock) {
        listeners = fBufferListeners.toArray(new IBufferChangedListener[fBufferListeners.size()]);
    }
    for (IBufferChangedListener listener : listeners) {
        listener.bufferChanged(event);
    }
}
项目:che    文件:DocumentAdapter.java   
private void fireBufferChanged(BufferChangedEvent event) {
  if (fBufferListeners != null && fBufferListeners.size() > 0) {
    Iterator<IBufferChangedListener> e =
        new ArrayList<IBufferChangedListener>(fBufferListeners).iterator();
    while (e.hasNext()) e.next().bufferChanged(event);
  }
}
项目:Eclipse-Postfix-Code-Completion    文件:DocumentAdapter.java   
private void fireBufferChanged(BufferChangedEvent event) {
    if (fBufferListeners != null && fBufferListeners.size() > 0) {
        Iterator<IBufferChangedListener> e= new ArrayList<IBufferChangedListener>(fBufferListeners).iterator();
        while (e.hasNext())
            e.next().bufferChanged(event);
    }
}
项目:Eclipse-Postfix-Code-Completion-Juno38    文件:DocumentAdapter.java   
private void fireBufferChanged(BufferChangedEvent event) {
    if (fBufferListeners != null && fBufferListeners.size() > 0) {
        Iterator<IBufferChangedListener> e= new ArrayList<IBufferChangedListener>(fBufferListeners).iterator();
        while (e.hasNext())
            e.next().bufferChanged(event);
    }
}
项目:eclipse.jdt.ls    文件:DocumentAdapter.java   
@Override
public void addBufferChangedListener(IBufferChangedListener listener) {}
项目:eclipse.jdt.ls    文件:DocumentAdapter.java   
@Override
public void removeBufferChangedListener(IBufferChangedListener listener) {}
项目:eclipse.jdt.ls    文件:DocumentAdapter.java   
@Override
public synchronized void removeBufferChangedListener(IBufferChangedListener listener) {
    synchronized (lock) {
        fBufferListeners.remove(listener);
    }
}
项目:che    文件:DocumentAdapter.java   
public void addBufferChangedListener(IBufferChangedListener listener) {
  Assert.isNotNull(listener);
  if (!fBufferListeners.contains(listener)) fBufferListeners.add(listener);
}
项目:che    文件:DocumentAdapter.java   
public void removeBufferChangedListener(IBufferChangedListener listener) {
  Assert.isNotNull(listener);
  fBufferListeners.remove(listener);
}
项目:Eclipse-Postfix-Code-Completion    文件:DocumentAdapter.java   
public void addBufferChangedListener(IBufferChangedListener listener) {
    Assert.isNotNull(listener);
    if (!fBufferListeners.contains(listener))
        fBufferListeners.add(listener);
}
项目:Eclipse-Postfix-Code-Completion    文件:DocumentAdapter.java   
public void removeBufferChangedListener(IBufferChangedListener listener) {
    Assert.isNotNull(listener);
    fBufferListeners.remove(listener);
}
项目:Eclipse-Postfix-Code-Completion-Juno38    文件:DocumentAdapter.java   
public void addBufferChangedListener(IBufferChangedListener listener) {
    Assert.isNotNull(listener);
    if (!fBufferListeners.contains(listener))
        fBufferListeners.add(listener);
}
项目:Eclipse-Postfix-Code-Completion-Juno38    文件:DocumentAdapter.java   
public void removeBufferChangedListener(IBufferChangedListener listener) {
    Assert.isNotNull(listener);
    fBufferListeners.remove(listener);
}
项目:che    文件:DocumentAdapter.java   
public void addBufferChangedListener(IBufferChangedListener listener) {}
项目:che    文件:DocumentAdapter.java   
public void removeBufferChangedListener(IBufferChangedListener listener) {}
项目:Eclipse-Postfix-Code-Completion    文件:DocumentAdapter.java   
public void addBufferChangedListener(IBufferChangedListener listener) {}
项目:Eclipse-Postfix-Code-Completion    文件:DocumentAdapter.java   
public void removeBufferChangedListener(IBufferChangedListener listener) {}
项目:Eclipse-Postfix-Code-Completion-Juno38    文件:DocumentAdapter.java   
public void addBufferChangedListener(IBufferChangedListener listener) {}
项目:Eclipse-Postfix-Code-Completion-Juno38    文件:DocumentAdapter.java   
public void removeBufferChangedListener(IBufferChangedListener listener) {}