Author: yzhishko
Date: 2010-04-01 05:04:30 -0400 (Thu, 01 Apr 2010)
New Revision: 21183
Added:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jbpm/
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jbpm/.classpath
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jbpm/.project
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jbpm/.settings/
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jbpm/.settings/org.eclipse.jdt.core.prefs
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jbpm/META-INF/
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jbpm/META-INF/MANIFEST.MF
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jbpm/about.html
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jbpm/build.properties
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jbpm/plugin.properties
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jbpm/plugin.xml
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jbpm/src/
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jbpm/src/org/
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jbpm/src/org/jboss/
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jbpm/src/org/jboss/tools/
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jbpm/src/org/jboss/tools/jsf/
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jbpm/src/org/jboss/tools/jsf/vpe/
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jbpm/src/org/jboss/tools/jsf/vpe/jbpm/
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jbpm/src/org/jboss/tools/jsf/vpe/jbpm/JBPMTemplatePlugin.java
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jbpm/src/org/jboss/tools/jsf/vpe/jbpm/template/
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jbpm/src/org/jboss/tools/jsf/vpe/jbpm/template/JBPMDataCell.java
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jbpm/src/org/jboss/tools/jsf/vpe/jbpm/template/JBPMDataForm.java
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jbpm/templates/
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jbpm/templates/vpe-templates-jbpm.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/.classpath
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/.project
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/.settings/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/.settings/org.eclipse.jdt.core.prefs
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/META-INF/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/META-INF/MANIFEST.MF
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/about.html
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/build.properties
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/plugin.properties
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/plugin.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/.classpath
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/.project
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/.settings/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/.settings/.jsdtscope
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/.settings/org.eclipse.jdt.core.prefs
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/.settings/org.eclipse.wst.common.component
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/.settings/org.eclipse.wst.common.project.facet.core.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/.settings/org.eclipse.wst.jsdt.ui.superType.container
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/.settings/org.eclipse.wst.jsdt.ui.superType.name
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/JavaSource/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/WebContent/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/WebContent/META-INF/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/WebContent/META-INF/MANIFEST.MF
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/WebContent/WEB-INF/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/WebContent/WEB-INF/classes/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/WebContent/WEB-INF/lib/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/WebContent/pages/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/WebContent/pages/components/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/WebContent/pages/components/cancelButton.xhtml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/WebContent/pages/components/cancelButton.xhtml.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/WebContent/pages/components/saveButton.xhtml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/WebContent/pages/components/saveButton.xhtml.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/WebContent/pages/components/taskForm.xhtml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/WebContent/pages/components/taskForm.xhtml.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/WebContent/pages/components/transitionButton.xhtml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/WebContent/pages/components/transitionButton.xhtml.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/ant/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/ant/build.properties
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/ant/build.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/src/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/src/org/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/src/org/jboss/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/src/org/jboss/tools/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/src/org/jboss/tools/jsf/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/src/org/jboss/tools/jsf/vpe/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/src/org/jboss/tools/jsf/vpe/jbpm/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/src/org/jboss/tools/jsf/vpe/jbpm/test/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/src/org/jboss/tools/jsf/vpe/jbpm/test/JBPMAllTests.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/src/org/jboss/tools/jsf/vpe/jbpm/test/JBPMComponentsTest.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/src/org/jboss/tools/jsf/vpe/jbpm/test/JBPMTestPlugin.java
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/templates/vpe-templates-jsf.xml
Log:
https://jira.jboss.org/jira/browse/JBIDE-6114 - support to jBPM components was added
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jbpm/.classpath
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jbpm/.classpath (rev
0)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jbpm/.classpath 2010-04-01 09:04:30 UTC (rev
21183)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+ <classpathentry kind="con"
path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jbpm/.project
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jbpm/.project (rev
0)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jbpm/.project 2010-04-01 09:04:30 UTC (rev
21183)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.jboss.tools.jsf.vpe.jbpm</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
Added:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jbpm/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jbpm/.settings/org.eclipse.jdt.core.prefs
(rev 0)
+++
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jbpm/.settings/org.eclipse.jdt.core.prefs 2010-04-01
09:04:30 UTC (rev 21183)
@@ -0,0 +1,8 @@
+#Tue Mar 30 18:08:40 EEST 2010
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.5
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jbpm/META-INF/MANIFEST.MF
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jbpm/META-INF/MANIFEST.MF
(rev 0)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jbpm/META-INF/MANIFEST.MF 2010-04-01
09:04:30 UTC (rev 21183)
@@ -0,0 +1,18 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: %pluginName
+Bundle-SymbolicName: org.jboss.tools.jsf.vpe.jbpm;singleton:=true
+Bundle-Version: 1.0.0.qualifier
+Bundle-Activator: org.jboss.tools.jsf.vpe.jbpm.JBPMTemplatePlugin
+Require-Bundle: org.eclipse.ui,
+ org.eclipse.core.runtime,
+ org.jboss.tools.vpe.html,
+ org.mozilla.xpcom;bundle-version="1.9.1",
+ org.jboss.tools.vpe,
+ org.jboss.tools.jsf.vpe.jsf;bundle-version="2.0.0",
+ org.jboss.tools.common,
+ org.eclipse.jface.text,
+ org.jboss.tools.jst.jsp
+Bundle-ActivationPolicy: lazy
+Bundle-RequiredExecutionEnvironment: J2SE-1.5
+Bundle-Vendor: %providerName
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jbpm/about.html
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jbpm/about.html (rev
0)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jbpm/about.html 2010-04-01 09:04:30 UTC (rev
21183)
@@ -0,0 +1,34 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<HTML>
+
+<head>
+<title>About</title>
+<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
+</head>
+
+<BODY lang="EN-US">
+
+<H3>About This Content</H3>
+
+<P>©2007 Red Hat, Inc. All rights reserved</P>
+
+<H3>License</H3>
+
+<P>Red Hat Inc., through its JBoss division, makes available all content in this
plug-in
+("Content"). Unless otherwise indicated below, the Content is provided to you
+under the terms and conditions of the Eclipse Public License Version 1.0
+("EPL"). A copy of the EPL is available at
+<A
href="http://www.eclipse.org/org/documents/epl-v10.php">http...;.
+For purposes of the EPL, "Program" will mean the Content.</P>
+
+<P>If you did not receive this Content directly from Red Hat Inc., the
+Content is being redistributed by another party ("Redistributor") and different
+terms and conditions may apply to your use of any object code in the Content.
+Check the Redistributor's license that was provided with the Content. If no such
+license exists, contact the Redistributor. Unless otherwise indicated below, the
+terms and conditions of the EPL still apply to any source code in the Content
+and such source code may be obtained at
+ <A
href="http://www.jboss.org/tools">http://www.jboss.org/tools...
+
+</BODY>
+</HTML>
\ No newline at end of file
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jbpm/build.properties
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jbpm/build.properties
(rev 0)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jbpm/build.properties 2010-04-01 09:04:30
UTC (rev 21183)
@@ -0,0 +1,8 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .,\
+ plugin.xml,\
+ about.html,\
+ plugin.properties,\
+ templates/
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jbpm/plugin.properties
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jbpm/plugin.properties
(rev 0)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jbpm/plugin.properties 2010-04-01 09:04:30
UTC (rev 21183)
@@ -0,0 +1,2 @@
+providerName=JBoss by Red Hat
+pluginName=jBPM support for JBoss Visual Page Editor Plug-in
\ No newline at end of file
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jbpm/plugin.xml
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jbpm/plugin.xml (rev
0)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jbpm/plugin.xml 2010-04-01 09:04:30 UTC (rev
21183)
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.4"?>
+<plugin>
+ <extension
+ point="org.jboss.tools.vpe.templates">
+ <templates
+ name="jBPM Reference Implementation"
+ path="templates/vpe-templates-jbpm.xml">
+ </templates>
+ </extension>
+
+</plugin>
Added:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jbpm/src/org/jboss/tools/jsf/vpe/jbpm/JBPMTemplatePlugin.java
===================================================================
---
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jbpm/src/org/jboss/tools/jsf/vpe/jbpm/JBPMTemplatePlugin.java
(rev 0)
+++
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jbpm/src/org/jboss/tools/jsf/vpe/jbpm/JBPMTemplatePlugin.java 2010-04-01
09:04:30 UTC (rev 21183)
@@ -0,0 +1,60 @@
+/*******************************************************************************
+ * Copyright (c) 2007-2010 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:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.jsf.vpe.jbpm;
+
+import org.jboss.tools.common.log.BaseUIPlugin;
+import org.osgi.framework.BundleContext;
+
+/**
+ * The activator class controls the plug-in life cycle
+ */
+public class JBPMTemplatePlugin extends BaseUIPlugin {
+
+ // The plug-in ID
+ public static final String PLUGIN_ID = "org.jboss.tools.jsf.vpe.jbpm";
//$NON-NLS-1$
+
+ // The shared instance
+ private static JBPMTemplatePlugin plugin;
+
+ /**
+ * The constructor
+ */
+ public JBPMTemplatePlugin() {
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
+ */
+ public void start(BundleContext context) throws Exception {
+ super.start(context);
+ plugin = this;
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
+ */
+ public void stop(BundleContext context) throws Exception {
+ plugin = null;
+ super.stop(context);
+ }
+
+ /**
+ * Returns the shared instance
+ *
+ * @return the shared instance
+ */
+ public static JBPMTemplatePlugin getDefault() {
+ return plugin;
+ }
+
+}
Added:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jbpm/src/org/jboss/tools/jsf/vpe/jbpm/template/JBPMDataCell.java
===================================================================
---
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jbpm/src/org/jboss/tools/jsf/vpe/jbpm/template/JBPMDataCell.java
(rev 0)
+++
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jbpm/src/org/jboss/tools/jsf/vpe/jbpm/template/JBPMDataCell.java 2010-04-01
09:04:30 UTC (rev 21183)
@@ -0,0 +1,100 @@
+/*******************************************************************************
+ * Copyright (c) 2007-2010 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
+ *
+ * Contributor:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+
+package org.jboss.tools.jsf.vpe.jbpm.template;
+
+import java.util.ArrayList;
+import java.util.List;
+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.editor.util.HTML;
+import org.mozilla.interfaces.nsIDOMDocument;
+import org.mozilla.interfaces.nsIDOMElement;
+import org.mozilla.interfaces.nsIDOMNode;
+import org.mozilla.interfaces.nsIDOMNodeList;
+import org.w3c.dom.Node;
+
+/**
+ *
+ * @author yzhishko
+ *
+ */
+
+public class JBPMDataCell extends VpeAbstractTemplate {
+
+ private static final String JBPM_CELL_HEADER_TYPE = "vpe-jbpm-cell-header";
//$NON-NLS-1$
+
+ public VpeCreationData create(VpePageContext pageContext, Node sourceNode,
+ nsIDOMDocument visualDocument) {
+ return new VpeCreationData(visualDocument.createElement(HTML.TAG_TR));
+ }
+
+ @Override
+ public void validate(VpePageContext pageContext, Node sourceNode,
+ nsIDOMDocument visualDocument, VpeCreationData data) {
+ nsIDOMElement trElement = (nsIDOMElement) data.getNode()
+ .queryInterface(nsIDOMElement.NS_IDOMELEMENT_IID);
+ nsIDOMElement cellHeader = getCellHeader(trElement);
+ if (cellHeader != null) {
+ trElement.removeChild(cellHeader);
+ }
+ nsIDOMNodeList children = trElement.getChildNodes();
+ List<nsIDOMNode> childNodeList = new ArrayList<nsIDOMNode>(0);
+ for (int i = 0; i < children.getLength(); i++) {
+ childNodeList.add(children.item(i));
+ }
+ while (trElement.hasChildNodes()) {
+ trElement.removeChild(trElement.getFirstChild());
+ }
+ nsIDOMElement secondColumn = visualDocument.createElement(HTML.TAG_TD);
+ secondColumn.setAttribute(HTML.ATTR_STYLE, computeColumnStyleValue());
+ if (cellHeader != null) {
+ trElement.appendChild(cellHeader);
+ }
+ trElement.appendChild(secondColumn);
+ for (nsIDOMNode nsIDOMNode : childNodeList) {
+ secondColumn.appendChild(nsIDOMNode);
+ }
+ }
+
+ private nsIDOMElement getCellHeader(nsIDOMElement trElement) {
+ nsIDOMNodeList headsList = trElement.getElementsByTagName(HTML.TAG_TH);
+ if (headsList == null) {
+ return null;
+ }
+ for (int i = 0; i < headsList.getLength(); i++) {
+ nsIDOMElement element = (nsIDOMElement) headsList.item(i)
+ .queryInterface(nsIDOMElement.NS_IDOMELEMENT_IID);
+ if (JBPM_CELL_HEADER_TYPE.equals(element
+ .getAttribute("vpe-pseudo-type"))) { //$NON-NLS-1$
+ return element;
+ }
+ }
+ return null;
+ }
+
+ private String computeColumnStyleValue() {
+ StringBuilder builder = new StringBuilder(""); //$NON-NLS-1$
+ builder.append("background:none repeat scroll 0 0 #DDDDDD;"); //$NON-NLS-1$
+ builder.append("border-bottom:1px solid #000000;"); //$NON-NLS-1$
+ builder.append("border-collapse:collapse;"); //$NON-NLS-1$
+ builder.append("color:#000000;"); //$NON-NLS-1$
+ builder.append("font-size:11px;"); //$NON-NLS-1$
+ builder.append("text-align:left;"); //$NON-NLS-1$
+ builder.append("text-decoration:none;"); //$NON-NLS-1$
+ builder.append("white-space:nowrap;"); //$NON-NLS-1$
+ builder.append("width:260px;"); //$NON-NLS-1$
+ builder.append("padding:3px 5px;"); //$NON-NLS-1$
+ builder.append("margin:0"); //$NON-NLS-1$
+ return builder.toString();
+ }
+}
Added:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jbpm/src/org/jboss/tools/jsf/vpe/jbpm/template/JBPMDataForm.java
===================================================================
---
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jbpm/src/org/jboss/tools/jsf/vpe/jbpm/template/JBPMDataForm.java
(rev 0)
+++
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jbpm/src/org/jboss/tools/jsf/vpe/jbpm/template/JBPMDataForm.java 2010-04-01
09:04:30 UTC (rev 21183)
@@ -0,0 +1,136 @@
+/*******************************************************************************
+ * Copyright (c) 2007-2010 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
+ *
+ * Contributor:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+
+package org.jboss.tools.jsf.vpe.jbpm.template;
+
+import java.util.ArrayList;
+import java.util.List;
+import org.jboss.tools.vpe.editor.context.VpePageContext;
+import org.jboss.tools.vpe.editor.template.VpeAbstractTemplate;
+import org.jboss.tools.vpe.editor.template.VpeChildrenInfo;
+import org.jboss.tools.vpe.editor.template.VpeCreationData;
+import org.jboss.tools.vpe.editor.util.HTML;
+import org.mozilla.interfaces.nsIDOMDocument;
+import org.mozilla.interfaces.nsIDOMElement;
+import org.mozilla.interfaces.nsIDOMNode;
+import org.mozilla.interfaces.nsIDOMNodeList;
+import org.w3c.dom.Element;
+import org.w3c.dom.Node;
+import org.w3c.dom.NodeList;
+
+/**
+ *
+ * @author yzhishko
+ *
+ */
+
+public class JBPMDataForm extends VpeAbstractTemplate {
+
+ private static final String JBPM_FORM_HEADER_TYPE = "vpe-jbpm-form-header";
//$NON-NLS-1$
+
+ public VpeCreationData create(VpePageContext pageContext, Node sourceNode,
+ nsIDOMDocument visualDocument) {
+ nsIDOMElement element = visualDocument.createElement(HTML.TAG_TABLE);
+ Element sourceElement = (Element) sourceNode;
+ element
+ .setAttribute(
+ HTML.ATTR_STYLE,
+ computeBaseTableStyleValue()
+ + (sourceElement.getAttribute(HTML.ATTR_STYLE) == null ? "" :
sourceElement.getAttribute(HTML.ATTR_STYLE))); //$NON-NLS-1$
+ VpeCreationData creationData = new VpeCreationData(element);
+ VpeChildrenInfo childrenInfo = new VpeChildrenInfo(element);
+ NodeList children = sourceNode.getChildNodes();
+ for (int i = 0; i < children.getLength(); i++) {
+ Node childNode = children.item(i);
+ if (childNode instanceof Element) {
+ if (childNode.getNodeName().endsWith(":datacell") ||
childNode.getNodeName().endsWith(":facet")) { //$NON-NLS-1$ //$NON-NLS-2$
+ childrenInfo.addSourceChild(childNode);
+ }
+ }
+ }
+ creationData.addChildrenInfo(childrenInfo);
+ return creationData;
+ }
+
+ @Override
+ public void validate(VpePageContext pageContext, Node sourceNode,
+ nsIDOMDocument visualDocument, VpeCreationData data) {
+ nsIDOMNode visualNode = data.getNode();
+ nsIDOMElement visualTable = (nsIDOMElement) visualNode
+ .queryInterface(nsIDOMElement.NS_IDOMELEMENT_IID);
+ nsIDOMElement[] tableRows = getTableRows(visualTable);
+ nsIDOMElement formHeader = getDataFormHeader(visualTable);
+ while (visualTable.hasChildNodes()) {
+ visualTable.removeChild(visualTable.getFirstChild());
+ }
+ nsIDOMElement colFroupElement = visualDocument
+ .createElement(HTML.TAG_COLGROUP);
+ colFroupElement.setAttribute(HTML.ATTR_SPAN, "2"); //$NON-NLS-1$
+ visualTable.appendChild(colFroupElement);
+ nsIDOMElement theadElement = visualDocument
+ .createElement(HTML.TAG_THEAD);
+ nsIDOMElement trHeadElement = visualDocument.createElement(HTML.TAG_TR);
+ theadElement.appendChild(trHeadElement);
+ visualTable.appendChild(theadElement);
+ if (formHeader != null) {
+ trHeadElement.appendChild(formHeader);
+ }
+ nsIDOMElement tbodyElement = visualDocument
+ .createElement(HTML.TAG_TBODY);
+ visualTable.appendChild(tbodyElement);
+ for (int i = 0; i < tableRows.length; i++) {
+ tbodyElement.appendChild(tableRows[i]);
+ }
+ }
+
+ private nsIDOMElement[] getTableRows(nsIDOMElement tableElement) {
+ List<nsIDOMElement> rowElements = new ArrayList<nsIDOMElement>(0);
+ nsIDOMNodeList tableList = tableElement
+ .getElementsByTagName(HTML.TAG_TR);
+ if (tableList != null) {
+ for (int i = 0; i < tableList.getLength(); i++) {
+ rowElements.add((nsIDOMElement) tableList.item(i)
+ .queryInterface(nsIDOMElement.NS_IDOMELEMENT_IID));
+ }
+ }
+ return rowElements.toArray(new nsIDOMElement[0]);
+ }
+
+ private nsIDOMElement getDataFormHeader(nsIDOMElement tableElement) {
+ nsIDOMNodeList headsList = tableElement
+ .getElementsByTagName(HTML.TAG_TH);
+ if (headsList == null) {
+ return null;
+ }
+ for (int i = 0; i < headsList.getLength(); i++) {
+ nsIDOMElement element = (nsIDOMElement) headsList.item(i)
+ .queryInterface(nsIDOMElement.NS_IDOMELEMENT_IID);
+ if (JBPM_FORM_HEADER_TYPE.equals(element
+ .getAttribute("vpe-pseudo-type"))) { //$NON-NLS-1$
+ return element;
+ }
+ }
+ return null;
+ }
+
+ private String computeBaseTableStyleValue() {
+ StringBuilder builder = new StringBuilder(""); //$NON-NLS-1$
+ builder.append("font-family:verdana,sans-serif;"); //$NON-NLS-1$
+ builder.append("font-size:10pt;"); //$NON-NLS-1$
+ builder.append("font-weight:normal;"); //$NON-NLS-1$
+ builder.append("margin-right:auto;"); //$NON-NLS-1$
+ builder.append("margin-left:auto;"); //$NON-NLS-1$
+ builder.append("border-collapse:collapse;"); //$NON-NLS-1$
+ builder.append("border:1px solid #000000"); //$NON-NLS-1$
+ return builder.toString();
+ }
+
+}
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jbpm/templates/vpe-templates-jbpm.xml
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jbpm/templates/vpe-templates-jbpm.xml
(rev 0)
+++
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jbpm/templates/vpe-templates-jbpm.xml 2010-04-01
09:04:30 UTC (rev 21183)
@@ -0,0 +1,314 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<vpe:templates
xmlns:vpe="http://org.jboss.org/tools/vpe/template"
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <vpe:template-taglib
uri="http://jbpm.org/jsf/tf"
+ prefix="tf" />
+ <vpe:template-taglib
uri="http://jbpm.org/jsf"
+ prefix="jbpm" />
+
+ <vpe:tag name="tf:saveButton" case-sensitive="yes">
+ <vpe:if test="(@disabled='true')">
+ <vpe:if test="not(attrpresent('image'))">
+ <vpe:if test="(@type='')">
+ <vpe:template children="no" modify="no">
+ <input type="button" value="{iif(@value='','
',jsfvalue(@value))}"
+ class="{@styleClass}" style="{@style}"
title="{tagstring()}" dir="{@dir}"
+ disabled='disabled' />
+ <vpe:resize>
+ <vpe:width width-attr="style.width" />
+ <vpe:height height-attr="style.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="not(@type='')">
+ <vpe:template children="no" modify="no">
+ <input type="{@type}" value="{iif(@value='','
',jsfvalue(@value))}"
+ class="{@styleClass}" style="{@style}"
title="{tagstring()}" dir="{@dir}"
+ disabled='disabled' />
+ <vpe:resize>
+ <vpe:width width-attr="style.width" />
+ <vpe:height height-attr="style.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>
+ <vpe:if test="attrpresent('image')">
+ <vpe:template children="no" modify="no">
+ <input type="image" src="{src(@image)}"
class="{@styleClass}"
+ style="{@style}" title="{tagstring()}"
disabled='disabled' />
+ <vpe:resize>
+ <vpe:width width-attr="style.width" />
+ <vpe:height height-attr="style.height" />
+ </vpe:resize>
+ <vpe:textFormatting use-default-formats="yes">
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:if>
+ </vpe:if>
+ <!--else-->
+ <vpe:if test="not(attrpresent('image'))">
+ <vpe:if test="(@type='')">
+ <vpe:template children="no" modify="no">
+ <input type="button" value="{iif(@value='','
',jsfvalue(@value))}"
+ class="{@styleClass}" style="{@style}"
title="{tagstring()}" dir="{@dir}" />
+ <vpe:resize>
+ <vpe:width width-attr="style.width" />
+ <vpe:height height-attr="style.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="not(@type='')">
+ <vpe:template children="no" modify="no">
+ <input type="{@type}" value="{iif(@value='','
',jsfvalue(@value))}"
+ class="{@styleClass}" style="{@style}"
title="{tagstring()}" dir="{@dir}" />
+ <vpe:resize>
+ <vpe:width width-attr="style.width" />
+ <vpe:height height-attr="style.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>
+ <vpe:if test="attrpresent('image')">
+ <vpe:template children="no" modify="no">
+ <input type="image" src="{src(@image)}"
class="{@styleClass}"
+ style="{@style}" title="{tagstring()}" />
+ <vpe:resize>
+ <vpe:width width-attr="style.width" />
+ <vpe:height height-attr="style.height" />
+ </vpe:resize>
+ <vpe:textFormatting use-default-formats="yes">
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:if>
+ </vpe:tag>
+
+ <vpe:tag name="tf:cancelButton" case-sensitive="yes">
+ <vpe:if test="(@disabled='true')">
+ <vpe:if test="not(attrpresent('image'))">
+ <vpe:if test="(@type='')">
+ <vpe:template children="no" modify="no">
+ <input type="button" value="{iif(@value='','
',jsfvalue(@value))}"
+ class="{@styleClass}" style="{@style}"
title="{tagstring()}" dir="{@dir}"
+ disabled='disabled' />
+ <vpe:resize>
+ <vpe:width width-attr="style.width" />
+ <vpe:height height-attr="style.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="not(@type='')">
+ <vpe:template children="no" modify="no">
+ <input type="{@type}" value="{iif(@value='','
',jsfvalue(@value))}"
+ class="{@styleClass}" style="{@style}"
title="{tagstring()}" dir="{@dir}"
+ disabled='disabled' />
+ <vpe:resize>
+ <vpe:width width-attr="style.width" />
+ <vpe:height height-attr="style.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>
+ <vpe:if test="attrpresent('image')">
+ <vpe:template children="no" modify="no">
+ <input type="image" src="{src(@image)}"
class="{@styleClass}"
+ style="{@style}" title="{tagstring()}"
disabled='disabled' />
+ <vpe:resize>
+ <vpe:width width-attr="style.width" />
+ <vpe:height height-attr="style.height" />
+ </vpe:resize>
+ <vpe:textFormatting use-default-formats="yes">
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:if>
+ </vpe:if>
+ <!--else-->
+ <vpe:if test="not(attrpresent('image'))">
+ <vpe:if test="(@type='')">
+ <vpe:template children="no" modify="no">
+ <input type="button" value="{iif(@value='','
',jsfvalue(@value))}"
+ class="{@styleClass}" style="{@style}"
title="{tagstring()}" dir="{@dir}" />
+ <vpe:resize>
+ <vpe:width width-attr="style.width" />
+ <vpe:height height-attr="style.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="not(@type='')">
+ <vpe:template children="no" modify="no">
+ <input type="{@type}" value="{iif(@value='','
',jsfvalue(@value))}"
+ class="{@styleClass}" style="{@style}"
title="{tagstring()}" dir="{@dir}" />
+ <vpe:resize>
+ <vpe:width width-attr="style.width" />
+ <vpe:height height-attr="style.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>
+ <vpe:if test="attrpresent('image')">
+ <vpe:template children="no" modify="no">
+ <input type="image" src="{src(@image)}"
class="{@styleClass}"
+ style="{@style}" title="{tagstring()}" />
+ <vpe:resize>
+ <vpe:width width-attr="style.width" />
+ <vpe:height height-attr="style.height" />
+ </vpe:resize>
+ <vpe:textFormatting use-default-formats="yes">
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:if>
+ </vpe:tag>
+
+ <vpe:tag name="tf:transitionButton" case-sensitive="yes">
+ <vpe:if test="(@disabled='true')">
+ <vpe:if test="not(attrpresent('image'))">
+ <vpe:if test="(@type='')">
+ <vpe:template children="no" modify="no">
+ <input type="button" value="{iif(@value='','
',jsfvalue(@value))}"
+ class="{@styleClass}" style="{@style}"
title="{tagstring()}" dir="{@dir}"
+ disabled='disabled' />
+ <vpe:resize>
+ <vpe:width width-attr="style.width" />
+ <vpe:height height-attr="style.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="not(@type='')">
+ <vpe:template children="no" modify="no">
+ <input type="{@type}" value="{iif(@value='','
',jsfvalue(@value))}"
+ class="{@styleClass}" style="{@style}"
title="{tagstring()}" dir="{@dir}"
+ disabled='disabled' />
+ <vpe:resize>
+ <vpe:width width-attr="style.width" />
+ <vpe:height height-attr="style.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>
+ <vpe:if test="attrpresent('image')">
+ <vpe:template children="no" modify="no">
+ <input type="image" src="{src(@image)}"
class="{@styleClass}"
+ style="{@style}" title="{tagstring()}"
disabled='disabled' />
+ <vpe:resize>
+ <vpe:width width-attr="style.width" />
+ <vpe:height height-attr="style.height" />
+ </vpe:resize>
+ <vpe:textFormatting use-default-formats="yes">
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:if>
+ </vpe:if>
+ <!--else-->
+ <vpe:if test="not(attrpresent('image'))">
+ <vpe:if test="(@type='')">
+ <vpe:template children="no" modify="no">
+ <input type="button" value="{iif(@value='','
',jsfvalue(@value))}"
+ class="{@styleClass}" style="{@style}"
title="{tagstring()}" dir="{@dir}" />
+ <vpe:resize>
+ <vpe:width width-attr="style.width" />
+ <vpe:height height-attr="style.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="not(@type='')">
+ <vpe:template children="no" modify="no">
+ <input type="{@type}" value="{iif(@value='','
',jsfvalue(@value))}"
+ class="{@styleClass}" style="{@style}"
title="{tagstring()}" dir="{@dir}" />
+ <vpe:resize>
+ <vpe:width width-attr="style.width" />
+ <vpe:height height-attr="style.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>
+ <vpe:if test="attrpresent('image')">
+ <vpe:template children="no" modify="no">
+ <input type="image" src="{src(@image)}"
class="{@styleClass}"
+ style="{@style}" title="{tagstring()}" />
+ <vpe:resize>
+ <vpe:width width-attr="style.width" />
+ <vpe:height height-attr="style.height" />
+ </vpe:resize>
+ <vpe:textFormatting use-default-formats="yes">
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:if>
+ </vpe:tag>
+
+ <vpe:tag name="jbpm:datacell" case-sensitive="yes">
+ <vpe:template children="yes" modify="no"
+ class="org.jboss.tools.jsf.vpe.jbpm.template.JBPMDataCell">
+ <vpe:dnd>
+ <vpe:drop container="yes" />
+ </vpe:dnd>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="jbpm:dataform" case-sensitive="yes">
+ <vpe:template children="yes" modify="no"
+ class="org.jboss.tools.jsf.vpe.jbpm.template.JBPMDataForm" />
+ <vpe:dnd>
+ <vpe:drop container="yes" />
+ </vpe:dnd>
+ </vpe:tag>
+
+</vpe:templates>
\ No newline at end of file
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 2010-04-01
07:40:51 UTC (rev 21182)
+++
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/templates/vpe-templates-jsf.xml 2010-04-01
09:04:30 UTC (rev 21183)
@@ -723,6 +723,26 @@
</vpe:template>
</vpe:if>
+ <vpe:if test="@name='header' and
hasinparents('jbpm:datacell')">
+ <vpe:template children="yes" modify="no">
+ <th scope="colgroup" vpe-pseudo-type='vpe-jbpm-cell-header'
+ style='background:none repeat scroll 0 0 #444444;border-bottom:1px solid
#000000;border-collapse:collapse;color:#FFFFFF;font-size:11px;text-align:left;text-decoration:none;white-space:nowrap;width:130px;padding:3px
5px' />
+ <vpe:dnd>
+ <vpe:drop container="yes" />
+ </vpe:dnd>
+ </vpe:template>
+ </vpe:if>
+
+ <vpe:if test="@name='header' and
hasinparents('jbpm:dataform')">
+ <vpe:template children="yes" modify="no">
+ <th colspan='2' vpe-pseudo-type='vpe-jbpm-form-header'
+ style='background-color:#990000;border-bottom:1px solid
#000000;color:#FFFF99;font-weight:bold;text-align:left' />
+ <vpe:dnd>
+ <vpe:drop container="yes" />
+ </vpe:dnd>
+ </vpe:template>
+ </vpe:if>
+
<vpe:template children="yes" modify="yes"
class="org.jboss.tools.jsf.vpe.jsf.template.JsfFacet" >
<vpe:dnd>
<vpe:drag start-enable="yes" />
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/.classpath
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/.classpath
(rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/.classpath 2010-04-01 09:04:30 UTC
(rev 21183)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+ <classpathentry kind="con"
path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/.project
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/.project
(rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/.project 2010-04-01 09:04:30 UTC
(rev 21183)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.jboss.tools.jsf.vpe.jbpm.test</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/.settings/org.eclipse.jdt.core.prefs
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/.settings/org.eclipse.jdt.core.prefs
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/.settings/org.eclipse.jdt.core.prefs 2010-04-01
09:04:30 UTC (rev 21183)
@@ -0,0 +1,8 @@
+#Wed Mar 31 18:08:22 EEST 2010
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.5
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/META-INF/MANIFEST.MF
(rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/META-INF/MANIFEST.MF 2010-04-01
09:04:30 UTC (rev 21183)
@@ -0,0 +1,14 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: %Bundle-Name.0
+Bundle-SymbolicName: org.jboss.tools.jsf.vpe.jbpm.test;singleton:=true
+Bundle-Version: 1.0.0.qualifier
+Bundle-Activator: org.jboss.tools.jsf.vpe.jbpm.test.JBPMTestPlugin
+Require-Bundle: org.eclipse.ui,
+ org.eclipse.core.runtime,
+ org.jboss.tools.common,
+ org.jboss.tools.vpe.ui.test,
+ org.junit
+Bundle-ActivationPolicy: lazy
+Bundle-RequiredExecutionEnvironment: J2SE-1.5
+Bundle-Vendor: %Bundle-Vendor.0
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/about.html
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/about.html
(rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/about.html 2010-04-01 09:04:30 UTC
(rev 21183)
@@ -0,0 +1,34 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<HTML>
+
+<head>
+<title>About</title>
+<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
+</head>
+
+<BODY lang="EN-US">
+
+<H3>About This Content</H3>
+
+<P>©2007 Red Hat, Inc. All rights reserved</P>
+
+<H3>License</H3>
+
+<P>Red Hat Inc., through its JBoss division, makes available all content in this
plug-in
+("Content"). Unless otherwise indicated below, the Content is provided to you
+under the terms and conditions of the Eclipse Public License Version 1.0
+("EPL"). A copy of the EPL is available at
+<A
href="http://www.eclipse.org/org/documents/epl-v10.php">http...;.
+For purposes of the EPL, "Program" will mean the Content.</P>
+
+<P>If you did not receive this Content directly from Red Hat Inc., the
+Content is being redistributed by another party ("Redistributor") and different
+terms and conditions may apply to your use of any object code in the Content.
+Check the Redistributor's license that was provided with the Content. If no such
+license exists, contact the Redistributor. Unless otherwise indicated below, the
+terms and conditions of the EPL still apply to any source code in the Content
+and such source code may be obtained at
+ <A
href="http://www.jboss.org/tools">http://www.jboss.org/tools...
+
+</BODY>
+</HTML>
\ No newline at end of file
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/build.properties
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/build.properties
(rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/build.properties 2010-04-01 09:04:30
UTC (rev 21183)
@@ -0,0 +1,8 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .,\
+ plugin.xml,\
+ about.html,\
+ plugin.properties,\
+ resources/
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/plugin.properties
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/plugin.properties
(rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/plugin.properties 2010-04-01
09:04:30 UTC (rev 21183)
@@ -0,0 +1,3 @@
+#Properties file for org.jboss.tools.jsf.vpe.jbpm.test
+Bundle-Vendor.0 = JBoss by Red Hat
+Bundle-Name.0 = jBPM Test Plug-in
\ No newline at end of file
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/plugin.xml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/plugin.xml
(rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/plugin.xml 2010-04-01 09:04:30 UTC
(rev 21183)
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.4"?>
+<plugin>
+ <extension
+ point="org.jboss.tools.vpe.ui.tests">
+ <tests
+ name="JBPMAllTests"
+ testSuite="org.jboss.tools.jsf.vpe.jbpm.test.JBPMAllTests">
+ </tests>
+ <testProject
+ name="jBPMTestProject"
+ path="resources/jBPMTestProject">
+ </testProject>
+ </extension>
+
+</plugin>
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/.classpath
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/.classpath
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/.classpath 2010-04-01
09:04:30 UTC (rev 21183)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="JavaSource"/>
+ <classpathentry kind="con"
path="org.eclipse.jst.j2ee.internal.web.container"/>
+ <classpathentry kind="con"
path="org.eclipse.jst.j2ee.internal.module.container"/>
+ <classpathentry kind="con"
path="org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runtimeTarget/Apache
Tomcat v6.0">
+ <attributes>
+ <attribute name="owner.project.facets" value="jst.web"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.5.0_16">
+ <attributes>
+ <attribute name="owner.project.facets" value="jst.java"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="output"
path="WebContent/WEB-INF/classes"/>
+</classpath>
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/.project
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/.project
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/.project 2010-04-01
09:04:30 UTC (rev 21183)
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>jBPMTestProject</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.wst.common.project.facet.core.builder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.wst.validation.validationbuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.jboss.tools.common.verification.verifybuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.jboss.tools.jst.web.kb.kbbuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
+ <nature>org.jboss.tools.jsf.jsfnature</nature>
+ <nature>org.eclipse.wst.common.project.facet.core.nature</nature>
+ <nature>org.eclipse.wst.jsdt.core.jsNature</nature>
+ <nature>org.jboss.tools.jst.web.kb.kbnature</nature>
+ </natures>
+</projectDescription>
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/.settings/.jsdtscope
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/.settings/.jsdtscope
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/.settings/.jsdtscope 2010-04-01
09:04:30 UTC (rev 21183)
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="con"
path="org.eclipse.wst.jsdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="con"
path="org.eclipse.wst.jsdt.launching.WebProject">
+ <attributes>
+ <attribute name="hide" value="true"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="con"
path="org.eclipse.wst.jsdt.launching.baseBrowserLibrary"/>
+ <classpathentry kind="output" path=""/>
+</classpath>
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/.settings/org.eclipse.jdt.core.prefs
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/.settings/org.eclipse.jdt.core.prefs
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/.settings/org.eclipse.jdt.core.prefs 2010-04-01
09:04:30 UTC (rev 21183)
@@ -0,0 +1,7 @@
+#Wed Mar 31 18:30:03 EEST 2010
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.5
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/.settings/org.eclipse.wst.common.component
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/.settings/org.eclipse.wst.common.component
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/.settings/org.eclipse.wst.common.component 2010-04-01
09:04:30 UTC (rev 21183)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project-modules id="moduleCoreId" project-version="1.5.0">
+<wb-module deploy-name="jBPMTestProject">
+<wb-resource deploy-path="/" source-path="/WebContent"/>
+<wb-resource deploy-path="/WEB-INF/classes"
source-path="/JavaSource"/>
+<property name="context-root" value="jBPMTestProject"/>
+<property name="java-output-path"
value="/jBPMTestProject/WebContent/WEB-INF/classes"/>
+</wb-module>
+</project-modules>
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/.settings/org.eclipse.wst.common.project.facet.core.xml
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/.settings/org.eclipse.wst.common.project.facet.core.xml
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/.settings/org.eclipse.wst.common.project.facet.core.xml 2010-04-01
09:04:30 UTC (rev 21183)
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<faceted-project>
+ <runtime name="Apache Tomcat v6.0"/>
+ <fixed facet="jst.java"/>
+ <fixed facet="jst.web"/>
+ <installed facet="jst.java" version="5.0"/>
+ <installed facet="jst.web" version="2.5"/>
+</faceted-project>
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/.settings/org.eclipse.wst.jsdt.ui.superType.container
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/.settings/org.eclipse.wst.jsdt.ui.superType.container
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/.settings/org.eclipse.wst.jsdt.ui.superType.container 2010-04-01
09:04:30 UTC (rev 21183)
@@ -0,0 +1 @@
+org.eclipse.wst.jsdt.launching.baseBrowserLibrary
\ No newline at end of file
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/.settings/org.eclipse.wst.jsdt.ui.superType.name
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/.settings/org.eclipse.wst.jsdt.ui.superType.name
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/.settings/org.eclipse.wst.jsdt.ui.superType.name 2010-04-01
09:04:30 UTC (rev 21183)
@@ -0,0 +1 @@
+Window
\ No newline at end of file
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/WebContent/META-INF/MANIFEST.MF
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/WebContent/META-INF/MANIFEST.MF
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/WebContent/META-INF/MANIFEST.MF 2010-04-01
09:04:30 UTC (rev 21183)
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Class-Path:
+
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/WebContent/pages/components/cancelButton.xhtml
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/WebContent/pages/components/cancelButton.xhtml
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/WebContent/pages/components/cancelButton.xhtml 2010-04-01
09:04:30 UTC (rev 21183)
@@ -0,0 +1,13 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:tf="http://jbpm.org/jsf/tf"
+
xmlns:jbpm="http://jbpm.org/jsf">
+
+ <ui:composition>
+ <tf:cancelButton value="Cancel" id="id1"/>
+ </ui:composition>
+
+</html>
\ No newline at end of file
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/WebContent/pages/components/cancelButton.xhtml.xml
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/WebContent/pages/components/cancelButton.xhtml.xml
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/WebContent/pages/components/cancelButton.xhtml.xml 2010-04-01
09:04:30 UTC (rev 21183)
@@ -0,0 +1,5 @@
+<tests>
+<test id="id1">
+<INPUT TYPE="button" VALUE="Cancel" STYLE="-moz-user-modify:
read-only;"/>
+</test>
+</tests>
\ No newline at end of file
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/WebContent/pages/components/saveButton.xhtml
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/WebContent/pages/components/saveButton.xhtml
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/WebContent/pages/components/saveButton.xhtml 2010-04-01
09:04:30 UTC (rev 21183)
@@ -0,0 +1,13 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:tf="http://jbpm.org/jsf/tf"
+
xmlns:jbpm="http://jbpm.org/jsf">
+
+ <ui:composition>
+ <tf:saveButton value="Save" id="id1"/>
+ </ui:composition>
+
+</html>
\ No newline at end of file
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/WebContent/pages/components/saveButton.xhtml.xml
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/WebContent/pages/components/saveButton.xhtml.xml
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/WebContent/pages/components/saveButton.xhtml.xml 2010-04-01
09:04:30 UTC (rev 21183)
@@ -0,0 +1,5 @@
+<tests>
+<test id="id1">
+<INPUT TYPE="button" VALUE="Save" STYLE="-moz-user-modify:
read-only;"/>
+</test>
+</tests>
\ No newline at end of file
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/WebContent/pages/components/taskForm.xhtml
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/WebContent/pages/components/taskForm.xhtml
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/WebContent/pages/components/taskForm.xhtml 2010-04-01
09:04:30 UTC (rev 21183)
@@ -0,0 +1,61 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
+
+<!-- the DOCTYPE means we are required to use html for a root element -->
+<html
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:c="http://java.sun.com/jstl/core"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:tf="http://jbpm.org/jsf/tf"
xmlns:jbpm="http://jbpm.org/jsf">
+
+<ui:component>
+
+ <jbpm:dataform id="id1">
+
+ <f:facet name="header">
+ <h:outputText value="#{taskName}" />
+ </f:facet>
+
+ <!-- TASKFORM ROWS -->
+ <jbpm:datacell>
+ <f:facet name="header">
+ <h:outputText value="field1" />
+ </f:facet>
+ <h:inputText value="#{var['field1']}" />
+ </jbpm:datacell>
+ <jbpm:datacell>
+ <f:facet name="header">
+ <h:outputText value="field2" />
+ </f:facet>
+ <h:inputText value="#{var['field2']}" />
+ </jbpm:datacell>
+ <jbpm:datacell>
+ <f:facet name="header">
+ <h:outputText value="field3" />
+ </f:facet>
+ <h:inputText value="#{var['field3']}" />
+ </jbpm:datacell>
+ <jbpm:datacell>
+ <f:facet name="header">
+ <h:outputText value="field4" />
+ </f:facet>
+ <h:inputText value="#{var['field4']}" />
+ </jbpm:datacell>
+Value should not display
+ <jbpm:datacell>
+ <f:facet name="header">
+ <h:outputText value="Action" />
+ </f:facet>
+ <!-- TASKFORM BUTTONS -->
+ <tf:saveButton value="Save" style=" width : 74px; height :
29px;" />
+ <tf:cancelButton value="Cancel" />
+ <tf:transitionButton transition="button1" value="button1"
/>
+ <tf:transitionButton transition="button2" value="button2"
/>
+ <tf:transitionButton transition="button3" value="button3"
/>
+ </jbpm:datacell>
+
+ </jbpm:dataform>
+
+</ui:component>
+
+</html>
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/WebContent/pages/components/taskForm.xhtml.xml
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/WebContent/pages/components/taskForm.xhtml.xml
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/WebContent/pages/components/taskForm.xhtml.xml 2010-04-01
09:04:30 UTC (rev 21183)
@@ -0,0 +1,83 @@
+<tests>
+<test id="id1">
+<TABLE STYLE="border: 1px solid rgb(0, 0, 0); font-family: verdana,sans-serif;
font-size: 10pt; font-weight: normal; margin-right: auto; margin-left: auto;
border-collapse: collapse;">
+<COLGROUP SPAN="2">
+</COLGROUP>
+<THEAD>
+<TR>
+<TH COLSPAN="2" STYLE="border-bottom: 1px solid rgb(0, 0, 0);
background-color: rgb(153, 0, 0); color: rgb(255, 255, 153); font-weight: bold;
text-align: left; -moz-user-modify: read-only;"
VPE-PSEUDO-TYPE="vpe-jbpm-form-header">
+<SPAN CLASS="vpe-text">
+#{taskName}
+</SPAN>
+</TH>
+</TR>
+</THEAD>
+<TBODY>
+<TR>
+<TH SCOPE="colgroup" STYLE="border-bottom: 1px solid rgb(0, 0, 0);
padding: 3px 5px; background: rgb(68, 68, 68) none repeat scroll 0pt 0pt;
-moz-background-clip: border; -moz-background-origin: padding;
-moz-background-inline-policy: continuous; border-collapse: collapse; color: rgb(255, 255,
255); font-size: 11px; text-align: left; text-decoration: none; white-space: nowrap;
width: 130px; -moz-user-modify: read-only;">
+<SPAN CLASS="vpe-text">
+field1
+</SPAN>
+</TH>
+<TD STYLE="border-bottom: 1px solid rgb(0, 0, 0); margin: 0pt; padding: 3px 5px;
background: rgb(221, 221, 221) none repeat scroll 0pt 0pt; -moz-background-clip: border;
-moz-background-origin: padding; -moz-background-inline-policy: continuous;
border-collapse: collapse; color: rgb(0, 0, 0); font-size: 11px; text-align: left;
text-decoration: none; white-space: nowrap; width: 260px;">
+<INPUT VALUE="#{var['field1']}"/>
+
+</TD>
+</TR>
+<TR>
+<TH SCOPE="colgroup" STYLE="border-bottom: 1px solid rgb(0, 0, 0);
padding: 3px 5px; background: rgb(68, 68, 68) none repeat scroll 0pt 0pt;
-moz-background-clip: border; -moz-background-origin: padding;
-moz-background-inline-policy: continuous; border-collapse: collapse; color: rgb(255, 255,
255); font-size: 11px; text-align: left; text-decoration: none; white-space: nowrap;
width: 130px; -moz-user-modify: read-only;">
+<SPAN CLASS="vpe-text">
+field2
+</SPAN>
+</TH>
+<TD STYLE="border-bottom: 1px solid rgb(0, 0, 0); margin: 0pt; padding: 3px 5px;
background: rgb(221, 221, 221) none repeat scroll 0pt 0pt; -moz-background-clip: border;
-moz-background-origin: padding; -moz-background-inline-policy: continuous;
border-collapse: collapse; color: rgb(0, 0, 0); font-size: 11px; text-align: left;
text-decoration: none; white-space: nowrap; width: 260px;">
+<INPUT VALUE="#{var['field2']}"/>
+
+</TD>
+</TR>
+<TR>
+<TH SCOPE="colgroup" STYLE="border-bottom: 1px solid rgb(0, 0, 0);
padding: 3px 5px; background: rgb(68, 68, 68) none repeat scroll 0pt 0pt;
-moz-background-clip: border; -moz-background-origin: padding;
-moz-background-inline-policy: continuous; border-collapse: collapse; color: rgb(255, 255,
255); font-size: 11px; text-align: left; text-decoration: none; white-space: nowrap;
width: 130px; -moz-user-modify: read-only;">
+<SPAN CLASS="vpe-text">
+field3
+</SPAN>
+</TH>
+<TD STYLE="border-bottom: 1px solid rgb(0, 0, 0); margin: 0pt; padding: 3px 5px;
background: rgb(221, 221, 221) none repeat scroll 0pt 0pt; -moz-background-clip: border;
-moz-background-origin: padding; -moz-background-inline-policy: continuous;
border-collapse: collapse; color: rgb(0, 0, 0); font-size: 11px; text-align: left;
text-decoration: none; white-space: nowrap; width: 260px;">
+<INPUT VALUE="#{var['field3']}"/>
+
+</TD>
+</TR>
+<TR>
+<TH SCOPE="colgroup" STYLE="border-bottom: 1px solid rgb(0, 0, 0);
padding: 3px 5px; background: rgb(68, 68, 68) none repeat scroll 0pt 0pt;
-moz-background-clip: border; -moz-background-origin: padding;
-moz-background-inline-policy: continuous; border-collapse: collapse; color: rgb(255, 255,
255); font-size: 11px; text-align: left; text-decoration: none; white-space: nowrap;
width: 130px; -moz-user-modify: read-only;">
+<SPAN CLASS="vpe-text">
+field4
+</SPAN>
+</TH>
+<TD STYLE="border-bottom: 1px solid rgb(0, 0, 0); margin: 0pt; padding: 3px 5px;
background: rgb(221, 221, 221) none repeat scroll 0pt 0pt; -moz-background-clip: border;
-moz-background-origin: padding; -moz-background-inline-policy: continuous;
border-collapse: collapse; color: rgb(0, 0, 0); font-size: 11px; text-align: left;
text-decoration: none; white-space: nowrap; width: 260px;">
+<INPUT VALUE="#{var['field4']}"/>
+
+</TD>
+</TR>
+<TR>
+<TH SCOPE="colgroup" STYLE="border-bottom: 1px solid rgb(0, 0, 0);
padding: 3px 5px; background: rgb(68, 68, 68) none repeat scroll 0pt 0pt;
-moz-background-clip: border; -moz-background-origin: padding;
-moz-background-inline-policy: continuous; border-collapse: collapse; color: rgb(255, 255,
255); font-size: 11px; text-align: left; text-decoration: none; white-space: nowrap;
width: 130px; -moz-user-modify: read-only;">
+<SPAN CLASS="vpe-text">
+Action
+</SPAN>
+</TH>
+<TD STYLE="border-bottom: 1px solid rgb(0, 0, 0); margin: 0pt; padding: 3px 5px;
background: rgb(221, 221, 221) none repeat scroll 0pt 0pt; -moz-background-clip: border;
-moz-background-origin: padding; -moz-background-inline-policy: continuous;
border-collapse: collapse; color: rgb(0, 0, 0); font-size: 11px; text-align: left;
text-decoration: none; white-space: nowrap; width: 260px;">
+<!-- TASKFORM BUTTONS -->
+<INPUT TYPE="button" STYLE="width: 74px; height: 29px;
-moz-user-modify: read-only;" VALUE="Save"/>
+
+<INPUT TYPE="button" VALUE="Cancel" STYLE="-moz-user-modify:
read-only;"/>
+
+<INPUT TYPE="button" VALUE="button1" STYLE="-moz-user-modify:
read-only;"/>
+
+<INPUT TYPE="button" VALUE="button2" STYLE="-moz-user-modify:
read-only;"/>
+
+<INPUT TYPE="button" VALUE="button3" STYLE="-moz-user-modify:
read-only;"/>
+
+</TD>
+</TR>
+</TBODY>
+</TABLE>
+</test>
+</tests>
\ No newline at end of file
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/WebContent/pages/components/transitionButton.xhtml
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/WebContent/pages/components/transitionButton.xhtml
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/WebContent/pages/components/transitionButton.xhtml 2010-04-01
09:04:30 UTC (rev 21183)
@@ -0,0 +1,13 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:tf="http://jbpm.org/jsf/tf"
+
xmlns:jbpm="http://jbpm.org/jsf">
+
+ <ui:composition>
+ <tf:transitionButton value="Transition" id="id1"/>
+ </ui:composition>
+
+</html>
\ No newline at end of file
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/WebContent/pages/components/transitionButton.xhtml.xml
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/WebContent/pages/components/transitionButton.xhtml.xml
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/WebContent/pages/components/transitionButton.xhtml.xml 2010-04-01
09:04:30 UTC (rev 21183)
@@ -0,0 +1,5 @@
+<tests>
+ <test id="id1">
+ <INPUT TYPE="button" VALUE="Transition"
STYLE="-moz-user-modify: read-only;" />
+ </test>
+</tests>
\ No newline at end of file
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/ant/build.properties
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/ant/build.properties
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/ant/build.properties 2010-04-01
09:04:30 UTC (rev 21183)
@@ -0,0 +1,3 @@
+#
+#Wed Mar 31 18:30:01 EEST 2010
+classpath.external=
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/ant/build.xml
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/ant/build.xml
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/resources/jBPMTestProject/ant/build.xml 2010-04-01
09:04:30 UTC (rev 21183)
@@ -0,0 +1,74 @@
+<project name="KickStart" default="deploy"
basedir="../">
+
+ <!-- Project settings -->
+ <property file="${basedir}/ant/build.properties" />
+
+ <property name="project.name" value="KickStart" />
+ <property name="web.content.dir" value="${basedir}/WebContent"
/>
+ <property name="web-inf.dir" value="${web.content.dir}/WEB-INF"
/>
+ <property name="build.dir" value="build" />
+ <property name="war.name"
value="${build.dir}/${project.name}.war" />
+
+ <!-- Define a folder for deployment -->
+ <property name="deploy.dir" value="deploy" />
+
+ <!-- Compile classpath -->
+ <path id="compile.classpath">
+ <fileset dir="${webinf.dir}/lib">
+ <include name="**/*.jar" />
+ </fileset>
+ <pathelement path="${classpath}" />
+ <pathelement path="${classpath.external}" />
+ <pathelement path="${webinf.dir}/classes" />
+ </path>
+
+ <!-- Copy any resource or configuration files -->
+ <target name="copyResources">
+ <copy todir="${web-inf.dir}/classes" includeEmptyDirs="no">
+ <fileset dir="JavaSource">
+ <patternset>
+ <include name="**/*.*" />
+ <exclude name="**/*.java" />
+ </patternset>
+ </fileset>
+ </copy>
+ </target>
+
+ <!-- Check timestamp on files -->
+ <target name="prepare">
+ <tstamp />
+ </target>
+
+ <!-- Remove classes directory for clean build -->
+ <target name="clean" description="Prepare for clean build">
+ <delete dir="${web-inf.dir}/classes" failonerror="false"/>
+ <mkdir dir="${web-inf.dir}/classes" />
+ </target>
+
+ <!-- Normal build of application -->
+ <target name="compile" depends="prepare, copyResources">
+ <javac srcdir="JavaSource" destdir="${web-inf.dir}/classes">
+ <classpath refid="compile.classpath" />
+ </javac>
+ </target>
+
+ <!-- Build Project -->
+ <target name="build" depends="prepare, compile" />
+
+ <!-- Rebuild Project -->
+ <target name="rebuild" depends="clean, prepare, compile" />
+
+ <!-- Build WAR -->
+ <target name="war" depends="build">
+ <mkdir dir="${build.dir}" />
+ <war warfile="${war.name}" basedir="${web.content.dir}"
webxml="${web-inf.dir}/web.xml">
+ <exclude name="WEB-INF/web.xml" />
+ </war>
+ </target>
+
+ <target name="deploy" depends="war">
+ <delete dir="${deploy.dir}/${project.name}"
failonerror="false"/>
+ <copy file="${war.name}" todir="${deploy.dir}" />
+ </target>
+
+</project>
\ No newline at end of file
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/src/org/jboss/tools/jsf/vpe/jbpm/test/JBPMAllTests.java
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/src/org/jboss/tools/jsf/vpe/jbpm/test/JBPMAllTests.java
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/src/org/jboss/tools/jsf/vpe/jbpm/test/JBPMAllTests.java 2010-04-01
09:04:30 UTC (rev 21183)
@@ -0,0 +1,34 @@
+/*******************************************************************************
+ * Copyright (c) 2007-2010 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:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.jsf.vpe.jbpm.test;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+import org.jboss.tools.vpe.ui.test.VpeTestSetup;
+
+/**
+ *
+ * @author yzhishko
+ *
+ */
+
+public class JBPMAllTests {
+
+ public static final String JBPM_TEST_PROJECT = "jBPMTestProject";
//$NON-NLS-1$
+
+ public static Test suite(){
+ TestSuite suite = new TestSuite("Tests for Vpe jBPM components");
//$NON-NLS-1$
+ suite.addTestSuite(JBPMComponentsTest.class);
+ return new VpeTestSetup(suite);
+ }
+
+}
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/src/org/jboss/tools/jsf/vpe/jbpm/test/JBPMComponentsTest.java
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/src/org/jboss/tools/jsf/vpe/jbpm/test/JBPMComponentsTest.java
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/src/org/jboss/tools/jsf/vpe/jbpm/test/JBPMComponentsTest.java 2010-04-01
09:04:30 UTC (rev 21183)
@@ -0,0 +1,49 @@
+/*******************************************************************************
+ * Copyright (c) 2007-2010 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:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.jsf.vpe.jbpm.test;
+
+import org.jboss.tools.vpe.ui.test.ComponentContentTest;
+
+/**
+ *
+ * @author yzhishko
+ *
+ */
+
+public class JBPMComponentsTest extends ComponentContentTest {
+
+ public JBPMComponentsTest(String name) {
+ super(name);
+ setCheckWarning(false);
+ }
+
+ public void testCancelButton() throws Throwable{
+ performContentTest("components/cancelButton.xhtml"); //$NON-NLS-1$
+ }
+
+ public void testSaveButton() throws Throwable{
+ performContentTest("components/saveButton.xhtml"); //$NON-NLS-1$
+ }
+
+ public void testTransitionButton() throws Throwable{
+ performContentTest("components/transitionButton.xhtml"); //$NON-NLS-1$
+ }
+
+ public void testTaskForm() throws Throwable{
+ performContentTest("components/taskForm.xhtml"); //$NON-NLS-1$
+ }
+
+ @Override
+ protected String getTestProjectName() {
+ return JBPMAllTests.JBPM_TEST_PROJECT;
+ }
+
+}
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/src/org/jboss/tools/jsf/vpe/jbpm/test/JBPMTestPlugin.java
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/src/org/jboss/tools/jsf/vpe/jbpm/test/JBPMTestPlugin.java
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/src/org/jboss/tools/jsf/vpe/jbpm/test/JBPMTestPlugin.java 2010-04-01
09:04:30 UTC (rev 21183)
@@ -0,0 +1,61 @@
+/*******************************************************************************
+ * Copyright (c) 2007-2010 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:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+
+package org.jboss.tools.jsf.vpe.jbpm.test;
+
+import org.jboss.tools.common.log.BaseUIPlugin;
+import org.osgi.framework.BundleContext;
+
+/**
+ * The activator class controls the plug-in life cycle
+ */
+public class JBPMTestPlugin extends BaseUIPlugin {
+
+ // The plug-in ID
+ public static final String PLUGIN_ID = "org.jboss.tools.jsf.vpe.jbpm.test";
//$NON-NLS-1$
+
+ // The shared instance
+ private static JBPMTestPlugin plugin;
+
+ /**
+ * The constructor
+ */
+ public JBPMTestPlugin() {
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
+ */
+ public void start(BundleContext context) throws Exception {
+ super.start(context);
+ plugin = this;
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
+ */
+ public void stop(BundleContext context) throws Exception {
+ plugin = null;
+ super.stop(context);
+ }
+
+ /**
+ * Returns the shared instance
+ *
+ * @return the shared instance
+ */
+ public static JBPMTestPlugin getDefault() {
+ return plugin;
+ }
+
+}