Author: sdzmitrovich
Date: 2007-12-18 07:58:58 -0500 (Tue, 18 Dec 2007)
New Revision: 5360
Added:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.facelets/src/org/jboss/tools/jsf/vpe/facelets/template/VpeRepeatTemplate.java
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.facelets/templates/vpe-templates-facelets.xml
Log:
http://jira.jboss.com/jira/browse/JBIDE-1284
Added:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.facelets/src/org/jboss/tools/jsf/vpe/facelets/template/VpeRepeatTemplate.java
===================================================================
---
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.facelets/src/org/jboss/tools/jsf/vpe/facelets/template/VpeRepeatTemplate.java
(rev 0)
+++
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.facelets/src/org/jboss/tools/jsf/vpe/facelets/template/VpeRepeatTemplate.java 2007-12-18
12:58:58 UTC (rev 5360)
@@ -0,0 +1,35 @@
+/*******************************************************************************
+ * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at
http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Exadel, Inc. and Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.jsf.vpe.facelets.template;
+
+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.mozilla.interfaces.nsIDOMDocument;
+import org.w3c.dom.Element;
+import org.w3c.dom.Node;
+
+public class VpeRepeatTemplate extends VpeAbstractTemplate {
+
+ @Override
+ protected void init(Element templateElement) {
+ children = true;
+ modify = true;
+ initTemplateSections(templateElement, false, true, false, false, false);
+ }
+
+ public VpeCreationData create(VpePageContext pageContext, Node sourceNode,
+ nsIDOMDocument visualDocument) {
+
+ return new VpeCreationData(null);
+ }
+
+}
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.facelets/templates/vpe-templates-facelets.xml
===================================================================
---
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.facelets/templates/vpe-templates-facelets.xml 2007-12-18
12:45:19 UTC (rev 5359)
+++
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.facelets/templates/vpe-templates-facelets.xml 2007-12-18
12:58:58 UTC (rev 5360)
@@ -79,8 +79,7 @@
</vpe:tag>
<vpe:tag name="ui:repeat" case-sensitive="yes" >
- <vpe:template children="yes" modify="yes">
- <div />
+ <vpe:template
class="org.jboss.tools.jsf.vpe.facelets.template.VpeRepeatTemplate">
<vpe:dnd>
<vpe:drag start-enable="yes"/>
<vpe:drop container="yes" />