Author: vrubezhny
Date: 2009-06-18 15:00:34 -0400 (Thu, 18 Jun 2009)
New Revision: 16054
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/contentassist/FaceletPageContectAssistProcessor.java
Log:
JBIDE-2808: Improve/refactor org.jboss.tools.common.kb plugin.
Namespace processing is updated to include
http://www.w3.org/1999/xhtml/facelets
namespace
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/contentassist/FaceletPageContectAssistProcessor.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/contentassist/FaceletPageContectAssistProcessor.java 2009-06-18
18:54:48 UTC (rev 16053)
+++
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/contentassist/FaceletPageContectAssistProcessor.java 2009-06-18
19:00:34 UTC (rev 16054)
@@ -42,7 +42,8 @@
import org.w3c.dom.NodeList;
public class FaceletPageContectAssistProcessor extends JspContentAssistProcessor {
-
+ private static final String UI_URI_JSF_FACELETS =
"http://java.sun.com/jsf/facelets";
+ private static final String UI_URI_XHTML_FACELETS =
"http://www.w3.org/1999/xhtml/facelets";
/*
* (non-Javadoc)
* @see org.jboss.tools.jst.jsp.contentassist.JspContentAssistProcessor#createContext()
@@ -134,6 +135,17 @@
}
};
context.addNameSpace(region, nameSpace);
+ if (UI_URI_JSF_FACELETS.equals(uri)) {
+ nameSpace = new INameSpace(){
+ public String getURI() {
+ return UI_URI_XHTML_FACELETS;
+ }
+ public String getPrefix() {
+ return "";
+ }
+ };
+ context.addNameSpace(region, nameSpace);
+ }
}
}
}