Author: scabanovich
Date: 2011-07-28 16:55:35 -0400 (Thu, 28 Jul 2011)
New Revision: 33323
Modified:
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/util/EclipseResourceUtil.java
Log:
JBIDE-9420
https://issues.jboss.org/browse/JBIDE-9420
Modified:
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/util/EclipseResourceUtil.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/util/EclipseResourceUtil.java 2011-07-28
19:55:24 UTC (rev 33322)
+++
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/util/EclipseResourceUtil.java 2011-07-28
20:55:35 UTC (rev 33323)
@@ -675,7 +675,9 @@
} else if(es[i].getEntryKind() == IClasspathEntry.CPE_PROJECT) {
IProject p =
ResourcesPlugin.getWorkspace().getRoot().getProject(es[i].getPath().lastSegment());
if(p == null || !p.isAccessible()) continue;
- if(p.hasNature(JavaCore.NATURE_ID) &&
!p.hasNature("org.jboss.tools.jst.web.kb.kbnature")) {
+ if(p.hasNature(JavaCore.NATURE_ID)
+ && !p.hasNature("org.jboss.tools.jst.web.kb.kbnature")
+ && project.hasNature("org.jboss.tools.jst.web.kb.kbnature")) {
String[] srcs = getJavaProjectSrcLocations(p);
for (String s: srcs) l.add(s);
}