/** Provide object used for synchronization of methods working with * Secondaries. * @return The private field <CODE>secondary</CODE>. */ Object synchObjectSecondary() { Object lock = checkSecondary(); if (lock == null) throw new IllegalStateException("checkSecondary was null from " + this); // NOI18N return checkSecondary(); }
/** 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); } } }