diff options
57 files changed, 1170 insertions, 0 deletions
diff --git a/org.eclipse.jubula.feature.launch.java/.gitignore b/org.eclipse.jubula.feature.launch.java/.gitignore new file mode 100644 index 000000000..ea8c4bf7f --- /dev/null +++ b/org.eclipse.jubula.feature.launch.java/.gitignore @@ -0,0 +1 @@ +/target diff --git a/org.eclipse.jubula.feature.launch.java/.project b/org.eclipse.jubula.feature.launch.java/.project new file mode 100644 index 000000000..5d6b5f913 --- /dev/null +++ b/org.eclipse.jubula.feature.launch.java/.project @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>org.eclipse.jubula.feature.launch.java</name> + <comment></comment> + <projects> + </projects> + <buildSpec> + <buildCommand> + <name>org.eclipse.pde.FeatureBuilder</name> + <arguments> + </arguments> + </buildCommand> + </buildSpec> + <natures> + <nature>org.eclipse.pde.FeatureNature</nature> + </natures> +</projectDescription> diff --git a/org.eclipse.jubula.feature.launch.java/about.html b/org.eclipse.jubula.feature.launch.java/about.html new file mode 100644 index 000000000..8728d9a97 --- /dev/null +++ b/org.eclipse.jubula.feature.launch.java/about.html @@ -0,0 +1,28 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/> +<title>About</title> +</head> +<body lang="EN-US"> +<h2>About This Content</h2> + +<p>June 28, 2007</p> +<h3>License</h3> + +<p>The Eclipse Foundation 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/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>. +For purposes of the EPL, "Program" will mean the Content.</p> + +<p>If you did not receive this Content directly from the Eclipse Foundation, 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.eclipse.org">http://www.eclipse.org</a>.</p> + +</body> +</html>
\ No newline at end of file diff --git a/org.eclipse.jubula.feature.launch.java/build.properties b/org.eclipse.jubula.feature.launch.java/build.properties new file mode 100644 index 000000000..24a3e249d --- /dev/null +++ b/org.eclipse.jubula.feature.launch.java/build.properties @@ -0,0 +1,8 @@ +############################################################################### +# Copyright (c) 2004, 2011 BREDEX GmbH. +# All rights reserved. This program and the accompanying materials +# are 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 +############################################################################### +bin.includes = feature.xml diff --git a/org.eclipse.jubula.feature.launch.java/feature.xml b/org.eclipse.jubula.feature.launch.java/feature.xml new file mode 100644 index 000000000..fb2ba9b7f --- /dev/null +++ b/org.eclipse.jubula.feature.launch.java/feature.xml @@ -0,0 +1,45 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + Copyright (c) 2004, 2011 BREDEX GmbH. + All rights reserved. This program and the accompanying materials + are 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 + --> +<feature + id="org.eclipse.jubula.feature.launch.java" + label="Jubula Java Launch Support (Incubation)" + version="0.9.0.qualifier" + provider-name="Eclipse Jubula"> + + <description url="http://www.example.com/description"> + [Enter Feature Description here.] + </description> + + <copyright url="http://www.example.com/copyright"> + [Enter Copyright Description here.] + </copyright> + + <license url="http://www.example.com/license"> + [Enter License Description here.] + </license> + + <requires> + <import feature="org.eclipse.jdt" version="3.6.2.r362_v20101117-0800-7z8XFW6FLFlmjJcvz03jyeFBLS_F" match="compatible"/> + </requires> + + <plugin + id="org.eclipse.jubula.launch.java.ui" + download-size="0" + install-size="0" + version="0.0.0" + unpack="false"/> + + <plugin + id="org.eclipse.jubula.launch.ui" + download-size="0" + install-size="0" + version="0.0.0" + unpack="false"/> + +</feature> diff --git a/org.eclipse.jubula.feature.launch.java/pom.xml b/org.eclipse.jubula.feature.launch.java/pom.xml new file mode 100644 index 000000000..f599c28df --- /dev/null +++ b/org.eclipse.jubula.feature.launch.java/pom.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> + <modelVersion>4.0.0</modelVersion> + <parent> + <artifactId>jubula</artifactId> + <groupId>org.eclipse.jubula</groupId> + <version>0.9.0-SNAPSHOT</version> + <relativePath>../org.eclipse.jubula.releng</relativePath> + </parent> + <groupId>org.eclipse.jubula</groupId> + <artifactId>org.eclipse.jubula.feature.launch.java</artifactId> + <version>0.9.0-SNAPSHOT</version> + <packaging>eclipse-feature</packaging> +</project> diff --git a/org.eclipse.jubula.feature.launch.rcp/.gitignore b/org.eclipse.jubula.feature.launch.rcp/.gitignore new file mode 100644 index 000000000..ea8c4bf7f --- /dev/null +++ b/org.eclipse.jubula.feature.launch.rcp/.gitignore @@ -0,0 +1 @@ +/target diff --git a/org.eclipse.jubula.feature.launch.rcp/.project b/org.eclipse.jubula.feature.launch.rcp/.project new file mode 100644 index 000000000..f0e1b7abd --- /dev/null +++ b/org.eclipse.jubula.feature.launch.rcp/.project @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>org.eclipse.jubula.feature.launch.rcp</name> + <comment></comment> + <projects> + </projects> + <buildSpec> + <buildCommand> + <name>org.eclipse.pde.FeatureBuilder</name> + <arguments> + </arguments> + </buildCommand> + </buildSpec> + <natures> + <nature>org.eclipse.pde.FeatureNature</nature> + </natures> +</projectDescription> diff --git a/org.eclipse.jubula.feature.launch.rcp/about.html b/org.eclipse.jubula.feature.launch.rcp/about.html new file mode 100644 index 000000000..8728d9a97 --- /dev/null +++ b/org.eclipse.jubula.feature.launch.rcp/about.html @@ -0,0 +1,28 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/> +<title>About</title> +</head> +<body lang="EN-US"> +<h2>About This Content</h2> + +<p>June 28, 2007</p> +<h3>License</h3> + +<p>The Eclipse Foundation 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/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>. +For purposes of the EPL, "Program" will mean the Content.</p> + +<p>If you did not receive this Content directly from the Eclipse Foundation, 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.eclipse.org">http://www.eclipse.org</a>.</p> + +</body> +</html>
\ No newline at end of file diff --git a/org.eclipse.jubula.feature.launch.rcp/build.properties b/org.eclipse.jubula.feature.launch.rcp/build.properties new file mode 100644 index 000000000..24a3e249d --- /dev/null +++ b/org.eclipse.jubula.feature.launch.rcp/build.properties @@ -0,0 +1,8 @@ +############################################################################### +# Copyright (c) 2004, 2011 BREDEX GmbH. +# All rights reserved. This program and the accompanying materials +# are 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 +############################################################################### +bin.includes = feature.xml diff --git a/org.eclipse.jubula.feature.launch.rcp/feature.xml b/org.eclipse.jubula.feature.launch.rcp/feature.xml new file mode 100644 index 000000000..cdc64b3df --- /dev/null +++ b/org.eclipse.jubula.feature.launch.rcp/feature.xml @@ -0,0 +1,45 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + Copyright (c) 2004, 2011 BREDEX GmbH. + All rights reserved. This program and the accompanying materials + are 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 + --> +<feature + id="org.eclipse.jubula.feature.launch.rcp" + label="Jubula Eclipse RCP Launch Support (Incubation)" + version="0.9.0.qualifier" + provider-name="Eclipse Jubula"> + + <description url="http://www.example.com/description"> + [Enter Feature Description here.] + </description> + + <copyright url="http://www.example.com/copyright"> + [Enter Copyright Description here.] + </copyright> + + <license url="http://www.example.com/license"> + [Enter License Description here.] + </license> + + <requires> + <import feature="org.eclipse.pde" version="3.6.2.r362_v20110203-7b7mFL2FET3dhHalh1iNZtL" match="compatible"/> + </requires> + + <plugin + id="org.eclipse.jubula.launch.rcp.ui" + download-size="0" + install-size="0" + version="0.0.0" + unpack="false"/> + + <plugin + id="org.eclipse.jubula.launch.ui" + download-size="0" + install-size="0" + version="0.0.0" + unpack="false"/> + +</feature> diff --git a/org.eclipse.jubula.feature.launch.rcp/pom.xml b/org.eclipse.jubula.feature.launch.rcp/pom.xml new file mode 100644 index 000000000..7229b6412 --- /dev/null +++ b/org.eclipse.jubula.feature.launch.rcp/pom.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> + <modelVersion>4.0.0</modelVersion> + <parent> + <artifactId>jubula</artifactId> + <groupId>org.eclipse.jubula</groupId> + <version>0.9.0-SNAPSHOT</version> + <relativePath>../org.eclipse.jubula.releng</relativePath> + </parent> + <groupId>org.eclipse.jubula</groupId> + <artifactId>org.eclipse.jubula.feature.launch.rcp</artifactId> + <version>0.9.0-SNAPSHOT</version> + <packaging>eclipse-feature</packaging> +</project> diff --git a/org.eclipse.jubula.launch.java.ui/.checkstyle b/org.eclipse.jubula.launch.java.ui/.checkstyle new file mode 100644 index 000000000..f69a865d7 --- /dev/null +++ b/org.eclipse.jubula.launch.java.ui/.checkstyle @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<fileset-config file-format-version="1.2.0" simple-config="true" sync-formatter="false"> + <fileset name="all" enabled="true" check-config-name="Jubula" local="false"> + <file-match-pattern match-pattern="." include-pattern="true"/> + </fileset> +</fileset-config> diff --git a/org.eclipse.jubula.launch.java.ui/.classpath b/org.eclipse.jubula.launch.java.ui/.classpath new file mode 100644 index 000000000..64c5e31b7 --- /dev/null +++ b/org.eclipse.jubula.launch.java.ui/.classpath @@ -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> diff --git a/org.eclipse.jubula.launch.java.ui/.gitignore b/org.eclipse.jubula.launch.java.ui/.gitignore new file mode 100644 index 000000000..ea8c4bf7f --- /dev/null +++ b/org.eclipse.jubula.launch.java.ui/.gitignore @@ -0,0 +1 @@ +/target diff --git a/org.eclipse.jubula.launch.java.ui/.project b/org.eclipse.jubula.launch.java.ui/.project new file mode 100644 index 000000000..e6b86b912 --- /dev/null +++ b/org.eclipse.jubula.launch.java.ui/.project @@ -0,0 +1,34 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>org.eclipse.jubula.launch.java.ui</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> + <buildCommand> + <name>net.sf.eclipsecs.core.CheckstyleBuilder</name> + <arguments> + </arguments> + </buildCommand> + </buildSpec> + <natures> + <nature>org.eclipse.pde.PluginNature</nature> + <nature>org.eclipse.jdt.core.javanature</nature> + <nature>net.sf.eclipsecs.core.CheckstyleNature</nature> + </natures> +</projectDescription> diff --git a/org.eclipse.jubula.launch.java.ui/.settings/org.eclipse.jdt.core.prefs b/org.eclipse.jubula.launch.java.ui/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 000000000..b1bd9f190 --- /dev/null +++ b/org.eclipse.jubula.launch.java.ui/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,8 @@ +#Tue Apr 19 15:35:19 CEST 2011 +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 diff --git a/org.eclipse.jubula.launch.java.ui/META-INF/MANIFEST.MF b/org.eclipse.jubula.launch.java.ui/META-INF/MANIFEST.MF new file mode 100644 index 000000000..ab37958d5 --- /dev/null +++ b/org.eclipse.jubula.launch.java.ui/META-INF/MANIFEST.MF @@ -0,0 +1,16 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: Jubula Launch Java UI (Incubation) +Bundle-SymbolicName: org.eclipse.jubula.launch.java.ui;singleton:=true +Bundle-Version: 0.9.0.qualifier +Bundle-Activator: org.eclipse.jubula.launch.java.ui.Activator +Bundle-Vendor: Eclipse Jubula +Require-Bundle: org.eclipse.ui;bundle-version="[3.6.0,4.0.0)", + org.eclipse.core.runtime;bundle-version="[3.6.0,4.0.0)", + org.eclipse.debug.ui;bundle-version="[3.6.0,4.0.0)", + org.eclipse.jdt.debug.ui;bundle-version="[3.5.0,4.0.0)", + org.eclipse.jubula.launch.ui;bundle-version="[0.9.0,1.0.0)" +Bundle-ActivationPolicy: lazy +Bundle-RequiredExecutionEnvironment: J2SE-1.5 +Bundle-ClassPath: ., + ./icons diff --git a/org.eclipse.jubula.launch.java.ui/build.properties b/org.eclipse.jubula.launch.java.ui/build.properties new file mode 100644 index 000000000..3971c6008 --- /dev/null +++ b/org.eclipse.jubula.launch.java.ui/build.properties @@ -0,0 +1,17 @@ +############################################################################### +# Copyright (c) 2004, 2011 BREDEX GmbH. +# All rights reserved. This program and the accompanying materials +# are 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 +############################################################################### +source.. = src/ +output.. = bin/ +jars.compile.order = . +bin.includes = META-INF/,\ + plugin.xml,\ + . +javacSource = 1.5 +javacTarget = 1.5 +javacErrors.. = -assertIdentifier +source.. = src/ diff --git a/org.eclipse.jubula.launch.java.ui/plugin.xml b/org.eclipse.jubula.launch.java.ui/plugin.xml new file mode 100644 index 000000000..715c3c40a --- /dev/null +++ b/org.eclipse.jubula.launch.java.ui/plugin.xml @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?eclipse version="3.4"?><!-- + Copyright (c) 2004, 2011 BREDEX GmbH. + All rights reserved. This program and the accompanying materials + are 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 + --> + <plugin> + <extension + point="org.eclipse.debug.ui.launchConfigurationTabs"> + <tab + class="org.eclipse.jubula.launch.ui.tab.AutLaunchConfigurationTab" + group="org.eclipse.jdt.debug.ui.launchConfigurationTabGroup.localJavaApplication" + id="org.eclipse.jubula.launch.java.ui.tab.aut" + name="org.eclipse.jubula.launch.ui.tab1"> + <placement + after="org.eclipse.debug.ui.commonTab"> + </placement> + </tab> + </extension> + +</plugin> diff --git a/org.eclipse.jubula.launch.java.ui/pom.xml b/org.eclipse.jubula.launch.java.ui/pom.xml new file mode 100644 index 000000000..c37ecf71e --- /dev/null +++ b/org.eclipse.jubula.launch.java.ui/pom.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> + <modelVersion>4.0.0</modelVersion> + <parent> + <artifactId>jubula</artifactId> + <groupId>org.eclipse.jubula</groupId> + <version>0.9.0-SNAPSHOT</version> + <relativePath>../org.eclipse.jubula.releng</relativePath> + </parent> + <groupId>org.eclipse.jubula</groupId> + <artifactId>org.eclipse.jubula.launch.java.ui</artifactId> + <version>0.9.0-SNAPSHOT</version> + <packaging>eclipse-plugin</packaging> +</project> diff --git a/org.eclipse.jubula.launch.java.ui/src/org/eclipse/jubula/launch/java/ui/Activator.java b/org.eclipse.jubula.launch.java.ui/src/org/eclipse/jubula/launch/java/ui/Activator.java new file mode 100644 index 000000000..18d8f57c3 --- /dev/null +++ b/org.eclipse.jubula.launch.java.ui/src/org/eclipse/jubula/launch/java/ui/Activator.java @@ -0,0 +1,57 @@ +/******************************************************************************* + * Copyright (c) 2004, 2011 BREDEX GmbH. + * All rights reserved. This program and the accompanying materials + * are 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: + * BREDEX GmbH - initial API and implementation and/or initial documentation + *******************************************************************************/ +package org.eclipse.jubula.launch.java.ui; + +import org.eclipse.ui.plugin.AbstractUIPlugin; +import org.osgi.framework.BundleContext; + +/** + * The activator class controls the plug-in life cycle + * + * @author BREDEX GmbH + * @created 20.04.2011 + */ +public class Activator extends AbstractUIPlugin { + + /** plug-in ID */ + public static final String PLUGIN_ID = "org.eclipse.jubula.launch.java.ui"; //$NON-NLS-1$ + + /** shared instance */ + private static Activator plugin; + + /** + * + * {@inheritDoc} + */ + public void start(BundleContext context) throws Exception { + super.start(context); + plugin = this; + } + + /** + * + * {@inheritDoc} + */ + public void stop(BundleContext context) throws Exception { + plugin = null; + super.stop(context); + } + + /** + * Returns the shared instance + * + * @return the shared instance + */ + public static Activator getDefault() { + return plugin; + } + +} diff --git a/org.eclipse.jubula.launch.rcp.ui/.checkstyle b/org.eclipse.jubula.launch.rcp.ui/.checkstyle new file mode 100644 index 000000000..f69a865d7 --- /dev/null +++ b/org.eclipse.jubula.launch.rcp.ui/.checkstyle @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<fileset-config file-format-version="1.2.0" simple-config="true" sync-formatter="false"> + <fileset name="all" enabled="true" check-config-name="Jubula" local="false"> + <file-match-pattern match-pattern="." include-pattern="true"/> + </fileset> +</fileset-config> diff --git a/org.eclipse.jubula.launch.rcp.ui/.classpath b/org.eclipse.jubula.launch.rcp.ui/.classpath new file mode 100644 index 000000000..64c5e31b7 --- /dev/null +++ b/org.eclipse.jubula.launch.rcp.ui/.classpath @@ -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> diff --git a/org.eclipse.jubula.launch.rcp.ui/.gitignore b/org.eclipse.jubula.launch.rcp.ui/.gitignore new file mode 100644 index 000000000..ea8c4bf7f --- /dev/null +++ b/org.eclipse.jubula.launch.rcp.ui/.gitignore @@ -0,0 +1 @@ +/target diff --git a/org.eclipse.jubula.launch.rcp.ui/.project b/org.eclipse.jubula.launch.rcp.ui/.project new file mode 100644 index 000000000..1771d49c2 --- /dev/null +++ b/org.eclipse.jubula.launch.rcp.ui/.project @@ -0,0 +1,34 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>org.eclipse.jubula.launch.rcp.ui</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> + <buildCommand> + <name>net.sf.eclipsecs.core.CheckstyleBuilder</name> + <arguments> + </arguments> + </buildCommand> + </buildSpec> + <natures> + <nature>org.eclipse.pde.PluginNature</nature> + <nature>org.eclipse.jdt.core.javanature</nature> + <nature>net.sf.eclipsecs.core.CheckstyleNature</nature> + </natures> +</projectDescription> diff --git a/org.eclipse.jubula.launch.rcp.ui/.settings/org.eclipse.jdt.core.prefs b/org.eclipse.jubula.launch.rcp.ui/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 000000000..048f97eea --- /dev/null +++ b/org.eclipse.jubula.launch.rcp.ui/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,8 @@ +#Tue Apr 19 15:36:15 CEST 2011 +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 diff --git a/org.eclipse.jubula.launch.rcp.ui/META-INF/MANIFEST.MF b/org.eclipse.jubula.launch.rcp.ui/META-INF/MANIFEST.MF new file mode 100644 index 000000000..736e3d97c --- /dev/null +++ b/org.eclipse.jubula.launch.rcp.ui/META-INF/MANIFEST.MF @@ -0,0 +1,16 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: Jubula Launch Eclipse RCP UI (Incubation) +Bundle-SymbolicName: org.eclipse.jubula.launch.rcp.ui;singleton:=true +Bundle-Version: 0.9.0.qualifier +Bundle-Activator: org.eclipse.jubula.launch.rcp.ui.Activator +Bundle-Vendor: Eclipse Jubula +Require-Bundle: org.eclipse.ui;bundle-version="[3.6.0,4.0.0)", + org.eclipse.core.runtime;bundle-version="[3.6.0,4.0.0)", + org.eclipse.pde.ui;bundle-version="[3.6.0,4.0.0)", + org.eclipse.debug.ui;bundle-version="[3.6.0,4.0.0)", + org.eclipse.jubula.launch.ui;bundle-version="[0.9.0,1.0.0)" +Bundle-ActivationPolicy: lazy +Bundle-RequiredExecutionEnvironment: J2SE-1.5 +Bundle-ClassPath: ., + ./icons diff --git a/org.eclipse.jubula.launch.rcp.ui/build.properties b/org.eclipse.jubula.launch.rcp.ui/build.properties new file mode 100644 index 000000000..3971c6008 --- /dev/null +++ b/org.eclipse.jubula.launch.rcp.ui/build.properties @@ -0,0 +1,17 @@ +############################################################################### +# Copyright (c) 2004, 2011 BREDEX GmbH. +# All rights reserved. This program and the accompanying materials +# are 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 +############################################################################### +source.. = src/ +output.. = bin/ +jars.compile.order = . +bin.includes = META-INF/,\ + plugin.xml,\ + . +javacSource = 1.5 +javacTarget = 1.5 +javacErrors.. = -assertIdentifier +source.. = src/ diff --git a/org.eclipse.jubula.launch.rcp.ui/plugin.xml b/org.eclipse.jubula.launch.rcp.ui/plugin.xml new file mode 100644 index 000000000..d46fde317 --- /dev/null +++ b/org.eclipse.jubula.launch.rcp.ui/plugin.xml @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?eclipse version="3.4"?><!-- + Copyright (c) 2004, 2011 BREDEX GmbH. + All rights reserved. This program and the accompanying materials + are 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 + --> +<plugin> + <extension + point="org.eclipse.debug.ui.launchConfigurationTabs"> + <tab + class="org.eclipse.jubula.launch.ui.tab.AutLaunchConfigurationTab" + group="org.eclipse.pde.ui.launcher.WorkbenchLauncherTabGroup" + id="org.eclipse.jubula.launch.rcp.ui.tab.aut" + name="org.eclipse.jubula.launch.ui.tab1"> + <placement + after="org.eclipse.debug.ui.commonTab"> + </placement> + </tab> + </extension> + +</plugin> diff --git a/org.eclipse.jubula.launch.rcp.ui/pom.xml b/org.eclipse.jubula.launch.rcp.ui/pom.xml new file mode 100644 index 000000000..aeeb067f6 --- /dev/null +++ b/org.eclipse.jubula.launch.rcp.ui/pom.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> + <modelVersion>4.0.0</modelVersion> + <parent> + <artifactId>jubula</artifactId> + <groupId>org.eclipse.jubula</groupId> + <version>0.9.0-SNAPSHOT</version> + <relativePath>../org.eclipse.jubula.releng</relativePath> + </parent> + <groupId>org.eclipse.jubula</groupId> + <artifactId>org.eclipse.jubula.launch.rcp.ui</artifactId> + <version>0.9.0-SNAPSHOT</version> + <packaging>eclipse-plugin</packaging> +</project> diff --git a/org.eclipse.jubula.launch.rcp.ui/src/org/eclipse/jubula/launch/rcp/ui/Activator.java b/org.eclipse.jubula.launch.rcp.ui/src/org/eclipse/jubula/launch/rcp/ui/Activator.java new file mode 100644 index 000000000..88d4f07c4 --- /dev/null +++ b/org.eclipse.jubula.launch.rcp.ui/src/org/eclipse/jubula/launch/rcp/ui/Activator.java @@ -0,0 +1,57 @@ +/******************************************************************************* + * Copyright (c) 2004, 2011 BREDEX GmbH. + * All rights reserved. This program and the accompanying materials + * are 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: + * BREDEX GmbH - initial API and implementation and/or initial documentation + *******************************************************************************/ +package org.eclipse.jubula.launch.rcp.ui; + +import org.eclipse.ui.plugin.AbstractUIPlugin; +import org.osgi.framework.BundleContext; + +/** + * The activator class controls the plug-in life cycle + * + * @author BREDEX GmbH + * @created 20.04.2011 + */ +public class Activator extends AbstractUIPlugin { + + /** plug-in ID */ + public static final String PLUGIN_ID = "org.eclipse.jubula.launch.rcp.ui"; //$NON-NLS-1$ + + /** shared instance */ + private static Activator plugin; + + /** + * + * {@inheritDoc} + */ + public void start(BundleContext context) throws Exception { + super.start(context); + plugin = this; + } + + /** + * + * {@inheritDoc} + */ + public void stop(BundleContext context) throws Exception { + plugin = null; + super.stop(context); + } + + /** + * Returns the shared instance + * + * @return the shared instance + */ + public static Activator getDefault() { + return plugin; + } + +} diff --git a/org.eclipse.jubula.launch.ui/.checkstyle b/org.eclipse.jubula.launch.ui/.checkstyle new file mode 100644 index 000000000..667895d70 --- /dev/null +++ b/org.eclipse.jubula.launch.ui/.checkstyle @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<fileset-config file-format-version="1.2.0" simple-config="true" sync-formatter="false"> + <fileset name="all" enabled="true" check-config-name="Jubula" local="false"> + <file-match-pattern match-pattern="." include-pattern="true"/> + </fileset> + <filter name="FilesFromPackage" enabled="true"> + <filter-data value="src/org/eclipse/jubula/launch/ui/i18n"/> + </filter> +</fileset-config> diff --git a/org.eclipse.jubula.launch.ui/.classpath b/org.eclipse.jubula.launch.ui/.classpath new file mode 100644 index 000000000..64c5e31b7 --- /dev/null +++ b/org.eclipse.jubula.launch.ui/.classpath @@ -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> diff --git a/org.eclipse.jubula.launch.ui/.gitignore b/org.eclipse.jubula.launch.ui/.gitignore new file mode 100644 index 000000000..ea8c4bf7f --- /dev/null +++ b/org.eclipse.jubula.launch.ui/.gitignore @@ -0,0 +1 @@ +/target diff --git a/org.eclipse.jubula.launch.ui/.project b/org.eclipse.jubula.launch.ui/.project new file mode 100644 index 000000000..20afc576d --- /dev/null +++ b/org.eclipse.jubula.launch.ui/.project @@ -0,0 +1,34 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>org.eclipse.jubula.launch.ui</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> + <buildCommand> + <name>net.sf.eclipsecs.core.CheckstyleBuilder</name> + <arguments> + </arguments> + </buildCommand> + </buildSpec> + <natures> + <nature>org.eclipse.pde.PluginNature</nature> + <nature>org.eclipse.jdt.core.javanature</nature> + <nature>net.sf.eclipsecs.core.CheckstyleNature</nature> + </natures> +</projectDescription> diff --git a/org.eclipse.jubula.launch.ui/.settings/org.eclipse.jdt.core.prefs b/org.eclipse.jubula.launch.ui/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 000000000..850977c51 --- /dev/null +++ b/org.eclipse.jubula.launch.ui/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,8 @@ +#Tue Apr 19 10:04:34 CEST 2011 +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 diff --git a/org.eclipse.jubula.launch.ui/META-INF/MANIFEST.MF b/org.eclipse.jubula.launch.ui/META-INF/MANIFEST.MF new file mode 100644 index 000000000..feed3d26f --- /dev/null +++ b/org.eclipse.jubula.launch.ui/META-INF/MANIFEST.MF @@ -0,0 +1,17 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: Jubula Launch Configurations UI (Incubation) +Bundle-SymbolicName: org.eclipse.jubula.launch.ui;singleton:=true +Bundle-Version: 0.9.0.qualifier +Bundle-Activator: org.eclipse.jubula.launch.ui.Activator +Bundle-Vendor: Eclipse Jubula +Require-Bundle: org.eclipse.ui;bundle-version="[3.6.0,4.0.0)", + org.eclipse.core.runtime;bundle-version="[3.6.0,4.0.0)", + org.eclipse.debug.ui;bundle-version="[3.6.0,4.0.0)", + org.eclipse.jubula.launch;bundle-version="[0.9.0,1.0.0)", + org.slf4j.api;bundle-version="[1.5.11,2.0.0)" +Bundle-RequiredExecutionEnvironment: J2SE-1.5 +Bundle-ClassPath: ., + ./icons +Bundle-ActivationPolicy: lazy +Export-Package: org.eclipse.jubula.launch.ui.tab diff --git a/org.eclipse.jubula.launch.ui/build.properties b/org.eclipse.jubula.launch.ui/build.properties new file mode 100644 index 000000000..3971c6008 --- /dev/null +++ b/org.eclipse.jubula.launch.ui/build.properties @@ -0,0 +1,17 @@ +############################################################################### +# Copyright (c) 2004, 2011 BREDEX GmbH. +# All rights reserved. This program and the accompanying materials +# are 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 +############################################################################### +source.. = src/ +output.. = bin/ +jars.compile.order = . +bin.includes = META-INF/,\ + plugin.xml,\ + . +javacSource = 1.5 +javacTarget = 1.5 +javacErrors.. = -assertIdentifier +source.. = src/ diff --git a/org.eclipse.jubula.launch.ui/pom.xml b/org.eclipse.jubula.launch.ui/pom.xml new file mode 100644 index 000000000..55c0e871a --- /dev/null +++ b/org.eclipse.jubula.launch.ui/pom.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> + <modelVersion>4.0.0</modelVersion> + <parent> + <artifactId>jubula</artifactId> + <groupId>org.eclipse.jubula</groupId> + <version>0.9.0-SNAPSHOT</version> + <relativePath>../org.eclipse.jubula.releng</relativePath> + </parent> + <groupId>org.eclipse.jubula</groupId> + <artifactId>org.eclipse.jubula.launch.ui</artifactId> + <version>0.9.0-SNAPSHOT</version> + <packaging>eclipse-plugin</packaging> +</project> diff --git a/org.eclipse.jubula.launch.ui/src/org/eclipse/jubula/launch/ui/Activator.java b/org.eclipse.jubula.launch.ui/src/org/eclipse/jubula/launch/ui/Activator.java new file mode 100644 index 000000000..7876059f2 --- /dev/null +++ b/org.eclipse.jubula.launch.ui/src/org/eclipse/jubula/launch/ui/Activator.java @@ -0,0 +1,57 @@ +/******************************************************************************* + * Copyright (c) 2004, 2011 BREDEX GmbH. + * All rights reserved. This program and the accompanying materials + * are 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: + * BREDEX GmbH - initial API and implementation and/or initial documentation + *******************************************************************************/ +package org.eclipse.jubula.launch.ui; + +import org.eclipse.ui.plugin.AbstractUIPlugin; +import org.osgi.framework.BundleContext; + +/** + * The activator class controls the plug-in life cycle + * + * @author BREDEX GmbH + * @created 20.04.2011 + */ +public class Activator extends AbstractUIPlugin { + + /** plug-in ID */ + public static final String PLUGIN_ID = "org.eclipse.jubula.launch.ui"; //$NON-NLS-1$ + + /** shared instance */ + private static Activator plugin; + + /** + * + * {@inheritDoc} + */ + public void start(BundleContext context) throws Exception { + super.start(context); + plugin = this; + } + + /** + * + * {@inheritDoc} + */ + public void stop(BundleContext context) throws Exception { + plugin = null; + super.stop(context); + } + + /** + * Returns the shared instance + * + * @return the shared instance + */ + public static Activator getDefault() { + return plugin; + } + +} diff --git a/org.eclipse.jubula.launch.ui/src/org/eclipse/jubula/launch/ui/i18n/Messages.java b/org.eclipse.jubula.launch.ui/src/org/eclipse/jubula/launch/ui/i18n/Messages.java new file mode 100644 index 000000000..08cbc4364 --- /dev/null +++ b/org.eclipse.jubula.launch.ui/src/org/eclipse/jubula/launch/ui/i18n/Messages.java @@ -0,0 +1,31 @@ +/******************************************************************************* + * Copyright (c) 2004, 2011 BREDEX GmbH. + * All rights reserved. This program and the accompanying materials + * are 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: + * BREDEX GmbH - initial API and implementation and/or initial documentation + *******************************************************************************/ +package org.eclipse.jubula.launch.ui.i18n; + +import org.eclipse.osgi.util.NLS; + +/** + * @author BREDEX GmbH + * @created 20.04.2011 + */ +public class Messages extends NLS { + private static final String BUNDLE_NAME = "org.eclipse.jubula.launch.ui.tab.messages"; //$NON-NLS-1$ + public static String AutLaunchConfigurationTab_ActiveCheckbox_label; + public static String AutLaunchConfigurationTab_AutIdTextField_label; + public static String AutLaunchConfigurationTab_name; + static { + // initialize resource bundle + NLS.initializeMessages(BUNDLE_NAME, Messages.class); + } + + private Messages() { + } +} diff --git a/org.eclipse.jubula.launch.ui/src/org/eclipse/jubula/launch/ui/i18n/messages.properties b/org.eclipse.jubula.launch.ui/src/org/eclipse/jubula/launch/ui/i18n/messages.properties new file mode 100644 index 000000000..0c8f5d3e0 --- /dev/null +++ b/org.eclipse.jubula.launch.ui/src/org/eclipse/jubula/launch/ui/i18n/messages.properties @@ -0,0 +1,3 @@ +AutLaunchConfigurationTab_ActiveCheckbox_label=Activate automated UI testing support +AutLaunchConfigurationTab_AutIdTextField_label=AUT ID +AutLaunchConfigurationTab_name=Test diff --git a/org.eclipse.jubula.launch.ui/src/org/eclipse/jubula/launch/ui/tab/AutLaunchConfigurationTab.java b/org.eclipse.jubula.launch.ui/src/org/eclipse/jubula/launch/ui/tab/AutLaunchConfigurationTab.java new file mode 100644 index 000000000..f3591ccb9 --- /dev/null +++ b/org.eclipse.jubula.launch.ui/src/org/eclipse/jubula/launch/ui/tab/AutLaunchConfigurationTab.java @@ -0,0 +1,146 @@ +/******************************************************************************* + * Copyright (c) 2004, 2011 BREDEX GmbH. + * All rights reserved. This program and the accompanying materials + * are 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: + * BREDEX GmbH - initial API and implementation and/or initial documentation + *******************************************************************************/ +package org.eclipse.jubula.launch.ui.tab; + +import org.eclipse.core.runtime.CoreException; +import org.eclipse.debug.core.ILaunchConfiguration; +import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy; +import org.eclipse.debug.ui.AbstractLaunchConfigurationTab; +import org.eclipse.jface.layout.GridDataFactory; +import org.eclipse.jface.layout.GridLayoutFactory; +import org.eclipse.jubula.launch.AutLaunchConfigurationConstants; +import org.eclipse.jubula.launch.ui.i18n.Messages; +import org.eclipse.swt.SWT; +import org.eclipse.swt.events.SelectionAdapter; +import org.eclipse.swt.events.SelectionEvent; +import org.eclipse.swt.widgets.Button; +import org.eclipse.swt.widgets.Composite; +import org.eclipse.swt.widgets.Label; +import org.eclipse.swt.widgets.Text; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +/** + * Launch Configuration tab for launching an application with support for + * automated testing (as an AUT). + * + * @author BREDEX GmbH + * @created 20.04.2011 + */ +public class AutLaunchConfigurationTab extends AbstractLaunchConfigurationTab { + + /** the logger */ + private static final Logger LOG = + LoggerFactory.getLogger(AutLaunchConfigurationTab.class); + + /** + * text field for AUT ID + * + * @see AutLaunchConfigurationConstants#AUT_ID_KEY + */ + private Text m_autIdText; + + /** + * checkbox for IS_ACTIVE + * + * @see AutLaunchConfigurationConstants#ACTIVE_KEY + */ + private Button m_activateTestSupportCheckbox; + + /** + * + * {@inheritDoc} + */ + public void createControl(Composite parent) { + Composite composite = new Composite(parent, SWT.NONE); + GridDataFactory.fillDefaults().grab(true, true).applyTo(composite); + GridLayoutFactory.fillDefaults().applyTo(composite); + m_activateTestSupportCheckbox = createCheckButton( + composite, + Messages.AutLaunchConfigurationTab_ActiveCheckbox_label); + Label autIdLabel = new Label(composite, SWT.NONE); + autIdLabel.setText( + Messages.AutLaunchConfigurationTab_AutIdTextField_label); + + m_autIdText = new Text(composite, SWT.BORDER); + + m_activateTestSupportCheckbox.addSelectionListener( + new SelectionAdapter() { + + public void widgetSelected(SelectionEvent e) { + m_autIdText.setEnabled( + m_activateTestSupportCheckbox.getSelection()); + } + + }); + + setControl(composite); + } + + /** + * + * {@inheritDoc} + */ + public void setDefaults(ILaunchConfigurationWorkingCopy configuration) { + configuration.setAttribute( + AutLaunchConfigurationConstants.ACTIVE_KEY, + AutLaunchConfigurationConstants.ACTIVE_DEFAULT_VALUE); + configuration.setAttribute( + AutLaunchConfigurationConstants.AUT_ID_KEY, + AutLaunchConfigurationConstants.AUT_ID_DEFAULT_VALUE); + } + + /** + * + * {@inheritDoc} + */ + public void initializeFrom(ILaunchConfiguration configuration) { + try { + m_activateTestSupportCheckbox.setSelection( + configuration.getAttribute( + AutLaunchConfigurationConstants.ACTIVE_KEY, + AutLaunchConfigurationConstants.ACTIVE_DEFAULT_VALUE)); + } catch (CoreException ce) { + LOG.error("An error occurred while initializing 'active' checkbox.", ce); //$NON-NLS-1$ + } + + try { + m_autIdText.setText( + configuration.getAttribute( + AutLaunchConfigurationConstants.AUT_ID_KEY, + AutLaunchConfigurationConstants.AUT_ID_DEFAULT_VALUE)); + } catch (CoreException ce) { + LOG.error("An error occurred while initializing AUT ID text field.", ce); //$NON-NLS-1$ + } + } + + /** + * + * {@inheritDoc} + */ + public void performApply(ILaunchConfigurationWorkingCopy configuration) { + configuration.setAttribute( + AutLaunchConfigurationConstants.ACTIVE_KEY, + m_activateTestSupportCheckbox.getSelection()); + configuration.setAttribute( + AutLaunchConfigurationConstants.AUT_ID_KEY, + m_autIdText.getText()); + } + + /** + * + * {@inheritDoc} + */ + public String getName() { + return Messages.AutLaunchConfigurationTab_name; + } + +} diff --git a/org.eclipse.jubula.launch/.checkstyle b/org.eclipse.jubula.launch/.checkstyle new file mode 100644 index 000000000..f69a865d7 --- /dev/null +++ b/org.eclipse.jubula.launch/.checkstyle @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<fileset-config file-format-version="1.2.0" simple-config="true" sync-formatter="false"> + <fileset name="all" enabled="true" check-config-name="Jubula" local="false"> + <file-match-pattern match-pattern="." include-pattern="true"/> + </fileset> +</fileset-config> diff --git a/org.eclipse.jubula.launch/.classpath b/org.eclipse.jubula.launch/.classpath new file mode 100644 index 000000000..64c5e31b7 --- /dev/null +++ b/org.eclipse.jubula.launch/.classpath @@ -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> diff --git a/org.eclipse.jubula.launch/.gitignore b/org.eclipse.jubula.launch/.gitignore new file mode 100644 index 000000000..ea8c4bf7f --- /dev/null +++ b/org.eclipse.jubula.launch/.gitignore @@ -0,0 +1 @@ +/target diff --git a/org.eclipse.jubula.launch/.project b/org.eclipse.jubula.launch/.project new file mode 100644 index 000000000..150f0e6a0 --- /dev/null +++ b/org.eclipse.jubula.launch/.project @@ -0,0 +1,34 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>org.eclipse.jubula.launch</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> + <buildCommand> + <name>net.sf.eclipsecs.core.CheckstyleBuilder</name> + <arguments> + </arguments> + </buildCommand> + </buildSpec> + <natures> + <nature>org.eclipse.pde.PluginNature</nature> + <nature>org.eclipse.jdt.core.javanature</nature> + <nature>net.sf.eclipsecs.core.CheckstyleNature</nature> + </natures> +</projectDescription> diff --git a/org.eclipse.jubula.launch/.settings/org.eclipse.jdt.core.prefs b/org.eclipse.jubula.launch/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 000000000..9dc8c6db4 --- /dev/null +++ b/org.eclipse.jubula.launch/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,8 @@ +#Tue Apr 19 16:25:25 CEST 2011 +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 diff --git a/org.eclipse.jubula.launch/META-INF/MANIFEST.MF b/org.eclipse.jubula.launch/META-INF/MANIFEST.MF new file mode 100644 index 000000000..a17825561 --- /dev/null +++ b/org.eclipse.jubula.launch/META-INF/MANIFEST.MF @@ -0,0 +1,11 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: Launch +Bundle-SymbolicName: org.eclipse.jubula.launch +Bundle-Version: 0.9.0.qualifier +Bundle-Activator: org.eclipse.jubula.launch.Activator +Bundle-Vendor: Eclipse Jubula +Require-Bundle: org.eclipse.core.runtime +Bundle-RequiredExecutionEnvironment: J2SE-1.5 +Bundle-ActivationPolicy: lazy +Export-Package: org.eclipse.jubula.launch diff --git a/org.eclipse.jubula.launch/build.properties b/org.eclipse.jubula.launch/build.properties new file mode 100644 index 000000000..3971c6008 --- /dev/null +++ b/org.eclipse.jubula.launch/build.properties @@ -0,0 +1,17 @@ +############################################################################### +# Copyright (c) 2004, 2011 BREDEX GmbH. +# All rights reserved. This program and the accompanying materials +# are 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 +############################################################################### +source.. = src/ +output.. = bin/ +jars.compile.order = . +bin.includes = META-INF/,\ + plugin.xml,\ + . +javacSource = 1.5 +javacTarget = 1.5 +javacErrors.. = -assertIdentifier +source.. = src/ diff --git a/org.eclipse.jubula.launch/pom.xml b/org.eclipse.jubula.launch/pom.xml new file mode 100644 index 000000000..52fdd036a --- /dev/null +++ b/org.eclipse.jubula.launch/pom.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> + <modelVersion>4.0.0</modelVersion> + <parent> + <artifactId>jubula</artifactId> + <groupId>org.eclipse.jubula</groupId> + <version>0.9.0-SNAPSHOT</version> + <relativePath>../org.eclipse.jubula.releng</relativePath> + </parent> + <groupId>org.eclipse.jubula</groupId> + <artifactId>org.eclipse.jubula.launch</artifactId> + <version>0.9.0-SNAPSHOT</version> + <packaging>eclipse-plugin</packaging> +</project> diff --git a/org.eclipse.jubula.launch/src/org/eclipse/jubula/launch/Activator.java b/org.eclipse.jubula.launch/src/org/eclipse/jubula/launch/Activator.java new file mode 100644 index 000000000..8cfebcbf3 --- /dev/null +++ b/org.eclipse.jubula.launch/src/org/eclipse/jubula/launch/Activator.java @@ -0,0 +1,57 @@ +/******************************************************************************* + * Copyright (c) 2004, 2011 BREDEX GmbH. + * All rights reserved. This program and the accompanying materials + * are 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: + * BREDEX GmbH - initial API and implementation and/or initial documentation + *******************************************************************************/ +package org.eclipse.jubula.launch; + +import org.eclipse.core.runtime.Plugin; +import org.osgi.framework.BundleContext; + +/** + * The activator class controls the plug-in life cycle + * + * @author BREDEX GmbH + * @created 20.04.2011 + */ +public class Activator extends Plugin { + + /** plug-in ID */ + public static final String PLUGIN_ID = "org.eclipse.jubula.launch"; //$NON-NLS-1$ + + /** shared instance */ + private static Activator plugin; + + /** + * + * {@inheritDoc} + */ + public void start(BundleContext context) throws Exception { + super.start(context); + plugin = this; + } + + /** + * + * {@inheritDoc} + */ + public void stop(BundleContext context) throws Exception { + plugin = null; + super.stop(context); + } + + /** + * Returns the shared instance + * + * @return the shared instance + */ + public static Activator getDefault() { + return plugin; + } + +} diff --git a/org.eclipse.jubula.launch/src/org/eclipse/jubula/launch/AutLaunchConfigurationConstants.java b/org.eclipse.jubula.launch/src/org/eclipse/jubula/launch/AutLaunchConfigurationConstants.java new file mode 100644 index 000000000..bf9c64810 --- /dev/null +++ b/org.eclipse.jubula.launch/src/org/eclipse/jubula/launch/AutLaunchConfigurationConstants.java @@ -0,0 +1,42 @@ +/******************************************************************************* + * Copyright (c) 2004, 2011 BREDEX GmbH. + * All rights reserved. This program and the accompanying materials + * are 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: + * BREDEX GmbH - initial API and implementation and/or initial documentation + *******************************************************************************/ +package org.eclipse.jubula.launch; + +/** + * Constants for launch integration. + * + * @author BREDEX GmbH + * @created 20.04.2011 + */ +public final class AutLaunchConfigurationConstants { + + /** key for AUT ID property */ + public static final String AUT_ID_KEY = "org.eclipse.jubula.launch.AUT_ID"; //$NON-NLS-1$ + + /** default value for AUT ID property */ + public static final String AUT_ID_DEFAULT_VALUE = ""; //$NON-NLS-1$ + + /** + * key for IS_ACTIVE property (whether automated test support is enabled + * for the launch). this is a boolean property. + */ + public static final String ACTIVE_KEY = "org.eclipse.jubula.launch.IS_ACTIVE"; //$NON-NLS-1$ + + /** default value for IS_ACTIVE property */ + public static final boolean ACTIVE_DEFAULT_VALUE = false; + + /** + * Private constructor to prevent instantiation of "constants" class. + */ + private AutLaunchConfigurationConstants() { + // Nothing to initialize + } +} diff --git a/org.eclipse.jubula.project.configuration/target/definitions/helios.target b/org.eclipse.jubula.project.configuration/target/definitions/helios.target index fe1cc9adf..f7fa5d5bf 100644 --- a/org.eclipse.jubula.project.configuration/target/definitions/helios.target +++ b/org.eclipse.jubula.project.configuration/target/definitions/helios.target @@ -6,6 +6,7 @@ <location includeAllPlatforms="false" includeMode="planner" type="InstallableUnit"> <unit id="org.eclipse.rcp.feature.group" version="3.6.1.r361_v20100827-9OArFLdFjY-ThSQXmKvKz0_T"/> <unit id="org.eclipse.rcp.sdk.id" version="3.6.0.M20100909-0800"/> +<unit id="org.eclipse.pde.feature.group" version="3.6.2.r362_v20110203-7b7mFL2FET3dhHalh1iNZtL"/> <repository location="http://download.eclipse.org/releases/helios"/> </location> <location includeAllPlatforms="false" includeMode="planner" type="InstallableUnit"> diff --git a/org.eclipse.jubula.project.configuration/target/definitions/helios_pde.target b/org.eclipse.jubula.project.configuration/target/definitions/helios_pde.target new file mode 100644 index 000000000..822815829 --- /dev/null +++ b/org.eclipse.jubula.project.configuration/target/definitions/helios_pde.target @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<?pde version="3.6"?>
+
+<target name="helios_pde">
+<locations>
+<location includeAllPlatforms="false" includeMode="planner" type="InstallableUnit">
+<unit id="org.eclipse.pde.feature.group" version="3.6.2.r362_v20110203-7b7mFL2FET3dhHalh1iNZtL"/>
+<repository location="http://download.eclipse.org/releases/helios/"/>
+</location>
+<location includeAllPlatforms="false" includeMode="planner" type="InstallableUnit">
+<unit id="ch.qos.logback.classic" version="0.9.19.v20100519-1505"/>
+<unit id="ch.qos.logback.core" version="0.9.19.v20100419-1216"/>
+<unit id="ch.qos.logback.slf4j" version="0.9.19.v20100519-1910"/>
+<unit id="org.slf4j.api" version="1.5.11.v20100519-1910"/>
+<unit id="org.slf4j.jcl" version="1.5.11.v20100419-1106"/>
+<unit id="org.slf4j.log4j" version="1.5.11.v20100419-1106"/>
+<repository location="http://download.eclipse.org/tools/orbit/downloads/drops/R20100519200754/repository"/>
+</location>
+</locations>
+</target>
diff --git a/org.eclipse.jubula.releng/pom.xml b/org.eclipse.jubula.releng/pom.xml index f3d24306e..5ea7a4a0a 100644 --- a/org.eclipse.jubula.releng/pom.xml +++ b/org.eclipse.jubula.releng/pom.xml @@ -19,6 +19,8 @@ <module>../org.eclipse.jubula.standalone</module> <module>../org.eclipse.jubula.feature</module> <module>../org.eclipse.jubula.feature.client</module> + <module>../org.eclipse.jubula.feature.launch.java</module> + <module>../org.eclipse.jubula.feature.launch.rcp</module> <module>../org.eclipse.jubula.tools</module> <module>../org.eclipse.jubula.communication</module> <module>../org.eclipse.jubula.client.core</module> @@ -37,6 +39,10 @@ <module>../org.eclipse.jubula.client.ua.welcome</module> <module>../org.eclipse.jubula.client.ua.help</module> <module>../org.eclipse.jubula.client.cmd</module> + <module>../org.eclipse.jubula.launch</module> + <module>../org.eclipse.jubula.launch.java.ui</module> + <module>../org.eclipse.jubula.launch.rcp.ui</module> + <module>../org.eclipse.jubula.launch.ui</module> </modules> <url>http://www.eclipse.org/jubula</url> |