Author: scabanovich
Date: 2010-10-29 05:52:02 -0400 (Fri, 29 Oct 2010)
New Revision: 26128
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/scanner/lib/ClassPathMonitor.java
Log:
JBIDE-7319
https://jira.jboss.org/browse/JBIDE-7319
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/scanner/lib/ClassPathMonitor.java
===================================================================
---
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/scanner/lib/ClassPathMonitor.java 2010-10-29
09:49:11 UTC (rev 26127)
+++
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/scanner/lib/ClassPathMonitor.java 2010-10-29
09:52:02 UTC (rev 26128)
@@ -47,17 +47,12 @@
public Map<String, XModelObject> process() {
Map<String, XModelObject> newJars = new HashMap<String, XModelObject>();
- Iterator<String> it = processedPaths.iterator();
- while(it.hasNext()) {
- String p = it.next();
- if(paths.contains(p)) continue;
+ for (String p: syncProcessedPaths()) {
project.pathRemoved(new Path(p));
- it.remove();
}
for (int i = 0; i < paths.size(); i++) {
String p = paths.get(i);
- if(processedPaths.contains(p)) continue;
- processedPaths.add(p);
+ if(!requestForLoad(p)) continue;
String fileName = new File(p).getName();
if(EclipseResourceUtil.SYSTEM_JAR_SET.contains(fileName)) continue;