Author: akazakov
Date: 2009-06-18 14:11:41 -0400 (Thu, 18 Jun 2009)
New Revision: 16051
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/taglib/AbstractTagLib.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-2808
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/taglib/AbstractTagLib.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/taglib/AbstractTagLib.java 2009-06-18
17:33:04 UTC (rev 16050)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/taglib/AbstractTagLib.java 2009-06-18
18:11:41 UTC (rev 16051)
@@ -115,7 +115,7 @@
protected IComponent[] getComponents(KbQuery query, String prefix, IPageContext context)
{
String fullTagName = null;
boolean mask = false;
- if(query.getType()==KbQuery.Type.TAG_NAME) {
+ if(query.getType()==KbQuery.Type.TAG_NAME || query.getType()==KbQuery.Type.TEXT) {
fullTagName = query.getValue();
mask = query.isMask();
} else {
@@ -318,10 +318,10 @@
String prefix = getPrefix(query, context);
List<TextProposal> proposals = new ArrayList<TextProposal>();
IComponent[] components = getComponents(query, prefix, context);
- if(query.getType() == KbQuery.Type.TAG_NAME) {
+ if(query.getType() == KbQuery.Type.TAG_NAME || query.getType() == KbQuery.Type.TEXT) {
for (int i = 0; i < components.length; i++) {
if(!(components[i] instanceof CustomComponentExtension)) {
- proposals.add(getProposal(prefix, components[i]));
+ proposals.add(getProposal(prefix, components[i]));
}
}
} else {
@@ -341,7 +341,7 @@
TextProposal proposal = new TextProposal();
proposal.setContextInfo(component.getDescription());
proposal.setSource(component);
- StringBuffer label = new StringBuffer();
+ StringBuffer label = new StringBuffer("<");
if(prefix!=null) {
label.append(prefix + KbQuery.PREFIX_SEPARATOR);
}
@@ -357,6 +357,7 @@
if(!component.canHaveBody()) {
label.append(" /");
}
+ label.append(">");
proposal.setReplacementString(label.toString());