Author: scabanovich
Date: 2011-05-26 19:11:27 -0400 (Thu, 26 May 2011)
New Revision: 31533
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/scanner/ClassPathMonitor.java
Log:
JBIDE-9005
https://issues.jboss.org/browse/JBIDE-9005
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 2011-05-26
23:11:10 UTC (rev 31532)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/scanner/ClassPathMonitor.java 2011-05-26
23:11:27 UTC (rev 31533)
@@ -28,6 +28,7 @@
import org.jboss.tools.common.model.XJob;
import org.jboss.tools.common.model.XJob.XRunnable;
import org.jboss.tools.common.model.XModelObject;
+import org.jboss.tools.common.model.filesystems.FileSystemsHelper;
import org.jboss.tools.common.model.plugin.ModelPlugin;
import org.jboss.tools.common.model.project.ext.AbstractClassPathMonitor;
import org.jboss.tools.common.model.util.EclipseResourceUtil;
@@ -84,8 +85,8 @@
String fileName = new File(p).getName();
if(EclipseResourceUtil.SYSTEM_JAR_SET.contains(fileName)) continue;
- String jsname = "lib-" + fileName; //$NON-NLS-1$
- XModelObject o = model.getByPath("FileSystems").getChildByPath(jsname);
//$NON-NLS-1$
+
+ XModelObject o = FileSystemsHelper.getLibs(model).getLibrary(p);
if(o == null) continue;
LoadedDeclarations c = null;
@@ -99,9 +100,7 @@
if(c == null) {
c = new LoadedDeclarations();
}
- if(c != null) {
- componentsLoaded(c, new Path(p));
- }
+ componentsLoaded(c, new Path(p));
}
validateProjectDependencies();