Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Struckmann2014-04-09 12:25:52 +0000
committerSebastian Struckmann2014-04-09 12:27:47 +0000
commitbf8797c2c3da7100b9e26e1263be705182891daf (patch)
treed1d2ce19e494e0e47e3fe60d8103dd4544849ad7 /org.eclipse.jubula.examples.extension.javafx.toolkit
parent0caf770a3e9a11b440fc362b761534ded8f7be64 (diff)
downloadorg.eclipse.jubula.core-bf8797c2c3da7100b9e26e1263be705182891daf.tar.gz
org.eclipse.jubula.core-bf8797c2c3da7100b9e26e1263be705182891daf.tar.xz
org.eclipse.jubula.core-bf8797c2c3da7100b9e26e1263be705182891daf.zip
Sprint task - Added an Jubula extension example for JavaFX.
Diffstat (limited to 'org.eclipse.jubula.examples.extension.javafx.toolkit')
-rw-r--r--org.eclipse.jubula.examples.extension.javafx.toolkit/.classpath7
-rw-r--r--org.eclipse.jubula.examples.extension.javafx.toolkit/.gitignore3
-rw-r--r--org.eclipse.jubula.examples.extension.javafx.toolkit/.project28
-rw-r--r--org.eclipse.jubula.examples.extension.javafx.toolkit/.settings/org.eclipse.jdt.core.prefs7
-rw-r--r--org.eclipse.jubula.examples.extension.javafx.toolkit/META-INF/MANIFEST.MF14
-rw-r--r--org.eclipse.jubula.examples.extension.javafx.toolkit/build.properties6
-rw-r--r--org.eclipse.jubula.examples.extension.javafx.toolkit/plugin.xml26
-rw-r--r--org.eclipse.jubula.examples.extension.javafx.toolkit/resources/xml/ComponentConfiguration.xml30
-rw-r--r--org.eclipse.jubula.examples.extension.javafx.toolkit/src/org/eclipse/jubula/examples/extension/javafx/toolkit/Activator.java60
-rw-r--r--org.eclipse.jubula.examples.extension.javafx.toolkit/src/org/eclipse/jubula/examples/extension/javafx/toolkit/i18n/i18n.properties10
-rw-r--r--org.eclipse.jubula.examples.extension.javafx.toolkit/src/org/eclipse/jubula/examples/extension/javafx/toolkit/provider/MyToolKitProvider.java34
11 files changed, 225 insertions, 0 deletions
diff --git a/org.eclipse.jubula.examples.extension.javafx.toolkit/.classpath b/org.eclipse.jubula.examples.extension.javafx.toolkit/.classpath
new file mode 100644
index 000000000..098194ca4
--- /dev/null
+++ b/org.eclipse.jubula.examples.extension.javafx.toolkit/.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/JavaSE-1.7"/>
+ <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.examples.extension.javafx.toolkit/.gitignore b/org.eclipse.jubula.examples.extension.javafx.toolkit/.gitignore
new file mode 100644
index 000000000..64af1f50f
--- /dev/null
+++ b/org.eclipse.jubula.examples.extension.javafx.toolkit/.gitignore
@@ -0,0 +1,3 @@
+/build
+/bin
+/target
diff --git a/org.eclipse.jubula.examples.extension.javafx.toolkit/.project b/org.eclipse.jubula.examples.extension.javafx.toolkit/.project
new file mode 100644
index 000000000..46d7ae9a5
--- /dev/null
+++ b/org.eclipse.jubula.examples.extension.javafx.toolkit/.project
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.jubula.examples.extension.javafx.toolkit</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>
diff --git a/org.eclipse.jubula.examples.extension.javafx.toolkit/.settings/org.eclipse.jdt.core.prefs b/org.eclipse.jubula.examples.extension.javafx.toolkit/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 000000000..f42de363a
--- /dev/null
+++ b/org.eclipse.jubula.examples.extension.javafx.toolkit/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,7 @@
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
+org.eclipse.jdt.core.compiler.compliance=1.7
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.7
diff --git a/org.eclipse.jubula.examples.extension.javafx.toolkit/META-INF/MANIFEST.MF b/org.eclipse.jubula.examples.extension.javafx.toolkit/META-INF/MANIFEST.MF
new file mode 100644
index 000000000..87af99deb
--- /dev/null
+++ b/org.eclipse.jubula.examples.extension.javafx.toolkit/META-INF/MANIFEST.MF
@@ -0,0 +1,14 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: Jubula Extension Example - JavaFX - Toolkit
+Bundle-SymbolicName: org.eclipse.jubula.examples.extension.javafx.toolkit;singleton:=true
+Bundle-Version: 2.3.0.qualifier
+Bundle-Activator: org.eclipse.jubula.examples.extension.javafx.toolkit.Activator
+Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.6.0,4.0.0)",
+ org.eclipse.jubula.tools;bundle-version="2.3.0",
+ org.eclipse.jubula.toolkit.common;bundle-version="2.3.0",
+ org.eclipse.swt;bundle-version="[3.6.1,4.0.0)";resolution:=optional
+Bundle-RequiredExecutionEnvironment: JavaSE-1.7
+Bundle-ActivationPolicy: lazy
+Bundle-Vendor: Eclipse Jubula
+Bundle-ClassPath: .
diff --git a/org.eclipse.jubula.examples.extension.javafx.toolkit/build.properties b/org.eclipse.jubula.examples.extension.javafx.toolkit/build.properties
new file mode 100644
index 000000000..f15497ee4
--- /dev/null
+++ b/org.eclipse.jubula.examples.extension.javafx.toolkit/build.properties
@@ -0,0 +1,6 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .,\
+ resources/,\
+ plugin.xml
diff --git a/org.eclipse.jubula.examples.extension.javafx.toolkit/plugin.xml b/org.eclipse.jubula.examples.extension.javafx.toolkit/plugin.xml
new file mode 100644
index 000000000..907d0ef78
--- /dev/null
+++ b/org.eclipse.jubula.examples.extension.javafx.toolkit/plugin.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.4"?>
+<!--
+ 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.examples.extension.javafx.toolkit.provider.MyToolKitProvider"
+ depends="org.eclipse.jubula.JavaFXToolkitPlugin"
+ includes="null"
+ isUserToolkit="true"
+ level="toolkit"
+ name="exampleJavaFXToolkitExtension"
+ order="20"
+ toolkitID="org.eclipse.jubula.examples.extension.javafx.toolkit.exampleJavaFXToolkitExtension">
+ </toolkit>
+ </extension>
+
+</plugin>
diff --git a/org.eclipse.jubula.examples.extension.javafx.toolkit/resources/xml/ComponentConfiguration.xml b/org.eclipse.jubula.examples.extension.javafx.toolkit/resources/xml/ComponentConfiguration.xml
new file mode 100644
index 000000000..d3263ec34
--- /dev/null
+++ b/org.eclipse.jubula.examples.extension.javafx.toolkit/resources/xml/ComponentConfiguration.xml
@@ -0,0 +1,30 @@
+<?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>1</majorVersion>
+ <minorVersion>36</minorVersion>
+ </configVersion>
+ <toolkitComponent type="javafx.scene.chart.PieChart" visible="true">
+ <realizes>guidancer.abstract.Widget</realizes>
+ <testerClass>org.eclipse.jubula.rc.javafx.tester.PieChartTester</testerClass>
+ <componentClass name="javafx.scene.chart.PieChart" />
+ <action name="CompSystem.VerifyNrItems" changed="2.0.0">
+ <method>rcVerifyNrItems</method>
+ <param name="CompSystem.Number">
+ <type>java.lang.Integer</type>
+ </param>
+ </action>
+ </toolkitComponent>
+
+</compSystem> \ No newline at end of file
diff --git a/org.eclipse.jubula.examples.extension.javafx.toolkit/src/org/eclipse/jubula/examples/extension/javafx/toolkit/Activator.java b/org.eclipse.jubula.examples.extension.javafx.toolkit/src/org/eclipse/jubula/examples/extension/javafx/toolkit/Activator.java
new file mode 100644
index 000000000..289de222d
--- /dev/null
+++ b/org.eclipse.jubula.examples.extension.javafx.toolkit/src/org/eclipse/jubula/examples/extension/javafx/toolkit/Activator.java
@@ -0,0 +1,60 @@
+/*******************************************************************************
+ * 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
+ *
+ * Contributors:
+ * BREDEX GmbH - initial API and implementation and/or initial documentation
+ *******************************************************************************/
+package org.eclipse.jubula.examples.extension.javafx.toolkit;
+
+import org.eclipse.core.runtime.Plugin;
+import org.osgi.framework.BundleContext;
+
+/**
+ * The activator class controls the plug-in life cycle
+ *
+ * @author BREDEX GmbH
+ */
+public class Activator extends Plugin {
+
+ /** The plug-in ID */
+ public static final String PLUGIN_ID = "org.eclipse.jubula.examples.extension.javafx.toolkit"; //$NON-NLS-1$
+
+ /** 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;
+ }
+
+}
diff --git a/org.eclipse.jubula.examples.extension.javafx.toolkit/src/org/eclipse/jubula/examples/extension/javafx/toolkit/i18n/i18n.properties b/org.eclipse.jubula.examples.extension.javafx.toolkit/src/org/eclipse/jubula/examples/extension/javafx/toolkit/i18n/i18n.properties
new file mode 100644
index 000000000..5dcf9ddc1
--- /dev/null
+++ b/org.eclipse.jubula.examples.extension.javafx.toolkit/src/org/eclipse/jubula/examples/extension/javafx/toolkit/i18n/i18n.properties
@@ -0,0 +1,10 @@
+###############################################################################
+# 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
+###############################################################################
+CompSystem.VerifyNrItems=Verify Number of Items
+CompSystem.Number=Number of Items
+javafx.scene.chart.PieChart=Pie Chart \ No newline at end of file
diff --git a/org.eclipse.jubula.examples.extension.javafx.toolkit/src/org/eclipse/jubula/examples/extension/javafx/toolkit/provider/MyToolKitProvider.java b/org.eclipse.jubula.examples.extension.javafx.toolkit/src/org/eclipse/jubula/examples/extension/javafx/toolkit/provider/MyToolKitProvider.java
new file mode 100644
index 000000000..150848889
--- /dev/null
+++ b/org.eclipse.jubula.examples.extension.javafx.toolkit/src/org/eclipse/jubula/examples/extension/javafx/toolkit/provider/MyToolKitProvider.java
@@ -0,0 +1,34 @@
+/*******************************************************************************
+ * 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
+ *
+ * Contributors:
+ * BREDEX GmbH - initial API and implementation and/or initial documentation
+ *******************************************************************************/
+package org.eclipse.jubula.examples.extension.javafx.toolkit.provider;
+
+import java.net.URL;
+import java.util.ResourceBundle;
+
+import org.eclipse.jubula.examples.extension.javafx.toolkit.Activator;
+import org.eclipse.jubula.toolkit.common.AbstractToolkitProvider;
+import org.eclipse.jubula.toolkit.common.utils.ToolkitUtils;
+
+public class MyToolKitProvider extends AbstractToolkitProvider {
+ /** the bundle location */
+ public static final String BUNDLE = "org.eclipse.jubula.examples.extension.javafx.toolkit.i18n.i18n"; //$NON-NLS-1$
+
+ /** {@inheritDoc} */
+ public URL getComponentConfigurationFileURL() {
+ return ToolkitUtils.getURL(Activator.getDefault(),
+ "resources/xml/ComponentConfiguration.xml"); //$NON-NLS-1$
+ }
+
+ /** {@inheritDoc} */
+ public ResourceBundle getI18nResourceBundle() {
+ return ResourceBundle.getBundle(BUNDLE);
+ }
+}

Back to the top