Author: dsakovich
Date: 2008-08-29 07:04:10 -0400 (Fri, 29 Aug 2008)
New Revision: 9957
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/templates/vpe-templates-jsf.xml
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/templates/vpe-templates-richfaces.xml
trunk/vpe/tests/org.jboss.tools.vpe.test/scheme/scheme.xsd
Log:
https://jira.jboss.org/jira/browse/JBIDE-1601
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/templates/vpe-templates-jsf.xml
===================================================================
---
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/templates/vpe-templates-jsf.xml 2008-08-29
09:11:24 UTC (rev 9956)
+++
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/templates/vpe-templates-jsf.xml 2008-08-29
11:04:10 UTC (rev 9957)
@@ -796,4 +796,10 @@
</vpe:textFormatting>
</vpe:template>
</vpe:tag>
+
+ <!-- Default template -->
+ <vpe:template children="yes" modify="no">
+ <vpe:any value="{name()}" title="{tagstring()}"/>
+ </vpe:template>
+
</vpe:templates>
\ No newline at end of file
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/templates/vpe-templates-richfaces.xml
===================================================================
---
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/templates/vpe-templates-richfaces.xml 2008-08-29
09:11:24 UTC (rev 9956)
+++
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/templates/vpe-templates-richfaces.xml 2008-08-29
11:04:10 UTC (rev 9957)
@@ -660,7 +660,7 @@
</vpe:template>
</vpe:tag>
<vpe:tag name="rich:dropListener" case-sensitive="yes">
- <vpe:template children="no" modify="yes"
invisisble="yes">
+ <vpe:template children="no" modify="yes"
invisible="yes">
</vpe:template>
</vpe:tag>
Modified: trunk/vpe/tests/org.jboss.tools.vpe.test/scheme/scheme.xsd
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.test/scheme/scheme.xsd 2008-08-29 09:11:24 UTC
(rev 9956)
+++ trunk/vpe/tests/org.jboss.tools.vpe.test/scheme/scheme.xsd 2008-08-29 11:04:10 UTC
(rev 9957)
@@ -23,10 +23,11 @@
<!-- -->
<xsd:complexType name="TEMPLATES">
- <xsd:sequence>
- <xsd:element minOccurs="0" maxOccurs="unbounded"
name="template-taglib" type="vpe:TEMPLATE-TAGLIB"/>
- <xsd:element maxOccurs="unbounded" name="tag"
type="vpe:TAG"/>
- </xsd:sequence>
+ <xsd:choice maxOccurs="unbounded">
+ <xsd:element minOccurs="0" name="template-taglib"
type="vpe:TEMPLATE-TAGLIB"/>
+ <xsd:element minOccurs="0" name="tag"
type="vpe:TAG"/>
+ <xsd:element minOccurs="0" name="template"
type="vpe:DEFAULT_TEMPLATE" />
+ </xsd:choice>
</xsd:complexType>
<!-- -->
<xsd:complexType name="TAG">
@@ -529,7 +530,15 @@
<!-- -->
<xsd:complexType name="HTML_UL"/>
<!-- -->
- <xsd:complexType name="HTML_P"/>
+ <xsd:complexType name="HTML_P"/>
+<!-- -->
+ <xsd:complexType name="DEFAULT_TEMPLATE">
+ <xsd:sequence>
+ <xsd:element name="any" type="vpe:ANY" />
+ </xsd:sequence>
+ <xsd:attribute name="children" type="vpe:VPE-BOOLEAN"
use="required"/>
+ <xsd:attribute name="modify" type="vpe:VPE-BOOLEAN"
use="required"/>
+ </xsd:complexType>
<!-- VPE types -->
<xsd:simpleType name="CHILDREN-FORMAT">