Author: akazakov
Date: 2010-10-08 10:15:15 -0400 (Fri, 08 Oct 2010)
New Revision: 25647
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/model/JSF2CCAttrsELCompletionEngine.java
Log:
https://jira.jboss.org/browse/JBIDE-7264
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/model/JSF2CCAttrsELCompletionEngine.java
===================================================================
---
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/model/JSF2CCAttrsELCompletionEngine.java 2010-10-08
14:14:50 UTC (rev 25646)
+++
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/model/JSF2CCAttrsELCompletionEngine.java 2010-10-08
14:15:15 UTC (rev 25647)
@@ -38,6 +38,7 @@
import org.jboss.tools.common.model.util.EclipseResourceUtil;
import org.jboss.tools.common.text.TextProposal;
import org.jboss.tools.jsf.JSFModelPlugin;
+import org.jboss.tools.jst.web.kb.IXmlContext;
/**
*
@@ -103,10 +104,15 @@
* @see
org.jboss.tools.common.el.core.resolver.ELResolver2#resolve(org.jboss.tools.common.el.core.resolver.ELContext,
org.jboss.tools.common.el.core.model.ELExpression)
*/
public ELResolution resolve(ELContext context, ELExpression operand, int offset) {
- ELResolutionImpl resolution = resolveELOperand(operand, context, true);
- if(resolution != null)
- resolution.setContext(context);
- return resolution;
+ if(context instanceof IXmlContext) {
+
if(((IXmlContext)context).getURIs().contains("http://java.sun.com/js...
{
+ ELResolutionImpl resolution = resolveELOperand(operand, context, true);
+ if(resolution != null)
+ resolution.setContext(context);
+ return resolution;
+ }
+ }
+ return null;
}
public ELResolutionImpl resolveELOperand(ELExpression operand,