Author: scabanovich
Date: 2011-12-02 14:33:11 -0500 (Fri, 02 Dec 2011)
New Revision: 36901
Modified:
trunk/common/plugins/org.jboss.tools.common.validation/src/org/jboss/tools/common/validation/ContextValidationHelper.java
Log:
JBIDE-10161
https://issues.jboss.org/browse/JBIDE-10161
Derived resources are excluded from JBoss Tools validation.
Modified:
trunk/common/plugins/org.jboss.tools.common.validation/src/org/jboss/tools/common/validation/ContextValidationHelper.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.validation/src/org/jboss/tools/common/validation/ContextValidationHelper.java 2011-12-02
19:09:24 UTC (rev 36900)
+++
trunk/common/plugins/org.jboss.tools.common.validation/src/org/jboss/tools/common/validation/ContextValidationHelper.java 2011-12-02
19:33:11 UTC (rev 36901)
@@ -105,7 +105,8 @@
Set<IProject> projects = getAllProjects();
for (int i = 0; i < uris.length; i++) {
IFile currentFile = root.getFile(new Path(uris[i]));
- if(projects.contains(currentFile.getProject())) {
+ if(projects.contains(currentFile.getProject())
+ && !currentFile.isDerived(IResource.CHECK_ANCESTORS)) {
result.add(currentFile);
}
}