/** Removes all FileObjects that are not isValid from the * set of objects. */ /* package-private */ void removeAllInvalid () { Iterator it = checkSecondary ().entrySet ().iterator (); while (it.hasNext ()) { Map.Entry e = (Map.Entry)it.next (); FileObject fo = (FileObject)e.getKey (); if (!fo.isValid ()) { it.remove (); firePropertyChangeLater (PROP_FILES, null, null); } } }
/** Add a new secondary entry to the list. * @param fe the entry to add */ protected final void addSecondaryEntry (Entry fe) { synchronized ( getSecondary() ) { getSecondary().put (fe.getFile (), fe); } // Fire PROP_FILES only if we have actually finished making the folder. // It is dumb to fire this if we do not yet even know what all of our // initial secondary files are going to be. FolderList l = getFolderList(); if (l == null) { firePropertyChangeLater (PROP_FILES, null, null); } else { // l != null if (l.isCreated()) { firePropertyChangeLater (PROP_FILES, null, null); } else { firePropFilesAfterFinishing(); } } }
/** Remove a secondary entry from the list. * @param fe the entry to remove */ protected final void removeSecondaryEntry (Entry fe) { synchronized (getSecondary()) { getSecondary().remove (fe.getFile ()); } firePropertyChangeLater (PROP_FILES, null, null); if (fe.isImportant ()) { checkConsistency(this); } }
firePropertyChangeLater (PROP_FILES, null, null);
firePropertyChangeLater (PROP_FILES, null, null);