Author: scabanovich
Date: 2012-01-25 16:44:57 -0500 (Wed, 25 Jan 2012)
New Revision: 38190
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.seam.text.ext/src/org/jboss/tools/cdi/seam/text/ext/hyperlink/SolderDefaultBeanFilterContributor.java
Log:
Code improvent: default bean extension is to be obtained by static helper method
getExtension(CDICoreNature) rather than by common getExtensionByRuntime with runtime id
which may change.
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.seam.text.ext/src/org/jboss/tools/cdi/seam/text/ext/hyperlink/SolderDefaultBeanFilterContributor.java
===================================================================
---
trunk/cdi/plugins/org.jboss.tools.cdi.seam.text.ext/src/org/jboss/tools/cdi/seam/text/ext/hyperlink/SolderDefaultBeanFilterContributor.java 2012-01-25
21:27:23 UTC (rev 38189)
+++
trunk/cdi/plugins/org.jboss.tools.cdi.seam.text.ext/src/org/jboss/tools/cdi/seam/text/ext/hyperlink/SolderDefaultBeanFilterContributor.java 2012-01-25
21:44:57 UTC (rev 38190)
@@ -14,6 +14,7 @@
import java.util.Iterator;
import java.util.Set;
+import org.jboss.tools.cdi.core.CDICoreNature;
import org.jboss.tools.cdi.core.IBean;
import org.jboss.tools.cdi.core.IBeanMember;
import org.jboss.tools.cdi.core.IInjectionPoint;
@@ -34,7 +35,7 @@
@Override
public void contribute(AssignableBeanFilters filters, IInjectionPoint injectionPoint) {
- ICDIExtension ext =
injectionPoint.getCDIProject().getNature().getExtensionManager().getExtensionByRuntime("org.jboss.solder.bean.defaultbean.DefaultBeanExtension");
+ ICDIExtension ext =
CDISeamSolderDefaultBeanExtension.getExtension(injectionPoint.getCDIProject().getNature());
if(ext == null) {
return;
}
Show replies by date