Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Tiede2014-08-28 09:30:38 +0000
committerMarkus Tiede2014-08-28 09:30:38 +0000
commit9344a4993c1ca412e9e1da1002aeb6020cb38da3 (patch)
treebbc6ebb9383684032c8a4fd499a386af8ffe124a /org.eclipse.jubula.toolkit.rcp.provider
parentabc5804b527a6c89c76ba99fbebd5276f507c6bf (diff)
downloadorg.eclipse.jubula.core-9344a4993c1ca412e9e1da1002aeb6020cb38da3.tar.gz
org.eclipse.jubula.core-9344a4993c1ca412e9e1da1002aeb6020cb38da3.tar.xz
org.eclipse.jubula.core-9344a4993c1ca412e9e1da1002aeb6020cb38da3.zip
Sprint task - first preparations for RC API provisioning: re-locate toolkit provider to new namespace.
Diffstat (limited to 'org.eclipse.jubula.toolkit.rcp.provider')
-rw-r--r--org.eclipse.jubula.toolkit.rcp.provider/.classpath7
-rw-r--r--org.eclipse.jubula.toolkit.rcp.provider/.gitignore2
-rw-r--r--org.eclipse.jubula.toolkit.rcp.provider/.project41
-rw-r--r--org.eclipse.jubula.toolkit.rcp.provider/META-INF/MANIFEST.MF15
-rw-r--r--org.eclipse.jubula.toolkit.rcp.provider/about.html28
-rw-r--r--org.eclipse.jubula.toolkit.rcp.provider/build.properties19
-rw-r--r--org.eclipse.jubula.toolkit.rcp.provider/plugin.properties7
-rw-r--r--org.eclipse.jubula.toolkit.rcp.provider/plugin.xml23
-rw-r--r--org.eclipse.jubula.toolkit.rcp.provider/pom.xml52
-rw-r--r--org.eclipse.jubula.toolkit.rcp.provider/resources/xml/ComponentConfiguration.xml16
-rw-r--r--org.eclipse.jubula.toolkit.rcp.provider/src/org/eclipse/jubula/toolkit/rcp/provider/Activator.java47
-rw-r--r--org.eclipse.jubula.toolkit.rcp.provider/src/org/eclipse/jubula/toolkit/rcp/provider/I18nStrings.properties7
-rw-r--r--org.eclipse.jubula.toolkit.rcp.provider/src/org/eclipse/jubula/toolkit/rcp/provider/RCPToolkitProvider.java37
13 files changed, 301 insertions, 0 deletions
diff --git a/org.eclipse.jubula.toolkit.rcp.provider/.classpath b/org.eclipse.jubula.toolkit.rcp.provider/.classpath
new file mode 100644
index 000000000..b277a8ac8
--- /dev/null
+++ b/org.eclipse.jubula.toolkit.rcp.provider/.classpath
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
diff --git a/org.eclipse.jubula.toolkit.rcp.provider/.gitignore b/org.eclipse.jubula.toolkit.rcp.provider/.gitignore
new file mode 100644
index 000000000..934e0e06f
--- /dev/null
+++ b/org.eclipse.jubula.toolkit.rcp.provider/.gitignore
@@ -0,0 +1,2 @@
+/bin
+/target
diff --git a/org.eclipse.jubula.toolkit.rcp.provider/.project b/org.eclipse.jubula.toolkit.rcp.provider/.project
new file mode 100644
index 000000000..876aa5850
--- /dev/null
+++ b/org.eclipse.jubula.toolkit.rcp.provider/.project
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.jubula.toolkit.rcp.provider</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>
+ <linkedResources>
+ <link>
+ <name>.settings</name>
+ <type>2</type>
+ <locationURI>PARENT-1-PROJECT_LOC/org.eclipse.jubula.project.configuration/settings/1.7</locationURI>
+ </link>
+ </linkedResources>
+</projectDescription>
diff --git a/org.eclipse.jubula.toolkit.rcp.provider/META-INF/MANIFEST.MF b/org.eclipse.jubula.toolkit.rcp.provider/META-INF/MANIFEST.MF
new file mode 100644
index 000000000..2e62ee755
--- /dev/null
+++ b/org.eclipse.jubula.toolkit.rcp.provider/META-INF/MANIFEST.MF
@@ -0,0 +1,15 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: Jubula Toolkit - RCP
+Bundle-SymbolicName: org.eclipse.jubula.toolkit.rcp.provider;singleton:=true
+Bundle-Version: 2.4.0.qualifier
+Bundle-Activator: org.eclipse.jubula.toolkit.rcp.provider.Activator
+Bundle-Vendor: Eclipse Jubula
+Bundle-Localization: plugin
+Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.6.0,4.0.0)",
+ org.eclipse.jubula.toolkit.common;bundle-version="[2.4.0,2.5.0)",
+ org.eclipse.jubula.toolkit.swt.provider;bundle-version="[2.4.0,2.5.0)",
+ org.eclipse.jubula.ui.compatibility;bundle-version="[2.4.0,2.5.0)"
+Bundle-RequiredExecutionEnvironment: JavaSE-1.7
+Bundle-ActivationPolicy: lazy
+Bundle-ClassPath: .
diff --git a/org.eclipse.jubula.toolkit.rcp.provider/about.html b/org.eclipse.jubula.toolkit.rcp.provider/about.html
new file mode 100644
index 000000000..f1be81099
--- /dev/null
+++ b/org.eclipse.jubula.toolkit.rcp.provider/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 22, 2011</p>
+<h3>License</h3>
+
+<p>The Eclipse Foundation makes available all content in this plug-in (&quot;Content&quot;). Unless otherwise
+indicated below, the Content is provided to you under the terms and conditions of the
+Eclipse Public License Version 1.0 (&quot;EPL&quot;). 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, &quot;Program&quot; 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 (&quot;Redistributor&quot;) 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>
diff --git a/org.eclipse.jubula.toolkit.rcp.provider/build.properties b/org.eclipse.jubula.toolkit.rcp.provider/build.properties
new file mode 100644
index 000000000..689c1091b
--- /dev/null
+++ b/org.eclipse.jubula.toolkit.rcp.provider/build.properties
@@ -0,0 +1,19 @@
+###############################################################################
+# Copyright (c) 2004, 2010 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 = about.html,\
+ META-INF/,\
+ resources/,\
+ plugin.xml,\
+ .,\
+ plugin.properties
+javacSource = 1.5
+javacTarget = 1.5
+javacErrors.. = -assertIdentifier
diff --git a/org.eclipse.jubula.toolkit.rcp.provider/plugin.properties b/org.eclipse.jubula.toolkit.rcp.provider/plugin.properties
new file mode 100644
index 000000000..3707665df
--- /dev/null
+++ b/org.eclipse.jubula.toolkit.rcp.provider/plugin.properties
@@ -0,0 +1,7 @@
+###############################################################################
+# Copyright (c) 2014 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
+###############################################################################
diff --git a/org.eclipse.jubula.toolkit.rcp.provider/plugin.xml b/org.eclipse.jubula.toolkit.rcp.provider/plugin.xml
new file mode 100644
index 000000000..12d40ce1b
--- /dev/null
+++ b/org.eclipse.jubula.toolkit.rcp.provider/plugin.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.2"?> <!--
+ Copyright (c) 2004, 2010 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.jubula.toolkit.common.toolkitsupport">
+ <toolkit
+ IToolkitProvider="org.eclipse.jubula.toolkit.rcp.provider.RCPToolkitProvider"
+ includes="com.bredexsw.guidancer.SwtToolkitPlugin"
+ isUserToolkit="false"
+ level="toolkit"
+ name="rcp"
+ order="3"
+ toolkitID="com.bredexsw.guidancer.RcpToolkitPlugin"/>
+ </extension>
+
+</plugin>
diff --git a/org.eclipse.jubula.toolkit.rcp.provider/pom.xml b/org.eclipse.jubula.toolkit.rcp.provider/pom.xml
new file mode 100644
index 000000000..7f8e0a5c6
--- /dev/null
+++ b/org.eclipse.jubula.toolkit.rcp.provider/pom.xml
@@ -0,0 +1,52 @@
+<?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>org.eclipse.jubula.releng.client</artifactId>
+ <groupId>org.eclipse.jubula</groupId>
+ <version>2.4.0-SNAPSHOT</version>
+ <relativePath>../org.eclipse.jubula.releng.client</relativePath>
+ </parent>
+ <artifactId>org.eclipse.jubula.toolkit.rcp.provider</artifactId>
+ <packaging>eclipse-plugin</packaging>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>tycho-maven-plugin</artifactId>
+ <version>${tycho-version}</version>
+ <extensions>true</extensions>
+ </plugin>
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>target-platform-configuration</artifactId>
+ <version>${tycho-version}</version>
+ <configuration>
+ <dependency-resolution>
+ <optionalDependencies>ignore</optionalDependencies>
+ <extraRequirements>
+ <!-- prefer RCP to RAP for compilation -->
+ <requirement>
+ <type>eclipse-plugin</type>
+ <id>org.eclipse.swt</id>
+ <versionRange>[3.6,4.0)</versionRange>
+ </requirement>
+ <requirement>
+ <type>eclipse-plugin</type>
+ <id>org.eclipse.jface</id>
+ <versionRange>[3.6,4.0)</versionRange>
+ </requirement>
+ <requirement>
+ <type>eclipse-plugin</type>
+ <id>org.eclipse.jubula.client.ui.rcp</id>
+ <versionRange>[2.4.0,2.5.0)</versionRange>
+ </requirement>
+ </extraRequirements>
+ </dependency-resolution>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
diff --git a/org.eclipse.jubula.toolkit.rcp.provider/resources/xml/ComponentConfiguration.xml b/org.eclipse.jubula.toolkit.rcp.provider/resources/xml/ComponentConfiguration.xml
new file mode 100644
index 000000000..bd3bf5023
--- /dev/null
+++ b/org.eclipse.jubula.toolkit.rcp.provider/resources/xml/ComponentConfiguration.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="ISO-8859-1"?> <!--
+ Copyright (c) 2004, 2010 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
+ -->
+
+<!-- CAUTION: don't format any entries, especially don't use line breaks!
+ The value of the formated item may contain formating characters like tabs or
+ newlines, making them unusable for class or data lookup!-->
+<compSystem xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../org.eclipse.jubula.toolkit.common/resources/xml/ToolkitComponentConfiguration.xsd"> <configVersion>
+ <majorVersion>2</majorVersion>
+ <minorVersion>0</minorVersion>
+ </configVersion>
+</compSystem> \ No newline at end of file
diff --git a/org.eclipse.jubula.toolkit.rcp.provider/src/org/eclipse/jubula/toolkit/rcp/provider/Activator.java b/org.eclipse.jubula.toolkit.rcp.provider/src/org/eclipse/jubula/toolkit/rcp/provider/Activator.java
new file mode 100644
index 000000000..5f59ef3ca
--- /dev/null
+++ b/org.eclipse.jubula.toolkit.rcp.provider/src/org/eclipse/jubula/toolkit/rcp/provider/Activator.java
@@ -0,0 +1,47 @@
+/*******************************************************************************
+ * Copyright (c) 2004, 2010 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.toolkit.rcp.provider;
+
+import org.eclipse.core.runtime.Plugin;
+import org.osgi.framework.BundleContext;
+
+/**
+ * The activator class controls the plug-in life cycle
+ */
+public class Activator extends Plugin {
+ /** The shared instance */
+ private static Activator plugin;
+
+ /** The constructor */
+ public Activator() {
+ plugin = this;
+ }
+
+ /** {@inheritDoc} */
+ public void start(BundleContext context) throws Exception {
+ super.start(context);
+ }
+
+ /** {@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;
+ }
+} \ No newline at end of file
diff --git a/org.eclipse.jubula.toolkit.rcp.provider/src/org/eclipse/jubula/toolkit/rcp/provider/I18nStrings.properties b/org.eclipse.jubula.toolkit.rcp.provider/src/org/eclipse/jubula/toolkit/rcp/provider/I18nStrings.properties
new file mode 100644
index 000000000..06cc604ab
--- /dev/null
+++ b/org.eclipse.jubula.toolkit.rcp.provider/src/org/eclipse/jubula/toolkit/rcp/provider/I18nStrings.properties
@@ -0,0 +1,7 @@
+###############################################################################
+# Copyright (c) 2004, 2010 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
+###############################################################################
diff --git a/org.eclipse.jubula.toolkit.rcp.provider/src/org/eclipse/jubula/toolkit/rcp/provider/RCPToolkitProvider.java b/org.eclipse.jubula.toolkit.rcp.provider/src/org/eclipse/jubula/toolkit/rcp/provider/RCPToolkitProvider.java
new file mode 100644
index 000000000..ff788b029
--- /dev/null
+++ b/org.eclipse.jubula.toolkit.rcp.provider/src/org/eclipse/jubula/toolkit/rcp/provider/RCPToolkitProvider.java
@@ -0,0 +1,37 @@
+/*******************************************************************************
+ * Copyright (c) 2004, 2010 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.toolkit.rcp.provider;
+
+import java.net.URL;
+import java.util.ResourceBundle;
+
+import org.eclipse.jubula.toolkit.common.utils.ToolkitUtils;
+import org.eclipse.jubula.toolkit.swt.provider.SWTToolkitProvider;
+
+/**
+ * @author BREDEX GmbH
+ * @created 24.04.2007
+ */
+public class RCPToolkitProvider extends SWTToolkitProvider {
+ /** <code>I18N_PROPERTIES</code> */
+ private static final String I18N_PROPERTIES =
+ "org.eclipse.jubula.toolkit.rcp.provider.I18nStrings"; //$NON-NLS-1$
+
+ /** {@inheritDoc} */
+ public URL getComponentConfigurationFileURL() {
+ return ToolkitUtils.getURL(Activator.getDefault(), COMP_CONFIG_PATH);
+ }
+
+ /** {@inheritDoc} */
+ public ResourceBundle getI18nResourceBundle() {
+ return ResourceBundle.getBundle(I18N_PROPERTIES);
+ }
+}

Back to the top