Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Tiede2015-02-27 09:37:29 +0000
committerMarkus Tiede2015-02-27 09:37:29 +0000
commit468d5fb9d9f14dc8663230dd8a3b2e5e423aa4d6 (patch)
tree2959d15c25d4df08ec245122ecee9a3af6a5d828 /org.eclipse.jubula.app.autrun
parent7fb9ce38dd423f88c729097542236a855a676937 (diff)
downloadorg.eclipse.jubula.core-468d5fb9d9f14dc8663230dd8a3b2e5e423aa4d6.tar.gz
org.eclipse.jubula.core-468d5fb9d9f14dc8663230dd8a3b2e5e423aa4d6.tar.xz
org.eclipse.jubula.core-468d5fb9d9f14dc8663230dd8a3b2e5e423aa4d6.zip
Non-sprint task - support autrun for JavaFX AUTs.
Diffstat (limited to 'org.eclipse.jubula.app.autrun')
-rw-r--r--org.eclipse.jubula.app.autrun/src/org/eclipse/jubula/app/autrun/AutRunApplication.java10
-rw-r--r--org.eclipse.jubula.app.autrun/src/org/eclipse/jubula/app/autrun/i18n/Messages.java1
-rw-r--r--org.eclipse.jubula.app.autrun/src/org/eclipse/jubula/app/autrun/i18n/messages.properties1
3 files changed, 12 insertions, 0 deletions
diff --git a/org.eclipse.jubula.app.autrun/src/org/eclipse/jubula/app/autrun/AutRunApplication.java b/org.eclipse.jubula.app.autrun/src/org/eclipse/jubula/app/autrun/AutRunApplication.java
index 44436e031..501ba219d 100644
--- a/org.eclipse.jubula.app.autrun/src/org/eclipse/jubula/app/autrun/AutRunApplication.java
+++ b/org.eclipse.jubula.app.autrun/src/org/eclipse/jubula/app/autrun/AutRunApplication.java
@@ -77,6 +77,9 @@ public class AutRunApplication implements IApplication {
/** <code>TK_SWING</code> */
private static final String TK_SWING = "swing"; //$NON-NLS-1$
+ /** <code>TK_JAVAFX</code> */
+ private static final String TK_JAVAFX = "javafx"; //$NON-NLS-1$
+
/** <code>DEFAULT_NAME_TECHNICAL_COMPONENTS</code> */
private static final boolean DEFAULT_NAME_TECHNICAL_COMPONENTS = true;
@@ -158,6 +161,9 @@ public class AutRunApplication implements IApplication {
/** rcp class prefix */
private static final String RCP_AUT_TOOLKIT_CLASS_PREFIX = "Rcp"; //$NON-NLS-1$
+
+ /** javafx class prefix */
+ private static final String JAVAFX_AUT_TOOLKIT_CLASS_PREFIX = "JavaFX"; //$NON-NLS-1$
// - Command line options - End //
/**
@@ -250,6 +256,8 @@ public class AutRunApplication implements IApplication {
Messages.infoSwtToolkit));
autToolkitOptionGroup.addOption(new Option(TK_RCP,
Messages.infoRcpToolkit));
+ autToolkitOptionGroup.addOption(new Option(TK_JAVAFX,
+ Messages.infoJavaFXToolkit));
autToolkitOptionGroup.setRequired(true);
options.addOptionGroup(autToolkitOptionGroup);
@@ -388,6 +396,8 @@ public class AutRunApplication implements IApplication {
toolkit = SWT_AUT_TOOLKIT_CLASS_PREFIX;
} else if (cmdLine.hasOption(TK_RCP)) {
toolkit = RCP_AUT_TOOLKIT_CLASS_PREFIX;
+ } else if (cmdLine.hasOption(TK_JAVAFX)) {
+ toolkit = JAVAFX_AUT_TOOLKIT_CLASS_PREFIX;
}
int autAgentPort = EnvConstants.AUT_AGENT_DEFAULT_PORT;
diff --git a/org.eclipse.jubula.app.autrun/src/org/eclipse/jubula/app/autrun/i18n/Messages.java b/org.eclipse.jubula.app.autrun/src/org/eclipse/jubula/app/autrun/i18n/Messages.java
index e64cff6cd..da6069568 100644
--- a/org.eclipse.jubula.app.autrun/src/org/eclipse/jubula/app/autrun/i18n/Messages.java
+++ b/org.eclipse.jubula.app.autrun/src/org/eclipse/jubula/app/autrun/i18n/Messages.java
@@ -21,6 +21,7 @@ public class Messages extends NLS {
public static String infoSwingToolkit;
public static String infoSwtToolkit;
public static String infoRcpToolkit;
+ public static String infoJavaFXToolkit;
public static String infoAutId;
public static String infoGenerateTechnicalComponentNames;
public static String infoKbLayout;
diff --git a/org.eclipse.jubula.app.autrun/src/org/eclipse/jubula/app/autrun/i18n/messages.properties b/org.eclipse.jubula.app.autrun/src/org/eclipse/jubula/app/autrun/i18n/messages.properties
index f2f43f459..55f2bbbdc 100644
--- a/org.eclipse.jubula.app.autrun/src/org/eclipse/jubula/app/autrun/i18n/messages.properties
+++ b/org.eclipse.jubula.app.autrun/src/org/eclipse/jubula/app/autrun/i18n/messages.properties
@@ -10,6 +10,7 @@ infoAutAgentPort = AUT Agent Port between 1024 and 65536 (default "{0}")
infoSwingToolkit = AUT uses Swing toolkit
infoSwtToolkit = AUT uses SWT toolkit
infoRcpToolkit = AUT uses RCP toolkit
+infoJavaFXToolkit= AUT uses JavaFX toolkit
infoAutId = AUT ID
infoGenerateTechnicalComponentNames = Generate Names for Technical Components (true / false)
infoKbLayout = Keyboard Layout

Back to the top