This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
package org.netbeans.api.java.classpath;
import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
}
};
private PropertyChangeListener classpathListener = new PropertyChangeListener() {
public void propertyChange(PropertyChangeEvent evt) {
synchronized (GlobalPathRegistry.this) {
//Reset cache
GlobalPathRegistry.this.resetSourceRootsCache ();
private GlobalPathRegistry() {}
if (added != null && !added.contains(paths[i]) && !l.contains(paths[i])) {
added.add(paths[i]);
paths[i].addPropertyChangeListener(classpathListener);
l.add(paths[i]);
if (removed != null && !removed.contains(paths[i]) && !l2.contains(paths[i])) {
removed.add(paths[i]);
paths[i].removePropertyChangeListener(classpathListener);
this.paths.put(id, l2);