[jbosstools-commits] JBoss Tools SVN: r43279 - trunk/common/plugins/org.jboss.tools.common.core/src/org/jboss/tools/common/util.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Tue Aug 28 21:16:30 EDT 2012


Author: scabanovich
Date: 2012-08-28 21:16:29 -0400 (Tue, 28 Aug 2012)
New Revision: 43279

Modified:
   trunk/common/plugins/org.jboss.tools.common.core/src/org/jboss/tools/common/util/TypeResolutionCache.java
Log:
JBIDE-12504
https://issues.jboss.org/browse/JBIDE-12504
Improve simplified type resolution by checking inner type names.


Modified: trunk/common/plugins/org.jboss.tools.common.core/src/org/jboss/tools/common/util/TypeResolutionCache.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.core/src/org/jboss/tools/common/util/TypeResolutionCache.java	2012-08-29 00:43:12 UTC (rev 43278)
+++ trunk/common/plugins/org.jboss.tools.common.core/src/org/jboss/tools/common/util/TypeResolutionCache.java	2012-08-29 01:16:29 UTC (rev 43279)
@@ -61,6 +61,16 @@
 				CommonCorePlugin.getDefault().logError(e);
 				ds = new IImportDeclaration[0];
 			}
+
+			try {
+				IType[] ts = type.getTypes();
+				for (IType t: ts) {
+					types.put(t.getElementName(), t.getFullyQualifiedName('.'));
+				}
+			} catch (JavaModelException e) {
+				CommonCorePlugin.getDefault().logError(e);
+			}			
+
 			IResource r = unit.getResource();
 			
 			if(r instanceof IFile && r.exists()) {



More information about the jbosstools-commits mailing list