cp2.removePropertyChangeListener (l);
}
}
private void initSourcePaths () {
Properties properties = Properties.getDefault ().
getProperties ("debugger").getProperties ("sources");
Set originalSourceRoots = new HashSet (Arrays.asList (
sourcePathProvider.getOriginalSourceRoots ()
));
Set sourceRoots = new HashSet (Arrays.asList (
sourcePathProvider.getSourceRoots ()
));
Iterator enabledSourceRoots = properties.getProperties ("source_roots").
getCollection ("enabled", Collections.EMPTY_SET).iterator ();
while (enabledSourceRoots.hasNext ()) {
String root = (String) enabledSourceRoots.next ();
if (originalSourceRoots.contains (root))
sourceRoots.add (root);
}
Iterator disabledSourceRoots = properties.getProperties ("source_roots").
getCollection ("disabled", Collections.EMPTY_SET).iterator ();
while (disabledSourceRoots.hasNext ()) {
String root = (String) disabledSourceRoots.next ();
sourceRoots.remove (root);
}