Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Tiede2014-09-11 13:06:51 +0000
committerMarkus Tiede2014-09-11 14:23:39 +0000
commit2665ee4d741bc83eca517ff0b5bcba8b395d6054 (patch)
treed30ce6b9c932a56efca5f723836a7add33581291 /org.eclipse.jubula.toolkit.swt.api
parent88450d6bc999beabfcef27df480bb24187a4beb6 (diff)
downloadorg.eclipse.jubula.core-2665ee4d741bc83eca517ff0b5bcba8b395d6054.tar.gz
org.eclipse.jubula.core-2665ee4d741bc83eca517ff0b5bcba8b395d6054.tar.xz
org.eclipse.jubula.core-2665ee4d741bc83eca517ff0b5bcba8b395d6054.zip
Sprint task - provide API to start SWT/RCP AUTs - part 2: refactoring and base classes for API AUT configurations created.
Diffstat (limited to 'org.eclipse.jubula.toolkit.swt.api')
-rw-r--r--org.eclipse.jubula.toolkit.swt.api/META-INF/MANIFEST.MF4
-rw-r--r--org.eclipse.jubula.toolkit.swt.api/src/org/eclipse/jubula/toolkit/swt/config/SWTAUTConfiguration.java59
2 files changed, 63 insertions, 0 deletions
diff --git a/org.eclipse.jubula.toolkit.swt.api/META-INF/MANIFEST.MF b/org.eclipse.jubula.toolkit.swt.api/META-INF/MANIFEST.MF
index 47f314de4..9cb9402dd 100644
--- a/org.eclipse.jubula.toolkit.swt.api/META-INF/MANIFEST.MF
+++ b/org.eclipse.jubula.toolkit.swt.api/META-INF/MANIFEST.MF
@@ -8,4 +8,8 @@ Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Bundle-ActivationPolicy: lazy
Bundle-ClassPath: .
Require-Bundle: org.eclipse.jubula.toolkit.api;bundle-version="[2.4.0,2.5.0)",
+ org.eclipse.jubula.client.api;bundle-version="[2.4.0,2.5.0)",
+ org.eclipse.jubula.toolkit.base.api;bundle-version="[2.4.0,2.5.0)",
+ org.eclipse.jubula.tools;bundle-version="[2.4.0,2.5.0)",
org.eclipse.jubula.toolkit.api.gen;resolution:=optional;bundle-version="[2.4.0,2.5.0)"
+Export-Package: org.eclipse.jubula.toolkit.swt.config
diff --git a/org.eclipse.jubula.toolkit.swt.api/src/org/eclipse/jubula/toolkit/swt/config/SWTAUTConfiguration.java b/org.eclipse.jubula.toolkit.swt.api/src/org/eclipse/jubula/toolkit/swt/config/SWTAUTConfiguration.java
new file mode 100644
index 000000000..a0b15124e
--- /dev/null
+++ b/org.eclipse.jubula.toolkit.swt.api/src/org/eclipse/jubula/toolkit/swt/config/SWTAUTConfiguration.java
@@ -0,0 +1,59 @@
+/*******************************************************************************
+ * 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.swt.config;
+
+import java.util.Locale;
+
+import org.eclipse.jubula.toolkit.base.config.AbstractOSProcessAUTConfiguration;
+import org.eclipse.jubula.tools.registration.AutIdentifier;
+
+/** @author BREDEX GmbH */
+public abstract class SWTAUTConfiguration
+ extends AbstractOSProcessAUTConfiguration {
+ /** the keyboardLayout */
+ private Locale m_keyboardLayout;
+
+ /**
+ * Constructor
+ *
+ * @param name
+ * the name
+ * @param autID
+ * the AUT ID
+ * @param command
+ * the command
+ * @param wd
+ * the working directory
+ * @param args
+ * the arguments
+ * @param keyboardLayout
+ * the keyboard layout to use
+ */
+ public SWTAUTConfiguration(String name, AutIdentifier autID,
+ String command, String wd, String[] args, Locale keyboardLayout) {
+ super(name, autID, command, wd, args);
+ setKeyboardLayout(keyboardLayout);
+ }
+
+ /**
+ * @return the keyboardLayout
+ */
+ public Locale getKeyboardLayout() {
+ return m_keyboardLayout;
+ }
+
+ /**
+ * @param keyboardLayout the keyboardLayout to set
+ */
+ private void setKeyboardLayout(Locale keyboardLayout) {
+ m_keyboardLayout = keyboardLayout;
+ }
+} \ No newline at end of file

Back to the top