JBoss Tools SVN: r21184 - in trunk/ws/plugins/org.jboss.tools.ws.creation.core/src/org/jboss/tools/ws/creation/core: utils and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: Grid.Qian
Date: 2010-04-01 05:17:28 -0400 (Thu, 01 Apr 2010)
New Revision: 21184
Modified:
trunk/ws/plugins/org.jboss.tools.ws.creation.core/src/org/jboss/tools/ws/creation/core/commands/ImplementationClassCreationCommand.java
trunk/ws/plugins/org.jboss.tools.ws.creation.core/src/org/jboss/tools/ws/creation/core/utils/JBossWSCreationUtils.java
Log:
JBIDE-6126: to trunk
Modified: trunk/ws/plugins/org.jboss.tools.ws.creation.core/src/org/jboss/tools/ws/creation/core/commands/ImplementationClassCreationCommand.java
===================================================================
--- trunk/ws/plugins/org.jboss.tools.ws.creation.core/src/org/jboss/tools/ws/creation/core/commands/ImplementationClassCreationCommand.java 2010-04-01 09:04:30 UTC (rev 21183)
+++ trunk/ws/plugins/org.jboss.tools.ws.creation.core/src/org/jboss/tools/ws/creation/core/commands/ImplementationClassCreationCommand.java 2010-04-01 09:17:28 UTC (rev 21184)
@@ -60,8 +60,6 @@
public class ImplementationClassCreationCommand extends
AbstractDataModelOperation {
- private static final String RESOURCE_FOLDER = "src"; //$NON-NLS-1$
-
private static final String PREFIX_JAXWS_ANNOTATION_CLASS = "javax.jws"; //$NON-NLS-1$
private static final String DEFAULT_CU_SUFFIX = ".java"; //$NON-NLS-1$
@@ -73,6 +71,7 @@
private ServiceModel model;
private IWorkspaceRoot fWorkspaceRoot;
+ private IProject project;
public ImplementationClassCreationCommand(ServiceModel model) {
this.model = model;
@@ -91,7 +90,7 @@
}
IStatus status = Status.OK_STATUS;
-
+ project = JBossWSCreationUtils.getProjectByName(model.getWebProjectName());
try {
List<String> portTypes = model.getPortTypes();
for (String portTypeName : portTypes) {
@@ -214,13 +213,11 @@
return model.getCustomPackage() /* + ".impl" */;
}
- private IPackageFragmentRoot getPackageFragmentRoot() {
- String str = model.getWebProjectName() + File.separator
- + RESOURCE_FOLDER;
+ private IPackageFragmentRoot getPackageFragmentRoot() throws JavaModelException {
+ String str = model.getWebProjectName() + File.separator+ getSourceFolderPath(project);
IPath path = new Path(str);
IResource res = fWorkspaceRoot.findMember(path);
- IProject prj = res.getProject();
- IJavaProject javaPrj = JavaCore.create(prj);
+ IJavaProject javaPrj = JavaCore.create(project);
return javaPrj.getPackageFragmentRoot(res);
}
@@ -462,20 +459,24 @@
return cu;
}
- private IFile getServiceInterfaceFile(String portTypeName) {
+ private IFile getServiceInterfaceFile(String portTypeName)
+ throws JavaModelException {
IFolder pkgFolder = getPackageFolder();
IFile inFile = pkgFolder.getFile(portTypeName + DEFAULT_CU_SUFFIX);
return inFile;
}
- private IFolder getPackageFolder() {
- IProject project = JBossWSCreationUtils.getProjectByName(model
- .getWebProjectName());
- IFolder srcFolder = project.getFolder(RESOURCE_FOLDER);
+ private IFolder getPackageFolder() throws JavaModelException {
+ IFolder srcFolder = project.getFolder(getSourceFolderPath(project));
String pkgFolderName = model.getCustomPackage().replace(".", //$NON-NLS-1$
File.separator);
return srcFolder.getFolder(pkgFolderName);
}
+
+ private IPath getSourceFolderPath(IProject project) throws JavaModelException{
+ IPath path = new Path(JBossWSCreationUtils.getJavaProjectSrcLocation(project.getProject()));
+ return path.makeRelativeTo(project.getProject().getLocation());
+ }
}
Modified: trunk/ws/plugins/org.jboss.tools.ws.creation.core/src/org/jboss/tools/ws/creation/core/utils/JBossWSCreationUtils.java
===================================================================
--- trunk/ws/plugins/org.jboss.tools.ws.creation.core/src/org/jboss/tools/ws/creation/core/utils/JBossWSCreationUtils.java 2010-04-01 09:04:30 UTC (rev 21183)
+++ trunk/ws/plugins/org.jboss.tools.ws.creation.core/src/org/jboss/tools/ws/creation/core/utils/JBossWSCreationUtils.java 2010-04-01 09:17:28 UTC (rev 21184)
@@ -398,6 +398,7 @@
IPath p = rs[i].getLocation();
if (p != null) {
src = p.toOSString();
+ return src;
}
}
return src;
14 years, 9 months
JBoss Tools SVN: r21183 - in trunk/jsf: plugins/org.jboss.tools.jsf.vpe.jbpm and 33 other directories.
by jbosstools-commits@lists.jboss.org
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://www.eclipse.org/org/documents/epl-v10.php</A>.
+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</A>.</P>
+
+</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://www.eclipse.org/org/documents/epl-v10.php</A>.
+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</A>.</P>
+
+</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;
+ }
+
+}
14 years, 9 months
JBoss Tools SVN: r21182 - trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/preferences.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2010-04-01 03:40:51 -0400 (Thu, 01 Apr 2010)
New Revision: 21182
Modified:
trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/preferences/MainPreferencePage.java
Log:
JBIDE-6080 trunk
Modified: trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/preferences/MainPreferencePage.java
===================================================================
--- trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/preferences/MainPreferencePage.java 2010-04-01 06:11:22 UTC (rev 21181)
+++ trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/preferences/MainPreferencePage.java 2010-04-01 07:40:51 UTC (rev 21182)
@@ -98,6 +98,7 @@
showProjectRoot.setSelection(
PrefsInitializer.getBoolean(PrefsInitializer.PREF_SHOW_PROJECT_ROOT, getElement(), false));
enableDefaultExcludes.setSelection(PrefsInitializer.getBoolean(PrefsInitializer.PREF_USE_DEFAULT_EXCLUDES, getElement(), false));
+ showNodeOnAllProjects.setSelection(PrefsInitializer.getBoolean(PrefsInitializer.PREF_ALWAYS_SHOW_PROJECT_EXPLORER_NODE, getElement(), false));
defaultExcludes.setText(PrefsInitializer.getString(PrefsInitializer.PREF_DEFAULT_EXCLUDE_LIST, getElement(), true));
showAllProjects.setEnabled(showProjectRoot.getSelection());
if (!showProjectRoot.getSelection())
14 years, 9 months
JBoss Tools SVN: r21181 - in trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui: wizards and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: Grid.Qian
Date: 2010-04-01 02:11:22 -0400 (Thu, 01 Apr 2010)
New Revision: 21181
Modified:
trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/messages/JBossWSUI.properties
trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/messages/JBossWSUIMessages.java
trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/wizards/JBossWSGenerateWebXmlWizardPage.java
trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/wizards/JBossWSGenerateWizard.java
Log:
JBIDE-6123: to trunk
Modified: trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/messages/JBossWSUI.properties
===================================================================
--- trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/messages/JBossWSUI.properties 2010-04-01 04:52:23 UTC (rev 21180)
+++ trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/messages/JBossWSUI.properties 2010-04-01 06:11:22 UTC (rev 21181)
@@ -61,4 +61,5 @@
Error_JBossWS_GenerateWizard_IsOutputFolder=Name conflict with output folder
Error_JBossWS_GenerateWizard_PackageExists=Package already exists
Error_JBossWS_GenerateWizard_PackageNotShown=Package already exists. Note: Views might filter empty parent packages
-Error_JBossWS_GenerateWizard_PackageExistsDifferentCase=Package already exists with a different case
\ No newline at end of file
+Error_JBossWS_GenerateWizard_PackageExistsDifferentCase=Package already exists with a different case
+Error_JBossWS_GenerateWizard_NoSrcInProject=The project misses JAVA Source folders
\ No newline at end of file
Modified: trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/messages/JBossWSUIMessages.java
===================================================================
--- trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/messages/JBossWSUIMessages.java 2010-04-01 04:52:23 UTC (rev 21180)
+++ trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/messages/JBossWSUIMessages.java 2010-04-01 06:11:22 UTC (rev 21181)
@@ -86,6 +86,7 @@
public static String Error_JBossWS_GenerateWizard_PackageExists;
public static String Error_JBossWS_GenerateWizard_PackageNotShown;
public static String Error_JBossWS_GenerateWizard_PackageExistsDifferentCase;
+ public static String Error_JBossWS_GenerateWizard_NoSrcInProject;
static {
NLS.initializeMessages(BUNDLE_NAME, JBossWSUIMessages.class);
Modified: trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/wizards/JBossWSGenerateWebXmlWizardPage.java
===================================================================
--- trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/wizards/JBossWSGenerateWebXmlWizardPage.java 2010-04-01 04:52:23 UTC (rev 21180)
+++ trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/wizards/JBossWSGenerateWebXmlWizardPage.java 2010-04-01 06:11:22 UTC (rev 21181)
@@ -12,9 +12,11 @@
import java.util.ArrayList;
+import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.IStatus;
+import org.eclipse.jdt.core.JavaModelException;
import org.eclipse.jface.wizard.IWizardPage;
import org.eclipse.jface.wizard.WizardPage;
import org.eclipse.jst.j2ee.project.JavaEEProjectUtilities;
@@ -32,6 +34,7 @@
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Text;
import org.jboss.tools.ws.creation.core.data.ServiceModel;
+import org.jboss.tools.ws.creation.core.utils.JBossWSCreationUtils;
import org.jboss.tools.ws.ui.messages.JBossWSUIMessages;
public class JBossWSGenerateWebXmlWizardPage extends WizardPage {
@@ -208,6 +211,27 @@
if (!projects.isDisposed() && projects.getText().length() > 0) {
model.setWebProjectName(projects.getText());
}
+
+ if (((JBossWSGenerateWizard) this.getWizard()).getProject() == null) {
+ setErrorMessage(JBossWSUIMessages.Error_JBossWS_GenerateWizard_NoProjectSelected);
+ return false;
+ }
+
+ IFile web = ((JBossWSGenerateWizard) this.getWizard()).getWebFile();
+ if (web == null || !web.exists()) {
+ setErrorMessage(JBossWSUIMessages.Error_JBossWS_GenerateWizard_NotDynamicWebProject);
+ return false;
+ }
+
+ try {
+ if ("" .equals(JBossWSCreationUtils.getJavaProjectSrcLocation(((JBossWSGenerateWizard) this.getWizard()).getProject()))) { //$NON-NLS-1$
+ setErrorMessage(JBossWSUIMessages.Error_JBossWS_GenerateWizard_NoSrcInProject);
+ return false;
+ }
+ } catch (JavaModelException e) {
+ e.printStackTrace();
+ }
+
IStatus status = JBossWSGenerateWizardValidator.isWSNameValid();
if (status != null) {
setErrorMessage(status.getMessage());
Modified: trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/wizards/JBossWSGenerateWizard.java
===================================================================
--- trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/wizards/JBossWSGenerateWizard.java 2010-04-01 04:52:23 UTC (rev 21180)
+++ trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/wizards/JBossWSGenerateWizard.java 2010-04-01 06:11:22 UTC (rev 21181)
@@ -55,7 +55,6 @@
private static String JAVA = ".java"; //$NON-NLS-1$
private static String WEBINF = "WEB-INF"; //$NON-NLS-1$
private IFile webFile;
- private boolean hasInited = false;
public JBossWSGenerateWizard() {
super();
@@ -141,27 +140,10 @@
JBossWSCreationUtils.getWebContentRootPath(project).append(WEBINF))
.getFile(WEB);
}
- hasInited = true;
}
@Override
public boolean canFinish() {
- if (getProject() == null) {
- if (firstPage != null && !firstPage.getControl().isDisposed()) {
- if (firstPage.hasChanged())
- firstPage
- .setErrorMessage(JBossWSUIMessages.Error_JBossWS_GenerateWizard_NoProjectSelected);
- }
- return false;
- }
- if (hasInited && (webFile == null || !webFile.exists())) {
- if (firstPage != null && !firstPage.getControl().isDisposed()) {
- if (firstPage.hasChanged())
- firstPage
- .setErrorMessage(JBossWSUIMessages.Error_JBossWS_GenerateWizard_NotDynamicWebProject);
- }
- return false;
- }
return super.canFinish();
}
@@ -248,4 +230,9 @@
}
}
}
+
+
+ public IFile getWebFile() {
+ return webFile;
+ }
}
14 years, 9 months
JBoss Tools SVN: r21180 - branches/modular_build.
by jbosstools-commits@lists.jboss.org
Author: nickboldt
Date: 2010-04-01 00:52:23 -0400 (Thu, 01 Apr 2010)
New Revision: 21180
Modified:
branches/modular_build/parent-pom.xml
Log:
add helios reqs into helios profile; move svn stuff into svn profile; add swtbot
Modified: branches/modular_build/parent-pom.xml
===================================================================
--- branches/modular_build/parent-pom.xml 2010-04-01 03:56:18 UTC (rev 21179)
+++ branches/modular_build/parent-pom.xml 2010-04-01 04:52:23 UTC (rev 21180)
@@ -7,24 +7,8 @@
<name>JBoss Tools Parent</name>
<packaging>pom</packaging>
- <dependencies>
- <dependency>
- <groupId>org.scala-lang</groupId>
- <artifactId>scala-library</artifactId>
- <version>${scala.version}</version>
- </dependency>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>3.8.1</version>
- <scope>test</scope>
- </dependency>
- </dependencies>
-
<properties>
<tychoVersion>0.8.0</tychoVersion>
- <scala.version>2.8.0.Beta1</scala.version>
- <scala.plugin.version>2.13.1</scala.plugin.version>
</properties>
<build>
@@ -85,29 +69,111 @@
<useUIThread>true</useUIThread>
</configuration>
</plugin>
- <plugin>
- <groupId>org.scala-tools</groupId>
- <artifactId>maven-scala-plugin</artifactId>
- <version>${scala.plugin.version}</version>
- <executions>
- <execution>
- <goals>
- <goal>script</goal>
- <!-- <goal>compile</goal>
- <goal>run</goal> -->
- </goals>
- </execution>
- </executions>
- <configuration>
- <scalaVersion>${scala.version}</scalaVersion>
- <scriptFile>genpom.scala</scriptFile>
- <displayCmd>true</displayCmd>
- <keepGeneratedScript>true</keepGeneratedScript>
- </configuration>
- </plugin>
</plugins>
</build>
+ <profiles>
+ <profile>
+ <id>helios</id>
+ <activation>
+ <property>
+ <name>helios</name>
+ </property>
+ </activation>
+ <repositories>
+ <repository>
+ <id>helios</id>
+ <url>http://download.eclipse.org/releases/helios/</url>
+ <layout>p2</layout>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ </repository>
+ <repository>
+ <id>eclipse36</id>
+ <url>http://download.eclipse.org/eclipse/updates/3.6/</url>
+ <layout>p2</layout>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ </repository>
+ <repository>
+ <id>birt26</id>
+ <url>http://download.eclipse.org/birt/update-site/2.6/</url>
+ <layout>p2</layout>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ </repository>
+ <repository>
+ <id>swtbot-helios</id>
+ <url>http://download.eclipse.org/technology/swtbot/helios/dev-build/update-site
+ </url>
+ <layout>p2</layout>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ </repository>
+ </repositories>
+ </profile>
+ <profile>
+ <id>svn-repos</id>
+ <activation>
+ <property>
+ <name>svn</name>
+ </property>
+ </activation>
+ <repositories>
+ <repository>
+ <id>subclipse16</id>
+ <url>http://subclipse.tigris.org/update_1.6.x/</url>
+ <layout>p2</layout>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ </repository>
+ <repository>
+ <id>subversive07</id>
+ <url>http://download.eclipse.org/technology/subversive/0.7/update-site/</url>
+ <layout>p2</layout>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ </repository>
+ <repository>
+ <id>subversive20</id>
+ <url>http://community.polarion.com/projects/subversive/download/eclipse/2.0/up...</url>
+ <layout>p2</layout>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ </repository>
+
+ </repositories>
+ </profile>
+ </profiles>
+
<repositories>
<repository>
<id>galileo</id>
@@ -132,8 +198,8 @@
</releases>
</repository>
<repository>
- <id>webtools</id>
- <url>http://download.eclipse.org/webtools/updates/</url>
+ <id>birt25</id>
+ <url>http://download.eclipse.org/birt/update-site/2.5/</url>
<layout>p2</layout>
<snapshots>
<enabled>true</enabled>
@@ -143,8 +209,9 @@
</releases>
</repository>
<repository>
- <id>m2eclipse</id>
- <url>http://m2eclipse.sonatype.org/sites/m2e/</url>
+ <id>swtbot-galileo</id>
+ <url>http://download.eclipse.org/technology/swtbot/galileo/dev-build/update-site
+ </url>
<layout>p2</layout>
<snapshots>
<enabled>true</enabled>
@@ -153,9 +220,10 @@
<enabled>true</enabled>
</releases>
</repository>
+
<repository>
- <id>m2eclipse-extras</id>
- <url>http://m2eclipse.sonatype.org/sites/m2e-extras/</url>
+ <id>webtools</id>
+ <url>http://download.eclipse.org/webtools/updates/</url>
<layout>p2</layout>
<snapshots>
<enabled>true</enabled>
@@ -165,8 +233,8 @@
</releases>
</repository>
<repository>
- <id>birt25</id>
- <url>http://download.eclipse.org/birt/update-site/2.5/</url>
+ <id>m2eclipse</id>
+ <url>http://m2eclipse.sonatype.org/sites/m2e/</url>
<layout>p2</layout>
<snapshots>
<enabled>true</enabled>
@@ -176,8 +244,8 @@
</releases>
</repository>
<repository>
- <id>subclipse16</id>
- <url>http://subclipse.tigris.org/update_1.6.x/</url>
+ <id>m2eclipse-extras</id>
+ <url>http://m2eclipse.sonatype.org/sites/m2e-extras/</url>
<layout>p2</layout>
<snapshots>
<enabled>true</enabled>
@@ -187,28 +255,6 @@
</releases>
</repository>
<repository>
- <id>subversive07</id>
- <url>http://download.eclipse.org/technology/subversive/0.7/update-site/</url>
- <layout>p2</layout>
- <snapshots>
- <enabled>true</enabled>
- </snapshots>
- <releases>
- <enabled>true</enabled>
- </releases>
- </repository>
- <repository>
- <id>subversive20</id>
- <url>http://community.polarion.com/projects/subversive/download/eclipse/2.0/up...</url>
- <layout>p2</layout>
- <snapshots>
- <enabled>true</enabled>
- </snapshots>
- <releases>
- <enabled>true</enabled>
- </releases>
- </repository>
- <repository>
<id>xulrunner</id>
<url>http://download.jboss.org/tools/updates/xulrunner/</url>
<layout>p2</layout>
@@ -219,28 +265,7 @@
<enabled>true</enabled>
</releases>
</repository>
- <repository>
- <id>scala-tools.org</id>
- <name>Scala-tools Maven2 Repository</name>
- <url>http://scala-tools.org/repo-releases</url>
- <snapshots>
- <enabled>true</enabled>
- </snapshots>
- <releases>
- <enabled>true</enabled>
- </releases>
- </repository>
- <repository>
- <id>scala-library</id>
- <name>Scala-library Repository</name>
- <url>http://scala-tools.org/repo-releases/org/scala-lang/scala-library/2.8.0.B...</url>
- <snapshots>
- <enabled>true</enabled>
- </snapshots>
- <releases>
- <enabled>true</enabled>
- </releases>
- </repository>
+
</repositories>
<pluginRepositories>
@@ -255,17 +280,5 @@
<enabled>true</enabled>
</releases>
</pluginRepository>
- <pluginRepository>
- <id>scala-tools.org</id>
- <name>Scala-tools Maven2 Repository</name>
- <url>http://scala-tools.org/repo-releases</url>
- <layout>default</layout>
- <snapshots>
- <enabled>true</enabled>
- </snapshots>
- <releases>
- <enabled>true</enabled>
- </releases>
- </pluginRepository>
</pluginRepositories>
</project>
14 years, 9 months
JBoss Tools SVN: r21179 - branches/modular_build.
by jbosstools-commits@lists.jboss.org
Author: nickboldt
Date: 2010-03-31 23:56:18 -0400 (Wed, 31 Mar 2010)
New Revision: 21179
Modified:
branches/modular_build/genpom.scala
branches/modular_build/parent-pom.xml
Log:
add scala plugin to parent pom so that can run `mvn3 scala:script` ... in theory, anyway
Modified: branches/modular_build/genpom.scala
===================================================================
--- branches/modular_build/genpom.scala 2010-03-31 23:46:55 UTC (rev 21178)
+++ branches/modular_build/genpom.scala 2010-04-01 03:56:18 UTC (rev 21179)
@@ -9,7 +9,7 @@
/********** Configuration Start **********/
var projectName = "org.jboss.tools"
var pathToParentPom = ""
- var parentPomVersion = "1.0.0-SNAPSHOT"
+ var parentPomVersion = "0.0.1-SNAPSHOT"
var sourcePomVersion = "0.0.1-SNAPSHOT"
/********** Configuration Ends **********/
Modified: branches/modular_build/parent-pom.xml
===================================================================
--- branches/modular_build/parent-pom.xml 2010-03-31 23:46:55 UTC (rev 21178)
+++ branches/modular_build/parent-pom.xml 2010-04-01 03:56:18 UTC (rev 21179)
@@ -3,12 +3,28 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.jboss.tools</groupId>
<artifactId>org.jboss.tools.parent.pom</artifactId>
- <version>1.0.0-SNAPSHOT</version>
+ <version>0.0.1-SNAPSHOT</version>
<name>JBoss Tools Parent</name>
<packaging>pom</packaging>
+ <dependencies>
+ <dependency>
+ <groupId>org.scala-lang</groupId>
+ <artifactId>scala-library</artifactId>
+ <version>${scala.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>3.8.1</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+
<properties>
<tychoVersion>0.8.0</tychoVersion>
+ <scala.version>2.8.0.Beta1</scala.version>
+ <scala.plugin.version>2.13.1</scala.plugin.version>
</properties>
<build>
@@ -60,16 +76,35 @@
</environments>
</configuration>
</plugin>
-<plugin>
- <groupId>org.sonatype.tycho</groupId>
- <artifactId>maven-osgi-test-plugin</artifactId>
- <version>${tychoVersion}</version>
- <configuration>
- <useUIHarness>true</useUIHarness>
- <useUIThread>true</useUIThread>
- </configuration>
- </plugin>
-
+ <plugin>
+ <groupId>org.sonatype.tycho</groupId>
+ <artifactId>maven-osgi-test-plugin</artifactId>
+ <version>${tychoVersion}</version>
+ <configuration>
+ <useUIHarness>true</useUIHarness>
+ <useUIThread>true</useUIThread>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.scala-tools</groupId>
+ <artifactId>maven-scala-plugin</artifactId>
+ <version>${scala.plugin.version}</version>
+ <executions>
+ <execution>
+ <goals>
+ <goal>script</goal>
+ <!-- <goal>compile</goal>
+ <goal>run</goal> -->
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <scalaVersion>${scala.version}</scalaVersion>
+ <scriptFile>genpom.scala</scriptFile>
+ <displayCmd>true</displayCmd>
+ <keepGeneratedScript>true</keepGeneratedScript>
+ </configuration>
+ </plugin>
</plugins>
</build>
@@ -174,16 +209,38 @@
</releases>
</repository>
<repository>
- <id>xulrunner</id>
- <url>http://download.jboss.org/tools/updates/xulrunner/</url>
- <layout>p2</layout>
- <snapshots>
- <enabled>true</enabled>
- </snapshots>
- <releases>
- <enabled>true</enabled>
- </releases>
- </repository>
+ <id>xulrunner</id>
+ <url>http://download.jboss.org/tools/updates/xulrunner/</url>
+ <layout>p2</layout>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ </repository>
+ <repository>
+ <id>scala-tools.org</id>
+ <name>Scala-tools Maven2 Repository</name>
+ <url>http://scala-tools.org/repo-releases</url>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ </repository>
+ <repository>
+ <id>scala-library</id>
+ <name>Scala-library Repository</name>
+ <url>http://scala-tools.org/repo-releases/org/scala-lang/scala-library/2.8.0.B...</url>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ </repository>
</repositories>
<pluginRepositories>
@@ -191,9 +248,24 @@
<id>tycho</id>
<url>http://repository.sonatype.org/content/repositories/all-001/
</url>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
<releases>
<enabled>true</enabled>
</releases>
</pluginRepository>
+ <pluginRepository>
+ <id>scala-tools.org</id>
+ <name>Scala-tools Maven2 Repository</name>
+ <url>http://scala-tools.org/repo-releases</url>
+ <layout>default</layout>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ </pluginRepository>
</pluginRepositories>
</project>
14 years, 9 months