Author: vrubezhny
Date: 2011-11-11 09:51:41 -0500 (Fri, 11 Nov 2011)
New Revision: 36303
Modified:
trunk/common/plugins/org.jboss.tools.common.el.ui/src/org/jboss/tools/common/el/ui/ca/ELProposalProcessor.java
Log:
JBIDE-9910 Proposal info for message bundles in code completion for EL
Fix CA for java element/bean proposals in Java files
Modified:
trunk/common/plugins/org.jboss.tools.common.el.ui/src/org/jboss/tools/common/el/ui/ca/ELProposalProcessor.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.el.ui/src/org/jboss/tools/common/el/ui/ca/ELProposalProcessor.java 2011-11-11
14:48:19 UTC (rev 36302)
+++
trunk/common/plugins/org.jboss.tools.common.el.ui/src/org/jboss/tools/common/el/ui/ca/ELProposalProcessor.java 2011-11-11
14:51:41 UTC (rev 36303)
@@ -629,7 +629,7 @@
if (string.indexOf('\'') != -1 &&
restOfEL.indexOf('\'') != -1) // Exclude last quote if this char already
exists
string = string.substring(0, string.lastIndexOf('\''));
- if (string.indexOf(']') == -1 && restOfEL.indexOf(']') ==
-1) // Add closing square bracket if needed
+ if ((string.indexOf('[') != -1 || prefix.indexOf('[') != -1)
&& string.indexOf(']') == -1 && restOfEL.indexOf(']') ==
-1) // Add closing square bracket if needed
string += ']';
string += proposalSufix;