Author: scabanovich
Date: 2010-10-29 05:49:11 -0400 (Fri, 29 Oct 2010)
New Revision: 26127
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/scanner/ClassPathMonitor.java
Log:
JBIDE-7319
https://jira.jboss.org/browse/JBIDE-7319
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/scanner/ClassPathMonitor.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/scanner/ClassPathMonitor.java 2010-10-29
09:48:31 UTC (rev 26126)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/scanner/ClassPathMonitor.java 2010-10-29
09:49:11 UTC (rev 26127)
@@ -69,22 +69,16 @@
* Loads kb components from items recently added to class path.
*/
public void process() {
- Iterator<String> it = processedPaths.iterator();
-
if(paths == null) {
ModelPlugin.getDefault().logError("Failed to process class path in kb builder for
project " + project);
return;
}
- 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;
LibraryScanner scanner = new LibraryScanner();