Author: vrubezhny
Date: 2009-09-29 12:44:19 -0400 (Tue, 29 Sep 2009)
New Revision: 17801
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/PageProcessor.java
Log:
JBIDE-4923: Code assist for EL doesn't work in XML files.
Issue is fixed
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/PageProcessor.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/PageProcessor.java 2009-09-29
16:42:31 UTC (rev 17800)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/PageProcessor.java 2009-09-29
16:44:19 UTC (rev 17801)
@@ -16,6 +16,7 @@
import org.jboss.tools.common.el.core.resolver.ELResolver;
import org.jboss.tools.common.text.TextProposal;
+import org.jboss.tools.jst.web.kb.internal.XmlContextImpl;
import org.jboss.tools.jst.web.kb.internal.taglib.CustomTagLibAttribute;
import org.jboss.tools.jst.web.kb.taglib.CustomTagLibManager;
import org.jboss.tools.jst.web.kb.taglib.IAttribute;
@@ -103,7 +104,7 @@
private boolean isQueryForELProposals(KbQuery query, IPageContext context) {
if (query.getType() != KbQuery.Type.ATTRIBUTE_VALUE &&
- ((query.getType() != KbQuery.Type.TEXT ) || !(context instanceof
IFaceletPageContext))) {
+ ((query.getType() != KbQuery.Type.TEXT ) || !(context instanceof IFaceletPageContext
|| context instanceof XmlContextImpl))) {
return false;
}
Show replies by date