Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Struckmann2014-10-02 14:12:45 +0000
committerSebastian Struckmann2014-10-02 14:13:28 +0000
commit67a3ac851fc9dc1abb6960e7c95d38fe43bfef1a (patch)
treeac90218e51def07724e545f75781bd884688133b /org.eclipse.jubula.toolkit.ios.provider
parent034e7311c47eb053e9a1bcb77c49e89049e933fe (diff)
downloadorg.eclipse.jubula.core-67a3ac851fc9dc1abb6960e7c95d38fe43bfef1a.tar.gz
org.eclipse.jubula.core-67a3ac851fc9dc1abb6960e7c95d38fe43bfef1a.tar.xz
org.eclipse.jubula.core-67a3ac851fc9dc1abb6960e7c95d38fe43bfef1a.zip
Sprint task - Java API - Renamed o.e.j.toolkit.mobile.ios.* bundles to ios, added in generation process
Diffstat (limited to 'org.eclipse.jubula.toolkit.ios.provider')
-rw-r--r--org.eclipse.jubula.toolkit.ios.provider/.checkstyle10
-rw-r--r--org.eclipse.jubula.toolkit.ios.provider/.classpath7
-rw-r--r--org.eclipse.jubula.toolkit.ios.provider/.gitignore2
-rw-r--r--org.eclipse.jubula.toolkit.ios.provider/.project58
-rw-r--r--org.eclipse.jubula.toolkit.ios.provider/META-INF/MANIFEST.MF16
-rw-r--r--org.eclipse.jubula.toolkit.ios.provider/about.html28
-rw-r--r--org.eclipse.jubula.toolkit.ios.provider/build.properties14
-rw-r--r--org.eclipse.jubula.toolkit.ios.provider/plugin.xml21
-rw-r--r--org.eclipse.jubula.toolkit.ios.provider/pom.xml61
-rw-r--r--org.eclipse.jubula.toolkit.ios.provider/resources/xml/ComponentConfiguration.xml318
-rw-r--r--org.eclipse.jubula.toolkit.ios.provider/src/org/eclipse/jubula/toolkit/ios/provider/Activator.java49
-rw-r--r--org.eclipse.jubula.toolkit.ios.provider/src/org/eclipse/jubula/toolkit/ios/provider/I18nStrings.properties39
-rw-r--r--org.eclipse.jubula.toolkit.ios.provider/src/org/eclipse/jubula/toolkit/ios/provider/ToolkitProvider.java50
-rw-r--r--org.eclipse.jubula.toolkit.ios.provider/src/org/eclipse/jubula/toolkit/ios/provider/ui/IOSAutConfigComponent.java86
14 files changed, 759 insertions, 0 deletions
diff --git a/org.eclipse.jubula.toolkit.ios.provider/.checkstyle b/org.eclipse.jubula.toolkit.ios.provider/.checkstyle
new file mode 100644
index 000000000..80f189725
--- /dev/null
+++ b/org.eclipse.jubula.toolkit.ios.provider/.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/com/bredexsw/guidancer/toolkit/provider/mobile/ios/i18n"/>
+ </filter>
+</fileset-config>
diff --git a/org.eclipse.jubula.toolkit.ios.provider/.classpath b/org.eclipse.jubula.toolkit.ios.provider/.classpath
new file mode 100644
index 000000000..098194ca4
--- /dev/null
+++ b/org.eclipse.jubula.toolkit.ios.provider/.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.toolkit.ios.provider/.gitignore b/org.eclipse.jubula.toolkit.ios.provider/.gitignore
new file mode 100644
index 000000000..934e0e06f
--- /dev/null
+++ b/org.eclipse.jubula.toolkit.ios.provider/.gitignore
@@ -0,0 +1,2 @@
+/bin
+/target
diff --git a/org.eclipse.jubula.toolkit.ios.provider/.project b/org.eclipse.jubula.toolkit.ios.provider/.project
new file mode 100644
index 000000000..5029df7c2
--- /dev/null
+++ b/org.eclipse.jubula.toolkit.ios.provider/.project
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.jubula.toolkit.ios.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>copy_PARENT/org.eclipse.jubula.project.configuration/settings/1.7</locationURI>
+ </link>
+ </linkedResources>
+ <filteredResources>
+ <filter>
+ <id>0</id>
+ <name></name>
+ <type>10</type>
+ <matcher>
+ <id>org.eclipse.ui.ide.multiFilter</id>
+ <arguments>1.0-projectRelativePath-matches-false-false-target</arguments>
+ </matcher>
+ </filter>
+ </filteredResources>
+ <variableList>
+ <variable>
+ <name>copy_PARENT</name>
+ <value>$%7BPARENT-2-PROJECT_LOC%7D/repos/org.eclipse.jubula.core</value>
+ </variable>
+ </variableList>
+</projectDescription>
diff --git a/org.eclipse.jubula.toolkit.ios.provider/META-INF/MANIFEST.MF b/org.eclipse.jubula.toolkit.ios.provider/META-INF/MANIFEST.MF
new file mode 100644
index 000000000..f8c2373f8
--- /dev/null
+++ b/org.eclipse.jubula.toolkit.ios.provider/META-INF/MANIFEST.MF
@@ -0,0 +1,16 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: Jubula Toolkit - iOS
+Bundle-SymbolicName: org.eclipse.jubula.toolkit.ios.provider;singleton:=true
+Bundle-Version: 2.4.0.qualifier
+Bundle-Activator: org.eclipse.jubula.toolkit.ios.provider.Activator
+Bundle-Vendor: Eclipse Jubula
+Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.6.0,4.0.0)",
+ org.eclipse.jubula.ui.compatibility;bundle-version="[2.4.0,2.5.0)",
+ org.eclipse.jubula.toolkit.common;bundle-version="[2.4.0,2.5.0)",
+ org.eclipse.jubula.tools;bundle-version="[2.4.0,2.5.0)",
+ org.eclipse.jubula.client.ui;bundle-version="[2.4.0,2.5.0)",
+ org.eclipse.jubula.client.ui.rcp;bundle-version="[2.4.0,2.5.0)";resolution:=optional,
+ org.eclipse.jubula.toolkit.mobile.provider;bundle-version="[2.4.0,2.5.0)"
+Bundle-RequiredExecutionEnvironment: JavaSE-1.7
+Bundle-ActivationPolicy: lazy
diff --git a/org.eclipse.jubula.toolkit.ios.provider/about.html b/org.eclipse.jubula.toolkit.ios.provider/about.html
new file mode 100644
index 000000000..f1be81099
--- /dev/null
+++ b/org.eclipse.jubula.toolkit.ios.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.ios.provider/build.properties b/org.eclipse.jubula.toolkit.ios.provider/build.properties
new file mode 100644
index 000000000..d4f24588d
--- /dev/null
+++ b/org.eclipse.jubula.toolkit.ios.provider/build.properties
@@ -0,0 +1,14 @@
+###############################################################################
+# 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
+###############################################################################
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .,\
+ plugin.xml,\
+ resources/,\
+ about.html
diff --git a/org.eclipse.jubula.toolkit.ios.provider/plugin.xml b/org.eclipse.jubula.toolkit.ios.provider/plugin.xml
new file mode 100644
index 000000000..008977ab9
--- /dev/null
+++ b/org.eclipse.jubula.toolkit.ios.provider/plugin.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.2"?> <!--
+ 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
+ -->
+<plugin>
+ <extension
+ point="org.eclipse.jubula.toolkit.common.toolkitsupport">
+ <toolkit
+ IToolkitProvider="org.eclipse.jubula.toolkit.ios.provider.ToolkitProvider"
+ includes="ui.toolkit.MobileToolkitPlugin"
+ isUserToolkit="false"
+ level="toolkit"
+ name="iOS"
+ order="4"
+ toolkitID="ui.toolkit.mobile.IOSToolkitPlugin"/>
+ </extension>
+</plugin>
diff --git a/org.eclipse.jubula.toolkit.ios.provider/pom.xml b/org.eclipse.jubula.toolkit.ios.provider/pom.xml
new file mode 100644
index 000000000..a9dd8b313
--- /dev/null
+++ b/org.eclipse.jubula.toolkit.ios.provider/pom.xml
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ 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
+ -->
+ <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.ios.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.ios.provider/resources/xml/ComponentConfiguration.xml b/org.eclipse.jubula.toolkit.ios.provider/resources/xml/ComponentConfiguration.xml
new file mode 100644
index 000000000..a9aa58d54
--- /dev/null
+++ b/org.eclipse.jubula.toolkit.ios.provider/resources/xml/ComponentConfiguration.xml
@@ -0,0 +1,318 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+ 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
+ -->
+<!--
+ 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="../../../../jubula/org.eclipse.jubula.toolkit.common/resources/xml/ToolkitComponentConfiguration.xsd">
+ <configVersion>
+ <majorVersion>1</majorVersion>
+ <minorVersion>0</minorVersion>
+ </configVersion>
+
+ <!-- Button -->
+ <concreteComponent type="abstract.ios.Button">
+ <realizes>guidancer.concrete.Button</realizes>
+ <action name="CompSystem.Swipe" changed="1.00">
+ <method>rcSwipe</method>
+ <param name="CompSystem.Direction">
+ <type>java.lang.String</type>
+ <defaultValue>right</defaultValue>
+ <valueSet>
+ <element name="CompSystem.Up" value="up"/>
+ <element name="CompSystem.Down" value="down"/>
+ <element name="CompSystem.Right" value="right"/>
+ <element name="CompSystem.Left" value="left"/>
+ </valueSet>
+ </param>
+ </action>
+ </concreteComponent>
+ <toolkitComponent type="ios.UIButton" visible="false">
+ <realizes>abstract.ios.Button</realizes>
+ <testerClass>com.bredexsw.jubula.rc.mobile.ios.impl.UIButtonTester</testerClass>
+ <componentClass name="ios.UIButton" />
+ </toolkitComponent>
+ <toolkitComponent type="ios.UISwitch" visible="false">
+ <realizes>abstract.ios.Button</realizes>
+ <testerClass>com.bredexsw.jubula.rc.mobile.ios.impl.UIButtonTester</testerClass>
+ <componentClass name="ios.UISwitch" />
+ </toolkitComponent>
+
+ <!-- Textfield -->
+ <concreteComponent type="abstract.ios.TextComponent">
+ <realizes>guidancer.concrete.TextComponent</realizes>
+ <action name="CompSystem.Swipe" changed="1.00">
+ <method>rcSwipe</method>
+ <param name="CompSystem.Direction">
+ <type>java.lang.String</type>
+ <defaultValue>right</defaultValue>
+ <valueSet>
+ <element name="CompSystem.Up" value="up"/>
+ <element name="CompSystem.Down" value="down"/>
+ <element name="CompSystem.Right" value="right"/>
+ <element name="CompSystem.Left" value="left"/>
+ </valueSet>
+ </param>
+ </action>
+ </concreteComponent>
+ <toolkitComponent type="ios.UITextField" visible="false">
+ <realizes>abstract.ios.TextComponent</realizes>
+ <testerClass>com.bredexsw.jubula.rc.mobile.ios.impl.UITextComponentTester</testerClass>
+ <componentClass name="ios.UITextField" />
+ </toolkitComponent>
+ <toolkitComponent type="ios.UITextView" visible="false">
+ <realizes>abstract.ios.TextComponent</realizes>
+ <testerClass>com.bredexsw.jubula.rc.mobile.ios.impl.UITextComponentTester</testerClass>
+ <componentClass name="ios.UITextView" />
+ </toolkitComponent>
+
+ <!-- Label -->
+ <concreteComponent type="abstract.ios.TextVerifiable">
+ <realizes>guidancer.concrete.Label</realizes>
+ <action name="CompSystem.Swipe" changed="1.00">
+ <method>rcSwipe</method>
+ <param name="CompSystem.Direction">
+ <type>java.lang.String</type>
+ <defaultValue>right</defaultValue>
+ <valueSet>
+ <element name="CompSystem.Up" value="up"/>
+ <element name="CompSystem.Down" value="down"/>
+ <element name="CompSystem.Right" value="right"/>
+ <element name="CompSystem.Left" value="left"/>
+ </valueSet>
+ </param>
+ </action>
+ </concreteComponent>
+
+ <toolkitComponent type="ios.UILabel" visible="false">
+ <realizes>abstract.ios.TextVerifiable</realizes>
+ <testerClass>com.bredexsw.jubula.rc.mobile.ios.impl.UITextVerifiableTester</testerClass>
+ <componentClass name="ios.UILabel" />
+ </toolkitComponent>
+
+ <toolkitComponent type="ios.UITableViewCell" visible="false">
+ <realizes>abstract.ios.TextVerifiable</realizes>
+ <testerClass>com.bredexsw.jubula.rc.mobile.ios.impl.UITextVerifiableTester</testerClass>
+ <componentClass name="ios.UITableViewCell" />
+ </toolkitComponent>
+
+ <toolkitComponent type="ios.UINavigationItemView" visible="false">
+ <realizes>abstract.ios.TextVerifiable</realizes>
+ <testerClass>com.bredexsw.jubula.rc.mobile.ios.impl.UITextVerifiableTester</testerClass>
+ <componentClass name="ios.UINavigationItemView" />
+ </toolkitComponent>
+
+ <toolkitComponent type="ios.UITabBarButton" visible="false">
+ <realizes>abstract.ios.TextVerifiable</realizes>
+ <testerClass>com.bredexsw.jubula.rc.mobile.ios.impl.UITextVerifiableTester</testerClass>
+ <componentClass name="ios.UITabBarButton" />
+ </toolkitComponent>
+
+ <toolkitComponent type="ios.UIImageView" visible="false">
+ <realizes>abstract.ios.TextVerifiable</realizes>
+ <testerClass>com.bredexsw.jubula.rc.mobile.ios.impl.UITextVerifiableTester</testerClass>
+ <componentClass name="ios.UIImageView" />
+ </toolkitComponent>
+
+ <!-- List -->
+ <concreteComponent type="abstract.ios.List">
+ <realizes>guidancer.concrete.List</realizes>
+ <action name="CompSystem.Swipe" changed="1.00">
+ <method>rcSwipe</method>
+ <param name="CompSystem.Direction">
+ <type>java.lang.String</type>
+ <defaultValue>right</defaultValue>
+ <valueSet>
+ <element name="CompSystem.Up" value="up"/>
+ <element name="CompSystem.Down" value="down"/>
+ <element name="CompSystem.Right" value="right"/>
+ <element name="CompSystem.Left" value="left"/>
+ </valueSet>
+ </param>
+ </action>
+ </concreteComponent>
+ <toolkitComponent type="ios.UITableView" visible="false">
+ <realizes>abstract.ios.List</realizes>
+ <testerClass>com.bredexsw.jubula.rc.mobile.ios.impl.UIListTester</testerClass>
+ <componentClass name="ios.UITableView" />
+ </toolkitComponent>
+
+ <!-- Tabbed Control -->
+ <concreteComponent type="abstract.ios.TabComponent">
+ <realizes>guidancer.concrete.TabbedPane</realizes>
+ <action name="CompSystem.Swipe" changed="1.00">
+ <method>rcSwipe</method>
+ <param name="CompSystem.Direction">
+ <type>java.lang.String</type>
+ <defaultValue>right</defaultValue>
+ <valueSet>
+ <element name="CompSystem.Up" value="up"/>
+ <element name="CompSystem.Down" value="down"/>
+ <element name="CompSystem.Right" value="right"/>
+ <element name="CompSystem.Left" value="left"/>
+ </valueSet>
+ </param>
+ </action>
+ </concreteComponent>
+ <toolkitComponent type="ios.UISegmentedControl" visible="false">
+ <realizes>abstract.ios.TabComponent</realizes>
+ <testerClass>com.bredexsw.jubula.rc.mobile.ios.impl.UITabComponentTester</testerClass>
+ <componentClass name="ios.UISegmentedControl" />
+ </toolkitComponent>
+
+ <toolkitComponent type="ios.UITabBar" visible="true">
+ <realizes>abstract.ios.TabComponent</realizes>
+ <testerClass>com.bredexsw.jubula.rc.mobile.ios.impl.UITabComponentTester</testerClass>
+ <componentClass name="ios.UITabBar" />
+ <action name="CompSystem.CheckBadgeValue" changed="1.0">
+ <method>rcCheckBadgeValue</method>
+ <param name="CompSystem.Text">
+ <type>java.lang.String</type>
+ </param>
+ <param name="CompSystem.TabIndex">
+ <type>java.lang.Integer</type>
+ </param>
+ <param name="CompSystem.Operator">
+ <type>java.lang.String</type>
+ <defaultValue>equals</defaultValue>
+ <valueSet>
+ <element name="CompSystem.Equals" value="equals"/>
+ <element name="CompSystem.NotEquals" value="not equals"/>
+ <element name="CompSystem.MatchesRegExp" value="matches"/>
+ <element name="CompSystem.SimpleMatch" value="simple match"/>
+ </valueSet>
+ </param>
+ </action>
+ </toolkitComponent>
+
+ <!-- Combo Box Controls -->
+ <concreteComponent type="abstract.ios.Picker" visible="true">
+ <realizes>guidancer.concrete.ComboBox</realizes>
+
+ <action name="CompSystem.Swipe" changed="1.00">
+ <method>rcSwipe</method>
+ <param name="CompSystem.Direction">
+ <type>java.lang.String</type>
+ <defaultValue>right</defaultValue>
+ <valueSet>
+ <element name="CompSystem.Up" value="up"/>
+ <element name="CompSystem.Down" value="down"/>
+ <element name="CompSystem.Right" value="right"/>
+ <element name="CompSystem.Left" value="left"/>
+ </valueSet>
+ </param>
+ </action>
+
+ <action name="CompSystem.VerifyContainsValueInColumn" changed="2.2">
+ <method>rcVerifyContainsValue</method>
+ <param name="CompSystem.Text">
+ <type>java.lang.String</type>
+ </param>
+ <param name="CompSystem.Operator">
+ <type>java.lang.String</type>
+ <defaultValue>equals</defaultValue>
+ <valueSet>
+ <element name="CompSystem.Equals" value="equals"/>
+ <element name="CompSystem.NotEquals" value="not equals"/>
+ <element name="CompSystem.MatchesRegExp" value="matches"/>
+ <element name="CompSystem.SimpleMatch" value="simple match"/>
+ </valueSet>
+ </param>
+ <param name="CompSystem.Exists">
+ <type>java.lang.Boolean</type>
+ <defaultValue>true</defaultValue>
+ <valueSet>
+ <element name="CompSystem.True" value="true"/>
+ <element name="CompSystem.False" value="false"/>
+ </valueSet>
+ </param>
+ <param name="CompSystem.Column">
+ <type>java.lang.Integer</type>
+ <defaultValue>1</defaultValue>
+ </param>
+ </action>
+
+ <action name="CompSystem.VerifySelectedIndexInColumn" changed="2.2">
+ <method>rcVerifySelectedIndex</method>
+ <param name="CompSystem.OneIndex">
+ <type>java.lang.String</type>
+ </param>
+ <param name="CompSystem.IsSelected">
+ <type>java.lang.Boolean</type>
+ <defaultValue>true</defaultValue>
+ <valueSet>
+ <element name="CompSystem.True" value="true"/>
+ <element name="CompSystem.False" value="false"/>
+ </valueSet>
+ </param>
+ <param name="CompSystem.Column">
+ <type>java.lang.Integer</type>
+ <defaultValue>1</defaultValue>
+ </param>
+ </action>
+ <action name="CompSystem.SelectIndexInColumn" changed="1.3">
+ <method>rcSelectIndex</method>
+ <param name="CompSystem.OneIndex">
+ <type>java.lang.String</type>
+ </param>
+ <param name="CompSystem.Column">
+ <type>java.lang.Integer</type>
+ <defaultValue>1</defaultValue>
+ </param>
+ </action>
+ <action name="CompSystem.SelectValueInColumn" changed="1.20">
+ <method>rcSelectValue</method>
+ <param name="CompSystem.Text">
+ <type>java.lang.String</type>
+ </param>
+ <param name="CompSystem.Operator">
+ <type>java.lang.String</type>
+ <defaultValue>equals</defaultValue>
+ <valueSet>
+ <element name="CompSystem.Equals" value="equals"/>
+ <element name="CompSystem.NotEquals" value="not equals"/>
+ <element name="CompSystem.MatchesRegExp" value="matches"/>
+ <element name="CompSystem.SimpleMatch" value="simple match"/>
+ </valueSet>
+ </param>
+ <param name="CompSystem.SearchType">
+ <type>java.lang.String</type>
+ <defaultValue>absolute</defaultValue>
+ <valueSet>
+ <element name="CompSystem.Absolute" value="absolute"/>
+ <element name="CompSystem.Relative" value="relative"/>
+ </valueSet>
+ </param>
+ <param name="CompSystem.Column">
+ <type>java.lang.Integer</type>
+ <defaultValue>1</defaultValue>
+ </param>
+ </action>
+ </concreteComponent>
+
+ <toolkitComponent type="ios.UIPickerView" visible="false">
+ <realizes>abstract.ios.Picker</realizes>
+ <testerClass>com.bredexsw.jubula.rc.mobile.ios.impl.UIPickerViewTester</testerClass>
+ <componentClass name="ios.UIPickerView" />
+ </toolkitComponent>
+
+ <toolkitComponent type="ios.UIApplication" visible="true" hasDefaultMapping="true">
+ <realizes>guidancer.concrete.GraphicApplication</realizes>
+ <testerClass>com.bredexsw.jubula.rc.mobile.ios.impl.UIApplicationTester</testerClass>
+ <componentClass name="ios.UIApplication" />
+ <action name="CompSystem.TapViewWithAccessibilityLabel" changed="1.0">
+ <method>rcTapViewWithAccessibilityLabel</method>
+ <param name="CompSystem.Label">
+ <type>java.lang.String</type>
+ </param>
+ </action>
+ </toolkitComponent>
+
+</compSystem> \ No newline at end of file
diff --git a/org.eclipse.jubula.toolkit.ios.provider/src/org/eclipse/jubula/toolkit/ios/provider/Activator.java b/org.eclipse.jubula.toolkit.ios.provider/src/org/eclipse/jubula/toolkit/ios/provider/Activator.java
new file mode 100644
index 000000000..858c25fc3
--- /dev/null
+++ b/org.eclipse.jubula.toolkit.ios.provider/src/org/eclipse/jubula/toolkit/ios/provider/Activator.java
@@ -0,0 +1,49 @@
+/*******************************************************************************
+ * 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.toolkit.ios.provider;
+
+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 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.toolkit.ios.provider/src/org/eclipse/jubula/toolkit/ios/provider/I18nStrings.properties b/org.eclipse.jubula.toolkit.ios.provider/src/org/eclipse/jubula/toolkit/ios/provider/I18nStrings.properties
new file mode 100644
index 000000000..8750aebf6
--- /dev/null
+++ b/org.eclipse.jubula.toolkit.ios.provider/src/org/eclipse/jubula/toolkit/ios/provider/I18nStrings.properties
@@ -0,0 +1,39 @@
+###############################################################################
+# 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
+###############################################################################
+abstract.ios.GraphicsComponent=(iOS) Graphics Component
+abstract.ios.Button=(iOS) Button Component
+abstract.ios.Picker=(iOS) Picker
+abstract.ios.TextComponent=(iOS) Component with Text Input
+abstract.ios.TextVerifiable=(iOS) Component with Text
+abstract.ios.List=(iOS) List
+abstract.ios.TabComponent=(iOS) Tab Component
+ios.UIButton=(iOS) Button
+ios.UITextField=(iOS) Text Field
+ios.UILabel=(iOS) Label
+ios.UISwitch=(iOS) Switch
+ios.UITextView=(iOS) Text View
+ios.UITableViewCell=(iOS) Table View Cell
+ios.UINavigationItemView=(iOS) Navigation Item View
+ios.UITabBarButton=(iOS) Tab Bar Button
+ios.UIImageView=(iOS) Image View
+ios.UITableView=(iOS) Table View
+ios.UISegmentedControl=(iOS) Segmented Control
+ios.UIPickerView=(iOS) Picker View
+ios.UIDatePicker=(iOS) Date Picker
+ios.UITabBar=(iOS) Tab Bar
+ios.UIApplication=(iOS) Application
+CompSystem.LogicalUIApplicationName=(iOS) Application
+CompSystem.VerifyContainsValueInColumn=Check Existence of Entry by Value in Column
+CompSystem.VerifySelectedIndexInColumn=Check Selection of Entry by Index in Column
+CompSystem.SelectIndexInColumn=Select Entry by Index in Column
+CompSystem.SelectValueInColumn=Select Entry by Value in Column
+CompSystem.TapViewWithAccessibilityLabel=Tap View with Accessibility Label
+CompSystem.Swipe=Swipe
+CompSystem.Label=Label
+CompSystem.CheckBadgeValue=Check Badge Value
+CompSystem.TabIndex=Tab Index \ No newline at end of file
diff --git a/org.eclipse.jubula.toolkit.ios.provider/src/org/eclipse/jubula/toolkit/ios/provider/ToolkitProvider.java b/org.eclipse.jubula.toolkit.ios.provider/src/org/eclipse/jubula/toolkit/ios/provider/ToolkitProvider.java
new file mode 100644
index 000000000..1e678bc1d
--- /dev/null
+++ b/org.eclipse.jubula.toolkit.ios.provider/src/org/eclipse/jubula/toolkit/ios/provider/ToolkitProvider.java
@@ -0,0 +1,50 @@
+/*******************************************************************************
+ * 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.toolkit.ios.provider;
+
+import java.net.URL;
+import java.util.Map;
+import java.util.ResourceBundle;
+
+import org.eclipse.jubula.toolkit.common.IToolKitProvider;
+import org.eclipse.jubula.toolkit.common.exception.ToolkitPluginException;
+import org.eclipse.jubula.toolkit.common.utils.ToolkitUtils;
+import org.eclipse.swt.widgets.Composite;
+
+
+/**
+ * @author BREDEX GmbH
+ */
+public class ToolkitProvider implements IToolKitProvider {
+ /** <code>I18N_PROPERTIES</code> */
+ private static final String I18N_PROPERTIES =
+ "org.eclipse.jubula.toolkit.ios.provider.I18nStrings"; //$NON-NLS-1$
+
+ /**{@inheritDoc} */
+ public Composite getAutConfigDialog(Composite parent, int style,
+ Map<String, String> autConfig, String autName)
+ throws ToolkitPluginException {
+ return ToolkitUtils.createAutConfigComponent(
+ "org.eclipse.jubula.toolkit.mobile.provider.ios.ui.IOSAutConfigComponent", //$NON-NLS-1$
+ this.getClass().getClassLoader(), parent, style,
+ autConfig, autName);
+ }
+
+ /**{@inheritDoc} */
+ public URL getComponentConfigurationFileURL() {
+ return ToolkitUtils.getURL(Activator.getDefault(), COMP_CONFIG_PATH);
+ }
+
+ /**{@inheritDoc} */
+ public ResourceBundle getI18nResourceBundle() {
+ return ResourceBundle.getBundle(I18N_PROPERTIES);
+ }
+}
diff --git a/org.eclipse.jubula.toolkit.ios.provider/src/org/eclipse/jubula/toolkit/ios/provider/ui/IOSAutConfigComponent.java b/org.eclipse.jubula.toolkit.ios.provider/src/org/eclipse/jubula/toolkit/ios/provider/ui/IOSAutConfigComponent.java
new file mode 100644
index 000000000..e12a720c0
--- /dev/null
+++ b/org.eclipse.jubula.toolkit.ios.provider/src/org/eclipse/jubula/toolkit/ios/provider/ui/IOSAutConfigComponent.java
@@ -0,0 +1,86 @@
+/*******************************************************************************
+ * 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.toolkit.ios.provider.ui;
+
+import java.util.Map;
+
+import org.eclipse.jubula.client.ui.widgets.UIComponentHelper;
+import org.eclipse.jubula.toolkit.mobile.provider.i18n.Messages;
+import org.eclipse.jubula.toolkit.mobile.provider.ui.MobileAutConfigComponent;
+import org.eclipse.jubula.tools.internal.constants.SwtAUTHierarchyConstants;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Label;
+import org.eclipse.swt.widgets.Text;
+
+/**
+ * Class to provide the iOS toolkit component
+ *
+ * @author BREDEX GmbH
+ */
+public class IOSAutConfigComponent extends MobileAutConfigComponent {
+
+ /** the technical name prefix */
+ private static final String TECHNICAL_NAME_PREFIX = "org.eclipse.jubula.toolkit.mobile.provider.ios.ui.iOSAutConfigComponent."; //$NON-NLS-1$
+ /** the platform name */
+ private static final String PLATFORM = "iOS";
+
+ /**
+ * Constructor
+ *
+ * @param parent
+ * the parent
+ * @param style
+ * the style
+ * @param autConfig
+ * the AUT configuration
+ * @param autName
+ * the AUTs name
+ */
+ public IOSAutConfigComponent(Composite parent, int style,
+ Map<String, String> autConfig, String autName) {
+ super(parent, style, autConfig, autName, PLATFORM);
+ }
+
+ /** {@inheritDoc} */
+ // FIXME soeren: cannot be moved to super class, because the super
+ // constructors
+ // this method, TECHNICAL_NAME_PREFIX and PLATFORM cannot be initialized
+ // before calling this method
+ protected void createBasicArea(Composite basicAreaComposite) {
+ super.createBasicArea(basicAreaComposite);
+
+ UIComponentHelper.createSeparator(basicAreaComposite, NUM_COLUMNS);
+
+ // AUT hostname property
+ Label autHostnameLabel = UIComponentHelper.createLabelWithText(
+ basicAreaComposite, PLATFORM + " " + Messages.autHostnameLabel);
+ autHostnameLabel.setData(SwtAUTHierarchyConstants.WIDGET_NAME,
+ TECHNICAL_NAME_PREFIX + "autHostnameLabel"); //$NON-NLS-1$
+
+ Text autHostTextField = UIComponentHelper.createTextField(
+ basicAreaComposite, 2);
+ autHostTextField.setData(SwtAUTHierarchyConstants.WIDGET_NAME,
+ TECHNICAL_NAME_PREFIX + "autHostnameTextField"); //$NON-NLS-1$
+ setAutHostTextField(autHostTextField);
+
+ // AUT port property
+ Label autPortLabel = UIComponentHelper.createLabelWithText(
+ basicAreaComposite, PLATFORM + " " + Messages.autPortLabel); //$NON-NLS-1$
+ autPortLabel.setData(SwtAUTHierarchyConstants.WIDGET_NAME,
+ TECHNICAL_NAME_PREFIX + "autPortLabel"); //$NON-NLS-1$
+
+ Text autPortTextField = UIComponentHelper.createTextField(
+ basicAreaComposite, 2);
+ autPortTextField.setData(SwtAUTHierarchyConstants.WIDGET_NAME,
+ TECHNICAL_NAME_PREFIX + "autPortTextField"); //$NON-NLS-1$
+ setAutPortTextField(autPortTextField);
+ }
+}

Back to the top