Author: scabanovich
Date: 2011-10-06 20:29:16 -0400 (Thu, 06 Oct 2011)
New Revision: 35452
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.seam.config.core/src/org/jboss/tools/cdi/seam/config/core/util/Util.java
Log:
JBIDE-9852
https://issues.jboss.org/browse/JBIDE-9852
Seam config migrated to 3.1.
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.seam.config.core/src/org/jboss/tools/cdi/seam/config/core/util/Util.java
===================================================================
---
trunk/cdi/plugins/org.jboss.tools.cdi.seam.config.core/src/org/jboss/tools/cdi/seam/config/core/util/Util.java 2011-10-07
00:13:14 UTC (rev 35451)
+++
trunk/cdi/plugins/org.jboss.tools.cdi.seam.config.core/src/org/jboss/tools/cdi/seam/config/core/util/Util.java 2011-10-07
00:29:16 UTC (rev 35452)
@@ -110,16 +110,15 @@
String[] packages = getPackages(uri);
for (String pkg: packages) {
if(pkg.length() == 0) continue;
- String typeName = null;
+ IType type = null;
if(pkg.equals(PACKAGE_EE)) {
- typeName = Util.EE_TYPES.get(name);
- if(typeName == null) {
- typeName = Util.EE_TYPES_30.get(name);
+ type = project.getType(Util.EE_TYPES.get(name));
+ if(type == null) {
+ type = project.getType(Util.EE_TYPES_30.get(name));
}
} else {
- typeName = pkg + "." + name;
+ type = project.getType(pkg + "." + name);
}
- IType type = project.getType(typeName);
if(type != null) {
return type;
}