Author: dazarov
Date: 2010-12-30 15:36:14 -0500 (Thu, 30 Dec 2010)
New Revision: 27838
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/marker/CDIProblemMarkerResolutionGenerator.java
Log:
https://issues.jboss.org/browse/JBIDE-7635
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/marker/CDIProblemMarkerResolutionGenerator.java
===================================================================
---
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/marker/CDIProblemMarkerResolutionGenerator.java 2010-12-30
17:37:16 UTC (rev 27837)
+++
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/marker/CDIProblemMarkerResolutionGenerator.java 2010-12-30
20:36:14 UTC (rev 27838)
@@ -38,6 +38,7 @@
import org.jboss.tools.cdi.core.IBean;
import org.jboss.tools.cdi.core.ICDIProject;
import org.jboss.tools.cdi.core.IInjectionPoint;
+import org.jboss.tools.cdi.core.IInjectionPointField;
import org.jboss.tools.cdi.internal.core.impl.CDIProject;
import org.jboss.tools.cdi.internal.core.validation.CDIValidationErrorManager;
import org.jboss.tools.cdi.ui.CDIUIPlugin;
@@ -200,7 +201,11 @@
Set<IBean> allBeans = cdiProject.getBeans(file.getFullPath());
- return CDIUtil.findInjectionPoint(allBeans, element, start);
+ IInjectionPoint ip = CDIUtil.findInjectionPoint(allBeans, element, start);
+
+ if(ip instanceof IInjectionPointField)
+ return ip;
+ return null;
}
private List<IBean> findBeans(IInjectionPoint injectionPoint){