Author: scabanovich
Date: 2009-08-17 09:52:31 -0400 (Mon, 17 Aug 2009)
New Revision: 17109
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/jspeditor/JSPTextEditor.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-1826
Most complete and correct list of attributes is in referenced tld.
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/jspeditor/JSPTextEditor.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/jspeditor/JSPTextEditor.java 2009-08-17
12:59:36 UTC (rev 17108)
+++
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/jspeditor/JSPTextEditor.java 2009-08-17
13:52:31 UTC (rev 17109)
@@ -140,6 +140,7 @@
import org.jboss.tools.jst.web.kb.PageProcessor;
import org.jboss.tools.jst.web.kb.KbQuery.Type;
import org.jboss.tools.jst.web.kb.internal.JspContextImpl;
+import org.jboss.tools.jst.web.kb.internal.taglib.TLDTag;
import org.jboss.tools.jst.web.kb.taglib.IAttribute;
import org.jboss.tools.jst.web.kb.taglib.IComponent;
import org.jboss.tools.jst.web.kb.taglib.ICustomTagLibComponent;
@@ -832,9 +833,10 @@
public IComponent findComponent(KbQuery query) {
IComponent[] cs = PageProcessor.getInstance().getComponents(query, pageContext,
true);
if(cs == null || cs.length == 0) return null;
+ if(cs.length == 1) return cs[0];
IComponent s = null;
for (IComponent c: cs) {
- if(c instanceof ICustomTagLibComponent) {
+ if(c instanceof TLDTag /*ICustomTagLibComponent*/) {
s = c;
break;
}