Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Tiede2015-01-30 14:03:32 +0000
committerMarkus Tiede2015-01-30 14:03:32 +0000
commitb614757cf2739562c6383b451123d0130216f000 (patch)
treee75b2962bd0137ba92205f561bc84eb3be1a9cfe /org.eclipse.jubula.examples.api.adder.rcp
parent349e08a4390290e331cf2c2d609ee35c2fe663e5 (diff)
downloadorg.eclipse.jubula.core-b614757cf2739562c6383b451123d0130216f000.tar.gz
org.eclipse.jubula.core-b614757cf2739562c6383b451123d0130216f000.tar.xz
org.eclipse.jubula.core-b614757cf2739562c6383b451123d0130216f000.zip
Non-sprint task - enhanced API consumption - add generic type information to example project setups.
Diffstat (limited to 'org.eclipse.jubula.examples.api.adder.rcp')
-rw-r--r--org.eclipse.jubula.examples.api.adder.rcp/src/org/eclipse/jubula/examples/api/adder/rcp/SimpleAdder.java15
1 files changed, 9 insertions, 6 deletions
diff --git a/org.eclipse.jubula.examples.api.adder.rcp/src/org/eclipse/jubula/examples/api/adder/rcp/SimpleAdder.java b/org.eclipse.jubula.examples.api.adder.rcp/src/org/eclipse/jubula/examples/api/adder/rcp/SimpleAdder.java
index 818a5e889..0a387554d 100644
--- a/org.eclipse.jubula.examples.api.adder.rcp/src/org/eclipse/jubula/examples/api/adder/rcp/SimpleAdder.java
+++ b/org.eclipse.jubula.examples.api.adder.rcp/src/org/eclipse/jubula/examples/api/adder/rcp/SimpleAdder.java
@@ -25,12 +25,15 @@ import org.eclipse.jubula.client.exceptions.CheckFailedException;
import org.eclipse.jubula.client.launch.AUTConfiguration;
import org.eclipse.jubula.communication.CAP;
import org.eclipse.jubula.toolkit.base.components.GraphicsComponent;
-import org.eclipse.jubula.toolkit.base.components.TextComponent;
-import org.eclipse.jubula.toolkit.base.components.TextInputComponent;
+import org.eclipse.jubula.toolkit.concrete.components.TextComponent;
+import org.eclipse.jubula.toolkit.concrete.components.TextInputComponent;
import org.eclipse.jubula.toolkit.enums.ValueSets.InteractionMode;
import org.eclipse.jubula.toolkit.enums.ValueSets.Operator;
import org.eclipse.jubula.toolkit.rcp.config.RCPAUTConfiguration;
import org.eclipse.jubula.toolkit.swt.SwtComponents;
+import org.eclipse.jubula.toolkit.swt.components.Button;
+import org.eclipse.jubula.toolkit.swt.components.Label;
+import org.eclipse.jubula.toolkit.swt.components.Text;
import org.eclipse.jubula.tools.AUTIdentifier;
import org.eclipse.jubula.tools.ComponentIdentifier;
import org.junit.After;
@@ -68,10 +71,10 @@ public class SimpleAdder {
ObjectMapping om = MakeR.createObjectMapping(
input.openStream());
- ComponentIdentifier val1Id = om.get("value1"); //$NON-NLS-1$
- ComponentIdentifier val2Id = om.get("value2"); //$NON-NLS-1$
- ComponentIdentifier buttonId = om.get("equalsButton"); //$NON-NLS-1$
- ComponentIdentifier sumId = om.get("sum"); //$NON-NLS-1$
+ ComponentIdentifier<Text> val1Id = om.get("value1"); //$NON-NLS-1$
+ ComponentIdentifier<Text> val2Id = om.get("value2"); //$NON-NLS-1$
+ ComponentIdentifier<Button> buttonId = om.get("equalsButton"); //$NON-NLS-1$
+ ComponentIdentifier<Label> sumId = om.get("sum"); //$NON-NLS-1$
if (val1Id != null
&& val2Id != null

Back to the top