Author: yradtsevich
Date: 2008-10-06 06:57:10 -0400 (Mon, 06 Oct 2008)
New Revision: 10684
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template/JsfBodyTemplate.java
Log:
Now h:body tag works.
isRecreateAtAttrChange method deleted from class
org.jboss.tools.jsf.vpe.jsf.template.JsfBodyTemplate.
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template/JsfBodyTemplate.java
===================================================================
---
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template/JsfBodyTemplate.java 2008-10-06
10:49:27 UTC (rev 10683)
+++
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template/JsfBodyTemplate.java 2008-10-06
10:57:10 UTC (rev 10684)
@@ -13,18 +13,14 @@
import org.jboss.tools.vpe.editor.context.VpePageContext;
import org.jboss.tools.vpe.editor.template.VpeAbstractTemplate;
import org.jboss.tools.vpe.editor.template.VpeCreationData;
-//import org.jboss.tools.vpe.html.template.HtmlBodyTemplate;
+import org.jboss.tools.vpe.html.template.HtmlBodyTemplate;
import org.mozilla.interfaces.nsIDOMDocument;
import org.mozilla.interfaces.nsIDOMElement;
import org.w3c.dom.Element;
import org.w3c.dom.NamedNodeMap;
import org.w3c.dom.Node;
-
/**
- * TODO There was code which didn't compile . It was commented .
- */
-/**
* A wrapper of VpeAbstractTemplate. Does the same, but ignores all attributes except
id.
* @author yradtsevich
* @see HtmlBodyTemplate
@@ -32,11 +28,11 @@
public class JsfBodyTemplate extends VpeAbstractTemplate {
public static final String ID_ID = "id"; //$NON-NLS-1$
-// private final HtmlBodyTemplate htmlBodyTemplate = new HtmlBodyTemplate();
+ private final HtmlBodyTemplate htmlBodyTemplate = new HtmlBodyTemplate();
-// /**
-// * @see
org.jboss.tools.vpe.html.template.HtmlBodyTemplate#create(org.jboss.tools.vpe.editor.context.VpePageContext,
org.w3c.dom.Node, org.mozilla.interfaces.nsIDOMDocument)
-// */
+ /**
+ * @see
org.jboss.tools.vpe.html.template.HtmlBodyTemplate#create(org.jboss.tools.vpe.editor.context.VpePageContext,
org.w3c.dom.Node, org.mozilla.interfaces.nsIDOMDocument)
+ */
public VpeCreationData create(VpePageContext pageContext, Node sourceNode,
nsIDOMDocument visualDocument) {
sourceNode = sourceNode.cloneNode(true);
@@ -50,22 +46,6 @@
}
}
-// return htmlBodyTemplate.create(pageContext, sourceNode, visualDocument);
- return null;
+ return htmlBodyTemplate.create(pageContext, sourceNode, visualDocument);
}
-
- // TODO: change to default implementation (remove)
- /* (non-Javadoc)
- * @see
org.jboss.tools.vpe.editor.template.VpeAbstractTemplate#isRecreateAtAttrChange(org.jboss.tools.vpe.editor.context.VpePageContext,
org.w3c.dom.Element, org.mozilla.interfaces.nsIDOMDocument,
org.mozilla.interfaces.nsIDOMElement, java.lang.Object, java.lang.String,
java.lang.String)
- */
- @Override
- public boolean isRecreateAtAttrChange(VpePageContext pageContext,
- Element sourceElement, nsIDOMDocument visualDocument,
- nsIDOMElement visualNode, Object data, String name, String value) {
- // TODO: change to false
- return true;
- }
-
-
-
}
Show replies by date