Author: akazakov
Date: 2007-07-20 08:15:18 -0400 (Fri, 20 Jul 2007)
New Revision: 2536
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/text/java/SeamELCompletionEngine.java
Log:
http://jira.jboss.com/jira/browse/EXIN-330
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/text/java/SeamELCompletionEngine.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/text/java/SeamELCompletionEngine.java 2007-07-20
08:32:48 UTC (rev 2535)
+++
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/text/java/SeamELCompletionEngine.java 2007-07-20
12:15:18 UTC (rev 2536)
@@ -178,7 +178,12 @@
Set<String> proposalsToFilter = new
TreeSet<String>(String.CASE_INSENSITIVE_ORDER);
for (IMember mbr : members) {
try {
- IType type = EclipseJavaUtil.findType(mbr.getJavaProject(),
EclipseJavaUtil.getMemberTypeAsString(mbr));
+ IType type = null;
+ if(mbr instanceof IType) {
+ type = (IType)mbr;
+ } else {
+ type = EclipseJavaUtil.findType(mbr.getJavaProject(),
EclipseJavaUtil.getMemberTypeAsString(mbr));
+ }
proposalsToFilter.addAll(SeamExpressionResolver.getMethodPresentations(type));
proposalsToFilter.addAll(SeamExpressionResolver.getPropertyPresentations(type));
} catch (JavaModelException ex) {