@Override public void folderChanged ( final Collection<Entry> added, final Collection<String> removed, final boolean full ) { super.folderChanged ( added, removed, full ); for ( final FolderListener listener : this.listener ) { listener.folderChanged ( added, removed, full ); } }
public void addFolderWatcher ( final FolderWatcher watcher ) { addFolderListener ( watcher, watcher.getLocation () ); }
public void folderChanged ( final Collection<Entry> added, final Collection<String> removed, final boolean full ) { int changed = 0; synchronized ( this ) { if ( full ) { this.cache.clear (); } for ( final Entry entry : added ) { this.cache.put ( entry.getName (), entry ); changed++; } for ( final String name : removed ) { if ( this.cache.remove ( name ) != null ) { changed++; } } if ( changed > 0 || full ) { setChanged (); } } notifyObservers (); }
public void folderChanged ( final Collection<Entry> added, final Collection<String> removed, final boolean full ) { int changed = 0; synchronized ( this ) { if ( full ) { this.cache.clear (); } for ( final Entry entry : added ) { this.cache.put ( entry.getName (), entry ); changed++; } for ( final String name : removed ) { if ( this.cache.remove ( name ) != null ) { changed++; } } if ( changed > 0 || full ) { setChanged (); } } notifyObservers (); }
public void removeFolderWatcher ( final FolderWatcher watcher ) { removeFolderListener ( watcher, watcher.getLocation () ); }
@Override public void folderChanged ( final Collection<Entry> added, final Collection<String> removed, final boolean full ) { super.folderChanged ( added, removed, full ); for ( final FolderListener listener : this.listener ) { listener.folderChanged ( added, removed, full ); } }
public void removeFolderWatcher ( final FolderWatcher watcher ) { removeFolderListener ( watcher, watcher.getLocation () ); }
public void addFolderWatcher ( final FolderWatcher watcher ) { addFolderListener ( watcher, watcher.getLocation () ); }