Author: vrubezhny
Date: 2010-01-28 11:39:18 -0500 (Thu, 28 Jan 2010)
New Revision: 19994
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/JspContextImpl.java
Log:
JBIDE-5753: EL code completion fails on facelets xhtml files
Logged exception is fixed
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/JspContextImpl.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/JspContextImpl.java 2010-01-28
16:23:56 UTC (rev 19993)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/JspContextImpl.java 2010-01-28
16:39:18 UTC (rev 19994)
@@ -59,6 +59,17 @@
return superNameSpaces;
}
+ /*
+ * The method is commented due the following reasons:
+ * 1.
https://jira.jboss.org/jira/browse/JBIDE-5753.
+ * 2. Wrong way of gathering Var-s from the included contexts if any. There are at least
two ways
+ * of how the code may be included into the page, but anyway we cannot use offset within
the page
+ * to search for Var-s in other pages.
+ * 3. Because of ##1-2 this method should be modified in future, but for now we're
excluding the included
+ * contexts from the account. So, super method does this job well.
+ *
+ * DO NOT uncomment this until the #2 will be solved
+ *
@Override
public Var[] getVars(int offset) {
Var[] thisVars = super.getVars(offset);
@@ -89,7 +100,8 @@
}
return result;
}
-
+ */
+
public ITagLibrary[] getLibraries() {
List<ITagLibrary> libraries = new ArrayList<ITagLibrary>();