Author: scabanovich
Date: 2007-07-10 12:03:19 -0400 (Tue, 10 Jul 2007)
New Revision: 2372
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamResourceVisitor.java
Log:
EXIN-217 for resource that ceased to declare seam components, invoked cleaning out
components loaded previously.
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamResourceVisitor.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamResourceVisitor.java 2007-07-10
15:57:45 UTC (rev 2371)
+++
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamResourceVisitor.java 2007-07-10
16:03:19 UTC (rev 2372)
@@ -43,7 +43,10 @@
for (int i = 0; i < FILE_SCANNERS.length; i++) {
IFileScanner scanner = FILE_SCANNERS[i];
if(scanner.isRelevant(f)) {
- if(!scanner.isLikelyComponentSource(f)) return false;
+ if(!scanner.isLikelyComponentSource(f)) {
+ p.pathRemoved(f.getFullPath());
+ return false;
+ }
LoadedDeclarations c = null;
try {
c = scanner.parse(f);