Author: scabanovich
Date: 2012-08-29 17:59:33 -0400 (Wed, 29 Aug 2012)
New Revision: 43305
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/validation/CDICoreValidator.java
Log:
JBIDE-12479
https://issues.jboss.org/browse/JBIDE-12479
Replaced IInjectionPoint.getResource().getFullPath() by IInjectionPoint.getSourcePath() in
CDICoreValidator, since the latter call gives the same result, but
IInjectionPoint.getResource() is time consuming.
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 2012-08-29
20:39:48 UTC (rev 43304)
+++
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/validation/CDICoreValidator.java 2012-08-29
21:59:33 UTC (rev 43305)
@@ -1630,7 +1630,7 @@
private void collectAllRelatedInjectionsForType(ICDIProject cdiProject, IType type,
IBean bean, Set<IPath> relatedResources) {
for (IInjectionPoint injection :
cdiProject.getInjections(type.getFullyQualifiedName())) {
if(!injection.getClassBean().getBeanClass().isBinary() &&
injection.getClassBean()!=bean) {
- relatedResources.add(injection.getResource().getFullPath());
+ relatedResources.add(injection.getSourcePath());
}
}
}