Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Struckmann2015-08-21 13:22:10 +0000
committerSebastian Struckmann2015-08-25 14:14:56 +0000
commit9b55d0c43c664d5a9ca917613f9119bbc921e844 (patch)
tree7cd92bde842a942bd6e6d350eced6b43ee9dad5c /org.eclipse.jubula.rc.swt
parent9a6ff55691b2f279ddb5fb8d7de042195f8eaf58 (diff)
downloadorg.eclipse.jubula.core-9b55d0c43c664d5a9ca917613f9119bbc921e844.tar.gz
org.eclipse.jubula.core-9b55d0c43c664d5a9ca917613f9119bbc921e844.tar.xz
org.eclipse.jubula.core-9b55d0c43c664d5a9ca917613f9119bbc921e844.zip
Sprint task - SWT - check property at mouse position in tree
Diffstat (limited to 'org.eclipse.jubula.rc.swt')
-rw-r--r--org.eclipse.jubula.rc.swt/src/org/eclipse/jubula/rc/swt/tester/adapter/TreeAdapter.java11
1 files changed, 7 insertions, 4 deletions
diff --git a/org.eclipse.jubula.rc.swt/src/org/eclipse/jubula/rc/swt/tester/adapter/TreeAdapter.java b/org.eclipse.jubula.rc.swt/src/org/eclipse/jubula/rc/swt/tester/adapter/TreeAdapter.java
index 7da2cafb5..8419510a4 100644
--- a/org.eclipse.jubula.rc.swt/src/org/eclipse/jubula/rc/swt/tester/adapter/TreeAdapter.java
+++ b/org.eclipse.jubula.rc.swt/src/org/eclipse/jubula/rc/swt/tester/adapter/TreeAdapter.java
@@ -11,7 +11,6 @@
package org.eclipse.jubula.rc.swt.tester.adapter;
import org.eclipse.jubula.rc.common.driver.IRunnable;
-import org.eclipse.jubula.rc.common.exception.StepExecutionException;
import org.eclipse.jubula.rc.common.implclasses.tree.AbstractTreeOperationContext;
import org.eclipse.jubula.rc.common.tester.adapter.interfaces.ITreeComponent;
import org.eclipse.jubula.rc.swt.tester.tree.TreeOperationContext;
@@ -68,8 +67,12 @@ public class TreeAdapter extends ControlAdapter implements ITreeComponent {
/**
* {@inheritDoc}
*/
- public String getPropertyValueOfCell(String name, Object cell) {
- StepExecutionException.throwUnsupportedAction();
- return null;
+ public String getPropertyValueOfCell(final String name, final Object cell) {
+ return getEventThreadQueuer().invokeAndWait(
+ "getPropertyValueOfCell", new IRunnable<String>() { //$NON-NLS-1$
+ public String run() {
+ return getRobot().getPropertyValue(cell, name);
+ }
+ });
}
}

Back to the top