Author: vrubezhny
Date: 2009-04-27 12:43:54 -0400 (Mon, 27 Apr 2009)
New Revision: 14939
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/contentassist/ExtendedJSPContentAssistProcessor.java
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/contentassist/FaceletsHtmlContentAssistProcessor.java
Log:
JBIDE-3845 Code assist for #{messages['...']} should suggest properties when user
types "[".
The '[' character is added to CA auto activation characters.
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/contentassist/ExtendedJSPContentAssistProcessor.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/contentassist/ExtendedJSPContentAssistProcessor.java 2009-04-27
15:17:48 UTC (rev 14938)
+++
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/contentassist/ExtendedJSPContentAssistProcessor.java 2009-04-27
16:43:54 UTC (rev 14939)
@@ -167,6 +167,7 @@
StringBuffer redhatDefaultChars = new StringBuffer(new String(superAutoActivChars));
if(redhatDefaultChars.indexOf(".")<0) {
redhatDefaultChars.append('.');
+ redhatDefaultChars.append('[');
store.setDefault(JSPUIPreferenceNames.AUTO_PROPOSE_CODE,
redhatDefaultChars.toString());
store.setValue(JSPUIPreferenceNames.AUTO_PROPOSE_CODE,
redhatDefaultChars.toString());
}
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/contentassist/FaceletsHtmlContentAssistProcessor.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/contentassist/FaceletsHtmlContentAssistProcessor.java 2009-04-27
15:17:48 UTC (rev 14938)
+++
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/contentassist/FaceletsHtmlContentAssistProcessor.java 2009-04-27
16:43:54 UTC (rev 14939)
@@ -751,6 +751,7 @@
StringBuffer redhatDefaultChars = new StringBuffer(new String(superAutoActivChars));
if(redhatDefaultChars.indexOf(".")<0) {
redhatDefaultChars.append('.');
+ redhatDefaultChars.append('[');
store.setDefault(HTMLUIPreferenceNames.AUTO_PROPOSE_CODE,
redhatDefaultChars.toString());
store.setValue(HTMLUIPreferenceNames.AUTO_PROPOSE_CODE,
redhatDefaultChars.toString());
}