JBoss Tools SVN: r23834 - trunk/vpe/plugins/org.jboss.tools.vpe.spring/templates.
by jbosstools-commits@lists.jboss.org
Author: yradtsevich
Date: 2010-07-30 08:11:09 -0400 (Fri, 30 Jul 2010)
New Revision: 23834
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe.spring/templates/vpe-templates-spring.xml
Log:
https://jira.jboss.org/browse/JBIDE-6711
- templates for the following tags are added:
spring:param
security:authorize
security:authentication
security:accesscontrollist
Modified: trunk/vpe/plugins/org.jboss.tools.vpe.spring/templates/vpe-templates-spring.xml
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe.spring/templates/vpe-templates-spring.xml 2010-07-30 12:09:49 UTC (rev 23833)
+++ trunk/vpe/plugins/org.jboss.tools.vpe.spring/templates/vpe-templates-spring.xml 2010-07-30 12:11:09 UTC (rev 23834)
@@ -470,4 +470,27 @@
</vpe:template>
</vpe:tag>
+ <vpe:tag name="spring:param" case-sensitive="yes">
+ <vpe:template children="no" modify="no" />
+ </vpe:tag>
+
+ <vpe:tag name="security:authorize" case-sensitive="yes">
+ <vpe:template children="yes" modify="yes">
+ <div/>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="security:authentication" case-sensitive="yes">
+ <vpe:template children="no" modify="yes">
+ <span class="vpe-text">
+ <vpe:value expr="{@property}" />
+ </span>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="security:accesscontrollist" case-sensitive="yes">
+ <vpe:template children="yes" modify="yes">
+ <div/>
+ </vpe:template>
+ </vpe:tag>
</vpe:templates>
14 years, 5 months
JBoss Tools SVN: r23833 - trunk/vpe/plugins/org.jboss.tools.vpe.spring/templates.
by jbosstools-commits@lists.jboss.org
Author: dmaliarevich
Date: 2010-07-30 08:09:49 -0400 (Fri, 30 Jul 2010)
New Revision: 23833
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe.spring/templates/vpe-templates-spring.xml
Log:
https://jira.jboss.org/browse/JBIDE-6711 , spring:message and spring:theme templates were added.
Modified: trunk/vpe/plugins/org.jboss.tools.vpe.spring/templates/vpe-templates-spring.xml
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe.spring/templates/vpe-templates-spring.xml 2010-07-30 11:47:11 UTC (rev 23832)
+++ trunk/vpe/plugins/org.jboss.tools.vpe.spring/templates/vpe-templates-spring.xml 2010-07-30 12:09:49 UTC (rev 23833)
@@ -405,6 +405,22 @@
</vpe:textFormatting>
</vpe:template>
</vpe:tag>
+
+ <vpe:tag name="spring:message" case-sensitive="yes">
+ <vpe:template children="no" modify="no">
+ <span class="vpe-text">
+ <vpe:value expr="{@code}" />
+ </span>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="spring:theme" case-sensitive="yes">
+ <vpe:template children="no" modify="no">
+ <span class="vpe-text">
+ <vpe:value expr="{@code}" />
+ </span>
+ </vpe:template>
+ </vpe:tag>
<vpe:tag name="spring:bind" case-sensitive="yes">
<vpe:template children="no" modify="no" />
14 years, 5 months
JBoss Tools SVN: r23832 - trunk/vpe/plugins/org.jboss.tools.vpe.spring/templates.
by jbosstools-commits@lists.jboss.org
Author: yradtsevich
Date: 2010-07-30 07:47:11 -0400 (Fri, 30 Jul 2010)
New Revision: 23832
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe.spring/templates/vpe-templates-spring.xml
Log:
https://jira.jboss.org/browse/JBIDE-6711
- templates for the following tags are added:
spring:bind
spring:escapeBody
spring:hasBindErrors
spring:htmlEscape
spring:nestedPath
spring:transform
spring:eval
spring:url
Modified: trunk/vpe/plugins/org.jboss.tools.vpe.spring/templates/vpe-templates-spring.xml
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe.spring/templates/vpe-templates-spring.xml 2010-07-30 10:25:12 UTC (rev 23831)
+++ trunk/vpe/plugins/org.jboss.tools.vpe.spring/templates/vpe-templates-spring.xml 2010-07-30 11:47:11 UTC (rev 23832)
@@ -404,6 +404,54 @@
<vpe:textFormatting use-default-formats="yes">
</vpe:textFormatting>
</vpe:template>
- </vpe:tag>
+ </vpe:tag>
+ <vpe:tag name="spring:bind" case-sensitive="yes">
+ <vpe:template children="no" modify="no" />
+ </vpe:tag>
+
+ <vpe:tag name="spring:escapeBody" case-sensitive="yes">
+ <vpe:template children="yes" modify="yes">
+ <div/>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="spring:hasBindErrors" case-sensitive="yes">
+ <vpe:template children="no" modify="no" />
+ </vpe:tag>
+
+ <vpe:tag name="spring:htmlEscape" case-sensitive="yes">
+ <vpe:template children="no" modify="no" />
+ </vpe:tag>
+
+ <vpe:tag name="spring:nestedPath" case-sensitive="yes">
+ <vpe:template children="no" modify="no" />
+ </vpe:tag>
+
+ <vpe:tag name="spring:transform" case-sensitive="yes">
+ <vpe:template children="no" modify="no" />
+ </vpe:tag>
+
+ <vpe:tag name="spring:eval" case-sensitive="yes">
+ <vpe:if test="attrpresent('var')">
+ <vpe:template children="no" modify="yes" />
+ </vpe:if>
+ <vpe:template children="no" modify="yes">
+ <span class="vpe-text">
+ <vpe:value expr="{@expression}" />
+ </span>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="spring:url" case-sensitive="yes">
+ <vpe:if test="attrpresent('var')">
+ <vpe:template children="no" modify="yes" />
+ </vpe:if>
+ <vpe:template children="no" modify="yes">
+ <span class="vpe-text">
+ <vpe:value expr="{@value}" />
+ </span>
+ </vpe:template>
+ </vpe:tag>
+
</vpe:templates>
14 years, 5 months
JBoss Tools SVN: r23831 - in trunk/vpe: tests/org.jboss.tools.vpe.spring.test/resources/SpringTest/src/main/java/org/jboss/tools/vpe/spring/test/springtest/data and 2 other directories.
by jbosstools-commits@lists.jboss.org
Author: dvinnichek
Date: 2010-07-30 06:25:12 -0400 (Fri, 30 Jul 2010)
New Revision: 23831
Added:
trunk/vpe/tests/org.jboss.tools.vpe.spring.test/resources/SpringTest/src/main/java/org/jboss/tools/vpe/spring/test/springtest/data/User.java
trunk/vpe/tests/org.jboss.tools.vpe.spring.test/resources/SpringTest/src/main/webapp/WEB-INF/jsp/checkboxes.jsp.xml
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe.spring/templates/vpe-templates-spring.xml
trunk/vpe/tests/org.jboss.tools.vpe.spring.test/src/org/jboss/tools/vpe/spring/test/SpringFormComponentTest.java
Log:
add tests for form:checkboxes
Modified: trunk/vpe/plugins/org.jboss.tools.vpe.spring/templates/vpe-templates-spring.xml
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe.spring/templates/vpe-templates-spring.xml 2010-07-30 09:43:02 UTC (rev 23830)
+++ trunk/vpe/plugins/org.jboss.tools.vpe.spring/templates/vpe-templates-spring.xml 2010-07-30 10:25:12 UTC (rev 23831)
@@ -42,7 +42,7 @@
<vpe:if test="attrpresent('itemLabel')">
<vpe:template children="no" modify="no">
<span class="vpe-text">
- <input type="checkbox" id="{@id}" style="{@cssStyle}" class="{@cssClass}"
+ <input type="checkbox" id="{@id}1" style="{@cssStyle}" class="{@cssClass}"
disabled="disabled" />
<label>
<vpe:value expr="{@items}.{(a)itemLabel}" />
@@ -55,7 +55,7 @@
</vpe:if>
<vpe:template children="no" modify="no">
<span class="vpe-text">
- <input type="checkbox" id="{@id}" style="{@cssStyle}" class="{@cssClass}"
+ <input type="checkbox" id="{@id}1" style="{@cssStyle}" class="{@cssClass}"
disabled="disabled" />
<label>
<vpe:value expr="{@items}" />
@@ -69,7 +69,7 @@
<vpe:if test="attrpresent('itemLabel')">
<vpe:template children="no" modify="no">
<span class="vpe-text">
- <input type="checkbox" id="{@id}" style="{@cssStyle}" class="{@cssClass}" />
+ <input type="checkbox" id="{@id}1" style="{@cssStyle}" class="{@cssClass}" />
<label>
<vpe:value expr="{@items}.{(a)itemLabel}" />
</label>
@@ -81,7 +81,7 @@
</vpe:if>
<vpe:template children="no" modify="no">
<span class="vpe-text">
- <input type="checkbox" id="{@id}" style="{@cssStyle}" class="{@cssClass}" />
+ <input type="checkbox" id="{@id}1" style="{@cssStyle}" class="{@cssClass}" />
<label>
<vpe:value expr="{@items}" />
</label>
Added: trunk/vpe/tests/org.jboss.tools.vpe.spring.test/resources/SpringTest/src/main/java/org/jboss/tools/vpe/spring/test/springtest/data/User.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.spring.test/resources/SpringTest/src/main/java/org/jboss/tools/vpe/spring/test/springtest/data/User.java (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.spring.test/resources/SpringTest/src/main/java/org/jboss/tools/vpe/spring/test/springtest/data/User.java 2010-07-30 10:25:12 UTC (rev 23831)
@@ -0,0 +1,23 @@
+package org.jboss.tools.vpe.spring.test.springtest.data;
+
+public class User {
+
+ private String firstName;
+ private String lastName;
+
+ public String getFirstName() {
+ return firstName;
+ }
+
+ public void setFirstName(String firstName) {
+ this.firstName = firstName;
+ }
+
+ public String getLastName() {
+ return lastName;
+ }
+
+ public void setLastName(String lastName) {
+ this.lastName = lastName;
+ }
+}
Property changes on: trunk/vpe/tests/org.jboss.tools.vpe.spring.test/resources/SpringTest/src/main/java/org/jboss/tools/vpe/spring/test/springtest/data/User.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Author Id Revision Date
Name: svn:eol-style
+ native
Added: trunk/vpe/tests/org.jboss.tools.vpe.spring.test/resources/SpringTest/src/main/webapp/WEB-INF/jsp/checkboxes.jsp.xml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.spring.test/resources/SpringTest/src/main/webapp/WEB-INF/jsp/checkboxes.jsp.xml (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.spring.test/resources/SpringTest/src/main/webapp/WEB-INF/jsp/checkboxes.jsp.xml 2010-07-30 10:25:12 UTC (rev 23831)
@@ -0,0 +1,20 @@
+<tests>
+ <test id="checkboxes1">
+ <span>
+ <input id="checkboxes11" name="selectedCategories" type="checkbox"/>
+ <label>${formBean.availableCategories}</label>
+ </span>
+ </test>
+ <test id="checkboxes2">
+ <span>
+ <input id="checkboxes21" name="selectedCategories" class="tall-checkbox" style="width: 30px;" type="checkbox"/>
+ <label>${formBean.availableCategories}</label>
+ </span>
+ </test>
+ <test id="checkboxes3">
+ <span>
+ <input id="checkboxes31" name="selectedCategories" disabled="disabled" type="checkbox"/>
+ <label>${formBean.availableCategories}.id</label>
+ </span>
+ </test>
+</tests>
\ No newline at end of file
Property changes on: trunk/vpe/tests/org.jboss.tools.vpe.spring.test/resources/SpringTest/src/main/webapp/WEB-INF/jsp/checkboxes.jsp.xml
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:eol-style
+ native
Modified: trunk/vpe/tests/org.jboss.tools.vpe.spring.test/src/org/jboss/tools/vpe/spring/test/SpringFormComponentTest.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.spring.test/src/org/jboss/tools/vpe/spring/test/SpringFormComponentTest.java 2010-07-30 09:43:02 UTC (rev 23830)
+++ trunk/vpe/tests/org.jboss.tools.vpe.spring.test/src/org/jboss/tools/vpe/spring/test/SpringFormComponentTest.java 2010-07-30 10:25:12 UTC (rev 23831)
@@ -37,6 +37,11 @@
performTestForVpeComponent((IFile)TestUtil.getResource(
"src/main/webapp/WEB-INF/jsp/checkbox.jsp", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
}
+
+ public void testCheckboxes() throws Throwable {
+ performTestForVpeComponent((IFile)TestUtil.getResource(
+ "src/main/webapp/WEB-INF/jsp/checkboxes.jsp", IMPORT_PROJECT_NAME)); //$NON-NLS-1$
+ }
public void testForm() throws Throwable {
performTestForVpeComponent((IFile)TestUtil.getResource(
14 years, 5 months
JBoss Tools SVN: r23830 - trunk/vpe/plugins/org.jboss.tools.vpe.spring/templates.
by jbosstools-commits@lists.jboss.org
Author: yradtsevich
Date: 2010-07-30 05:43:02 -0400 (Fri, 30 Jul 2010)
New Revision: 23830
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe.spring/templates/vpe-templates-spring.xml
Log:
https://jira.jboss.org/browse/JBIDE-6711
- form:radiobuttons template is added
Modified: trunk/vpe/plugins/org.jboss.tools.vpe.spring/templates/vpe-templates-spring.xml
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe.spring/templates/vpe-templates-spring.xml 2010-07-30 09:32:08 UTC (rev 23829)
+++ trunk/vpe/plugins/org.jboss.tools.vpe.spring/templates/vpe-templates-spring.xml 2010-07-30 09:43:02 UTC (rev 23830)
@@ -333,6 +333,63 @@
</vpe:dnd>
</vpe:template>
</vpe:tag>
+
+ <vpe:tag name="form:radiobuttons" case-sensitive="yes">
+ <vpe:if test="@disabled='true'">
+ <vpe:if test="attrpresent('itemLabel')">
+ <vpe:template children="no" modify="no">
+ <span class="vpe-text">
+ <input type="radio" id="{@id}" style="{@cssStyle}" class="{@cssClass}"
+ disabled="disabled" name="{@path}"/>
+ <label>
+ <vpe:value expr="{@items}.{(a)itemLabel}" />
+ </label>
+ </span>
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ </vpe:dnd>
+ </vpe:template>
+ </vpe:if>
+ <vpe:template children="no" modify="no">
+ <span class="vpe-text">
+ <input type="radio" id="{@id}" style="{@cssStyle}" class="{@cssClass}"
+ disabled="disabled" name="{@path}"/>
+ <label>
+ <vpe:value expr="{@items}" />
+ </label>
+ </span>
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ </vpe:dnd>
+ </vpe:template>
+ </vpe:if>
+ <vpe:if test="attrpresent('itemLabel')">
+ <vpe:template children="no" modify="no">
+ <span class="vpe-text">
+ <input type="radio" id="{@id}" style="{@cssStyle}" class="{@cssClass}"
+ name="{@path}"/>
+ <label>
+ <vpe:value expr="{@items}.{(a)itemLabel}" />
+ </label>
+ </span>
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ </vpe:dnd>
+ </vpe:template>
+ </vpe:if>
+ <vpe:template children="no" modify="no">
+ <span class="vpe-text">
+ <input type="radio" id="{@id}" style="{@cssStyle}" class="{@cssClass}"
+ name="{@path}"/>
+ <label>
+ <vpe:value expr="{@items}" />
+ </label>
+ </span>
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ </vpe:dnd>
+ </vpe:template>
+ </vpe:tag>
<vpe:tag name="form:textarea" case-sensitive="yes">
<vpe:template children="yes" modify="yes"
@@ -347,7 +404,6 @@
<vpe:textFormatting use-default-formats="yes">
</vpe:textFormatting>
</vpe:template>
-
</vpe:tag>
</vpe:templates>
14 years, 5 months
JBoss Tools SVN: r23829 - trunk/esb/plugins/org.jboss.tools.esb.core/src/org/jboss/tools/esb/core/model.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2010-07-30 05:32:08 -0400 (Fri, 30 Jul 2010)
New Revision: 23829
Modified:
trunk/esb/plugins/org.jboss.tools.esb.core/src/org/jboss/tools/esb/core/model/ESBCustomizedObjectImpl.java
Log:
https://jira.jboss.org/browse/JBIDE-6725
Modified: trunk/esb/plugins/org.jboss.tools.esb.core/src/org/jboss/tools/esb/core/model/ESBCustomizedObjectImpl.java
===================================================================
--- trunk/esb/plugins/org.jboss.tools.esb.core/src/org/jboss/tools/esb/core/model/ESBCustomizedObjectImpl.java 2010-07-30 09:30:19 UTC (rev 23828)
+++ trunk/esb/plugins/org.jboss.tools.esb.core/src/org/jboss/tools/esb/core/model/ESBCustomizedObjectImpl.java 2010-07-30 09:32:08 UTC (rev 23829)
@@ -11,6 +11,7 @@
package org.jboss.tools.esb.core.model;
import org.jboss.tools.common.model.impl.CustomizedObjectImpl;
+import org.jboss.tools.common.model.impl.OrderedByEntityChildren;
import org.jboss.tools.common.model.impl.RegularChildren;
/**
@@ -24,7 +25,7 @@
protected RegularChildren createChildren() {
String children = getModelEntity().getProperty("children"); //$NON-NLS-1$
if(children != null && "%ESBOrderedService%".equals(children)) { //$NON-NLS-1$
- return new ESBOrderedServiceChildren();
+ return new OrderedByEntityChildren();
}
if(children != null && children.equals("%ESBOrdered%")) { //$NON-NLS-1$
return new ESBOrderedChildren();
14 years, 5 months
JBoss Tools SVN: r23828 - trunk/vpe/plugins/org.jboss.tools.vpe.spring/templates.
by jbosstools-commits@lists.jboss.org
Author: dmaliarevich
Date: 2010-07-30 05:30:19 -0400 (Fri, 30 Jul 2010)
New Revision: 23828
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe.spring/templates/vpe-templates-spring.xml
Log:
https://jira.jboss.org/browse/JBIDE-6711 , case-sensitive="yes" -- for the Spring tags
Modified: trunk/vpe/plugins/org.jboss.tools.vpe.spring/templates/vpe-templates-spring.xml
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe.spring/templates/vpe-templates-spring.xml 2010-07-30 09:23:13 UTC (rev 23827)
+++ trunk/vpe/plugins/org.jboss.tools.vpe.spring/templates/vpe-templates-spring.xml 2010-07-30 09:30:19 UTC (rev 23828)
@@ -123,7 +123,7 @@
</vpe:template>
</vpe:tag>
- <vpe:tag name="form:input" case-sensitive="no">
+ <vpe:tag name="form:input" case-sensitive="yes">
<vpe:if test="@disabled='true'">
<vpe:template children="no" modify="no">
<input type="text" id="{@id}" class="{@cssClass}" style="{@cssStyle}"
@@ -154,7 +154,7 @@
</vpe:template>
</vpe:tag>
- <vpe:tag name="form:password" case-sensitive="no">
+ <vpe:tag name="form:password" case-sensitive="yes">
<vpe:if test="@showPassword='true'">
<vpe:if test="@disabled='true'">
<!-- showPassword(+) and disabled(+) -->
@@ -219,7 +219,7 @@
</vpe:template>
</vpe:tag>
- <vpe:tag name="form:label" case-sensitive="no">
+ <vpe:tag name="form:label" case-sensitive="yes">
<vpe:template children="yes" modify="yes">
<label id="{@id}" class="{@cssClass}" style="{@cssStyle}" for="{@for}"
dir="{@dir}">
@@ -236,7 +236,7 @@
</vpe:template>
</vpe:tag>
- <vpe:tag name="form:hidden" case-sensitive="no">
+ <vpe:tag name="form:hidden" case-sensitive="yes">
<vpe:template children="no" modify="no" >
</vpe:template>
</vpe:tag>
@@ -334,7 +334,7 @@
</vpe:template>
</vpe:tag>
- <vpe:tag name="form:textarea" case-sensitive="no">
+ <vpe:tag name="form:textarea" case-sensitive="yes">
<vpe:template children="yes" modify="yes"
class="org.jboss.tools.vpe.spring.template.SpringTextAreaTemplate">
<vpe:resize>
14 years, 5 months
JBoss Tools SVN: r23827 - trunk/vpe/plugins/org.jboss.tools.vpe.spring/templates.
by jbosstools-commits@lists.jboss.org
Author: dmaliarevich
Date: 2010-07-30 05:23:13 -0400 (Fri, 30 Jul 2010)
New Revision: 23827
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe.spring/templates/vpe-templates-spring.xml
Log:
https://jira.jboss.org/browse/JBIDE-6711 , form:password template was added, resizing and dnd support were added to some tags.
Modified: trunk/vpe/plugins/org.jboss.tools.vpe.spring/templates/vpe-templates-spring.xml
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe.spring/templates/vpe-templates-spring.xml 2010-07-30 08:56:30 UTC (rev 23826)
+++ trunk/vpe/plugins/org.jboss.tools.vpe.spring/templates/vpe-templates-spring.xml 2010-07-30 09:23:13 UTC (rev 23827)
@@ -122,20 +122,112 @@
</vpe:dnd>
</vpe:template>
</vpe:tag>
-
+
<vpe:tag name="form:input" case-sensitive="no">
+ <vpe:if test="@disabled='true'">
+ <vpe:template children="no" modify="no">
+ <input type="text" id="{@id}" class="{@cssClass}" style="{@cssStyle}"
+ size="{@size}" dir="{@dir}" disabled="disabled" />
+ <vpe:resize>
+ <vpe:width width-attr="cssStyle.width" />
+ <vpe:height height-attr="cssStyle.height" />
+ </vpe:resize>
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ </vpe:dnd>
+ <vpe:textFormatting use-default-formats="yes">
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:if>
<vpe:template children="no" modify="no">
- <input type="text" id="{@id}" class="{@cssClass}"
- style="{@cssStyle}" size="{@size}" dir="{@dir}"
- disabled="{@disabled}" />
+ <input type="text" id="{@id}" class="{@cssClass}" style="{@cssStyle}"
+ size="{@size}" dir="{@dir}" />
+ <vpe:resize>
+ <vpe:width width-attr="cssStyle.width" />
+ <vpe:height height-attr="cssStyle.height" />
+ </vpe:resize>
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ </vpe:dnd>
+ <vpe:textFormatting use-default-formats="yes">
+ </vpe:textFormatting>
</vpe:template>
</vpe:tag>
-
+
+ <vpe:tag name="form:password" case-sensitive="no">
+ <vpe:if test="@showPassword='true'">
+ <vpe:if test="@disabled='true'">
+ <!-- showPassword(+) and disabled(+) -->
+ <vpe:template children="no" modify="no">
+ <input type="text" id="{@id}" class="{@cssClass}" style="{@cssStyle}"
+ size="{@size}" dir="{@dir}" value="{@value}" disabled="disabled" />
+ <vpe:resize>
+ <vpe:width width-attr="cssStyle.width" />
+ <vpe:height height-attr="cssStyle.height" />
+ </vpe:resize>
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ </vpe:dnd>
+ <vpe:textFormatting use-default-formats="yes">
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:if>
+ <!-- showPassword(+) and disabled(-) -->
+ <vpe:template children="no" modify="no">
+ <input type="text" id="{@id}" class="{@cssClass}" style="{@cssStyle}"
+ size="{@size}" dir="{@dir}" value="{@value}" />
+ <vpe:resize>
+ <vpe:width width-attr="cssStyle.width" />
+ <vpe:height height-attr="cssStyle.height" />
+ </vpe:resize>
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ </vpe:dnd>
+ <vpe:textFormatting use-default-formats="yes">
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:if>
+ <vpe:if test="@disabled='true'">
+ <!-- showPassword(-) and disabled(+) -->
+ <vpe:template children="no" modify="no">
+ <input type="password" id="{@id}" class="{@cssClass}" style="{@cssStyle}"
+ size="{@size}" dir="{@dir}" value="{@value}" disabled="disabled" />
+ <vpe:resize>
+ <vpe:width width-attr="cssStyle.width" />
+ <vpe:height height-attr="cssStyle.height" />
+ </vpe:resize>
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ </vpe:dnd>
+ <vpe:textFormatting use-default-formats="yes">
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:if>
+ <!-- showPassword(-) and disabled(-) -->
+ <vpe:template children="no" modify="no">
+ <input type="password" id="{@id}" class="{@cssClass}" style="{@cssStyle}"
+ size="{@size}" dir="{@dir}" value="{@value}" />
+ <vpe:resize>
+ <vpe:width width-attr="cssStyle.width" />
+ <vpe:height height-attr="cssStyle.height" />
+ </vpe:resize>
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ </vpe:dnd>
+ <vpe:textFormatting use-default-formats="yes">
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:tag>
+
<vpe:tag name="form:label" case-sensitive="no">
<vpe:template children="yes" modify="yes">
- <label id="{@id}" class="{@cssClass}" style="{@cssStyle}"
- for="{@for}" dir="{@dir}">
+ <label id="{@id}" class="{@cssClass}" style="{@cssStyle}" for="{@for}"
+ dir="{@dir}">
</label>
+ <vpe:resize>
+ <vpe:width width-attr="cssStyle.width" />
+ <vpe:height height-attr="cssStyle.height" />
+ </vpe:resize>
<vpe:dnd>
<vpe:drag start-enable="yes" />
</vpe:dnd>
@@ -243,13 +335,19 @@
</vpe:tag>
<vpe:tag name="form:textarea" case-sensitive="no">
- <vpe:template children="yes" modify="yes"
- class="org.jboss.tools.vpe.spring.template.SpringTextAreaTemplate">
- <vpe:resize>
+ <vpe:template children="yes" modify="yes"
+ class="org.jboss.tools.vpe.spring.template.SpringTextAreaTemplate">
+ <vpe:resize>
<vpe:width width-attr="cssStyle.width" />
<vpe:height height-attr="cssStyle.height" />
</vpe:resize>
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ </vpe:dnd>
+ <vpe:textFormatting use-default-formats="yes">
+ </vpe:textFormatting>
</vpe:template>
+
</vpe:tag>
</vpe:templates>
14 years, 5 months
JBoss Tools SVN: r23826 - trunk/vpe/plugins/org.jboss.tools.vpe.spring/templates.
by jbosstools-commits@lists.jboss.org
Author: yradtsevich
Date: 2010-07-30 04:56:30 -0400 (Fri, 30 Jul 2010)
New Revision: 23826
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe.spring/templates/vpe-templates-spring.xml
Log:
https://jira.jboss.org/browse/JBIDE-6711
- form:radiobutton template is added
Modified: trunk/vpe/plugins/org.jboss.tools.vpe.spring/templates/vpe-templates-spring.xml
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe.spring/templates/vpe-templates-spring.xml 2010-07-30 08:47:24 UTC (rev 23825)
+++ trunk/vpe/plugins/org.jboss.tools.vpe.spring/templates/vpe-templates-spring.xml 2010-07-30 08:56:30 UTC (rev 23826)
@@ -212,6 +212,35 @@
</option>
</vpe:template>
</vpe:tag>
+
+ <vpe:tag name="form:radiobutton" case-sensitive="yes">
+ <vpe:if test="@disabled='true'">
+ <vpe:template children="no" modify="no">
+ <span class="vpe-text">
+ <input type="radio" id="{@id}" style="{@cssStyle}" class="{@cssClass}"
+ disabled="disabled" name="{@path}"/>
+ <label>
+ <vpe:value expr="{@label}" />
+ </label>
+ </span>
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ </vpe:dnd>
+ </vpe:template>
+ </vpe:if>
+ <vpe:template children="no" modify="no">
+ <span class="vpe-text">
+ <input type="radio" id="{@id}" style="{@cssStyle}" class="{@cssClass}"
+ name="{@path}" />
+ <label>
+ <vpe:value expr="{@label}" />
+ </label>
+ </span>
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ </vpe:dnd>
+ </vpe:template>
+ </vpe:tag>
<vpe:tag name="form:textarea" case-sensitive="no">
<vpe:template children="yes" modify="yes"
14 years, 5 months
JBoss Tools SVN: r23825 - in trunk/jst/tests/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext: types and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: jpeterka
Date: 2010-07-30 04:47:24 -0400 (Fri, 30 Jul 2010)
New Revision: 23825
Modified:
trunk/jst/tests/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/SWTUtilExt.java
trunk/jst/tests/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/types/EntityType.java
Log:
SWTBotUtilExt#closeallViews added
Smooks test constants added
Modified: trunk/jst/tests/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/SWTUtilExt.java
===================================================================
--- trunk/jst/tests/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/SWTUtilExt.java 2010-07-30 08:45:26 UTC (rev 23824)
+++ trunk/jst/tests/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/SWTUtilExt.java 2010-07-30 08:47:24 UTC (rev 23825)
@@ -174,7 +174,17 @@
e.close();
}
}
+
/**
+ * closes all views
+ */
+ public void closeAllViews() {
+ for (SWTBotView v : bot.views()) {
+ v.close();
+ }
+ }
+
+ /**
* Wait for named running jobs with defined TIMEOUT
*/
public void waitForJobs(String... jobNames) {
Modified: trunk/jst/tests/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/types/EntityType.java
===================================================================
--- trunk/jst/tests/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/types/EntityType.java 2010-07-30 08:45:26 UTC (rev 23824)
+++ trunk/jst/tests/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/types/EntityType.java 2010-07-30 08:47:24 UTC (rev 23825)
@@ -22,7 +22,7 @@
public enum EntityType {
HIBERNATE_MAPPING_FILE, JAVA_PROJECT, JAVA_CLASS, HIBERNATE_REVERSE_FILE, HIBERNATE_CONSOLE,
HIBERNATE_CONFIGURATION_FILE, STRUTS_PROJECT, JPA_PROJECT, DROOLS_PROJECT, DROOLS_RULE,
- GUIDED_DROOLS_RULE,DSL_DROOLS_FILE,RESOURCES_FROM_GUVNOR;
+ GUIDED_DROOLS_RULE,DSL_DROOLS_FILE,RESOURCES_FROM_GUVNOR,SMOOKS_CONFIG;
public List<String> getGroupsLabels() {
List<String> groupLabel = new LinkedList<String>();
@@ -41,6 +41,7 @@
case GUIDED_DROOLS_RULE: groupLabel.add(IDELabel.EntityGroup.DROOLS);break;
case DSL_DROOLS_FILE: groupLabel.add(IDELabel.EntityGroup.DROOLS);break;
case RESOURCES_FROM_GUVNOR: groupLabel.add(IDELabel.EntityGroup.GUVNOR);break;
+ case SMOOKS_CONFIG: groupLabel.add(IDELabel.EntityGroup.SMOOKS);break;
default: fail("Unknown Entity Type");
}
@@ -68,6 +69,7 @@
case GUIDED_DROOLS_RULE: entityLabel = IDELabel.EntityLabel.GUIDED_DROOLS_RULE; break;
case DSL_DROOLS_FILE: entityLabel = IDELabel.EntityLabel.DSL_DROOLS_FILE; break;
case RESOURCES_FROM_GUVNOR: entityLabel = IDELabel.EntityLabel.RESOURCES_FROM_GUVNOR; break;
+ case SMOOKS_CONFIG: entityLabel = IDELabel.EntityLabel.SMOOKS_CONF_FILE; break;
default: fail("Unknown Entity Type");
}
14 years, 5 months