Author: akazakov
Date: 2011-10-27 18:30:36 -0400 (Thu, 27 Oct 2011)
New Revision: 36060
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/validation/CDICoreValidator.java
Log:
https://issues.jboss.org/browse/JBIDE-9244 Seam Solder: default bean validation
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/validation/CDICoreValidator.java
===================================================================
---
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/validation/CDICoreValidator.java 2011-10-27
21:17:35 UTC (rev 36059)
+++
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/validation/CDICoreValidator.java 2011-10-27
22:30:36 UTC (rev 36060)
@@ -134,12 +134,7 @@
CDICoreNature nature = CDICorePlugin.getCDI(project, true);
cdiProject = nature.getDelegate();
dependencies = nature.getDefinitions().getAllDependencies();
-
extensions = nature.getExtensionManager().getValidatorFeatures();
- Set<CDICoreNature> ns = nature.getCDIProjects();
- for (CDICoreNature n: ns) {
- extensions.addAll(n.getExtensionManager().getValidatorFeatures());
- }
injectionValidationFeatures =
nature.getExtensionManager().getFeatures(IInjectionPointValidatorFeature.class);
}
@@ -664,6 +659,7 @@
names.add(bName);
StringBuffer sb = new StringBuffer(bName);
for (IBean iBean : beans) {
+ getValidationContext().addLinkedCoreResource(SHORT_ID, name, iBean.getSourcePath(),
true);
bName = iBean.getElementName();
if(bean!=iBean && !names.contains(bName)) {
names.add(bName);