Author: vrubezhny
Date: 2010-09-09 11:33:24 -0400 (Thu, 09 Sep 2010)
New Revision: 24842
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/contentassist/computers/XmlTagCompletionProposalComputer.java
Log:
JBIDE-2704: Code completion of annotations in beans.xml
Query creation is fixed.
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/contentassist/computers/XmlTagCompletionProposalComputer.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/contentassist/computers/XmlTagCompletionProposalComputer.java 2010-09-09
15:18:50 UTC (rev 24841)
+++
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/contentassist/computers/XmlTagCompletionProposalComputer.java 2010-09-09
15:33:24 UTC (rev 24842)
@@ -391,8 +391,8 @@
protected KbQuery createKbQuery(Type type, String query, String stringQuery, String
prefix, String uri) {
KbQuery kbQuery = new KbQuery();
- String[] parentTags = getParentTags(type == Type.ATTRIBUTE_NAME || type ==
Type.ATTRIBUTE_VALUE);
- String parent = getParent(type == Type.ATTRIBUTE_VALUE, type == Type.ATTRIBUTE_NAME);
+ String[] parentTags = getParentTags(type == Type.ATTRIBUTE_NAME || type ==
Type.ATTRIBUTE_VALUE || type == Type.TAG_BODY);
+ String parent = getParent(type == Type.ATTRIBUTE_VALUE, type == Type.ATTRIBUTE_NAME ||
type == Type.TAG_BODY);
String queryValue = query;
String queryStringValue = stringQuery;