Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Tiede2015-01-27 14:59:43 +0000
committerMarkus Tiede2015-01-27 15:00:01 +0000
commit4139198b74fb0114bef3738b4ff2391b8dd7b12c (patch)
tree50db5482b04dfcd5b863079d6abb7006b0e1c022 /org.eclipse.jubula.rc.swt
parentdfc64400d8672a3ff40ac15110202d371e3b7441 (diff)
downloadorg.eclipse.jubula.core-4139198b74fb0114bef3738b4ff2391b8dd7b12c.tar.gz
org.eclipse.jubula.core-4139198b74fb0114bef3738b4ff2391b8dd7b12c.tar.xz
org.eclipse.jubula.core-4139198b74fb0114bef3738b4ff2391b8dd7b12c.zip
Sprint task - preparation for http://eclip.se/457600 - part 4: avoid (unnecessary) usage on RC-side as it might be causing issues like http://bugzilla.bredex.de/1625
Diffstat (limited to 'org.eclipse.jubula.rc.swt')
-rw-r--r--org.eclipse.jubula.rc.swt/src/org/eclipse/jubula/rc/swt/driver/RobotEventConfirmerSwtImpl.java3
-rw-r--r--org.eclipse.jubula.rc.swt/src/org/eclipse/jubula/rc/swt/tester/util/SimulatedTooltip.java5
2 files changed, 3 insertions, 5 deletions
diff --git a/org.eclipse.jubula.rc.swt/src/org/eclipse/jubula/rc/swt/driver/RobotEventConfirmerSwtImpl.java b/org.eclipse.jubula.rc.swt/src/org/eclipse/jubula/rc/swt/driver/RobotEventConfirmerSwtImpl.java
index 3445fa088..edd4e427e 100644
--- a/org.eclipse.jubula.rc.swt/src/org/eclipse/jubula/rc/swt/driver/RobotEventConfirmerSwtImpl.java
+++ b/org.eclipse.jubula.rc.swt/src/org/eclipse/jubula/rc/swt/driver/RobotEventConfirmerSwtImpl.java
@@ -28,7 +28,6 @@ import org.eclipse.jubula.rc.swt.SwtAUTServer;
import org.eclipse.jubula.rc.swt.utils.SwtUtils;
import org.eclipse.jubula.tools.internal.objects.event.EventFactory;
import org.eclipse.jubula.tools.internal.objects.event.TestErrorEvent;
-import org.eclipse.jubula.tools.internal.utils.IsAliveThread;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Event;
@@ -397,7 +396,7 @@ class RobotEventConfirmerSwtImpl implements IRobotEventConfirmer,
return;
}
// !! Never block in the GUI thread, it may cause deadlocks!
- new IsAliveThread(new Runnable() {
+ new Thread(new Runnable() {
public void run() {
try {
addEventToList(event);
diff --git a/org.eclipse.jubula.rc.swt/src/org/eclipse/jubula/rc/swt/tester/util/SimulatedTooltip.java b/org.eclipse.jubula.rc.swt/src/org/eclipse/jubula/rc/swt/tester/util/SimulatedTooltip.java
index bc1b3aa76..e7e785f70 100644
--- a/org.eclipse.jubula.rc.swt/src/org/eclipse/jubula/rc/swt/tester/util/SimulatedTooltip.java
+++ b/org.eclipse.jubula.rc.swt/src/org/eclipse/jubula/rc/swt/tester/util/SimulatedTooltip.java
@@ -14,7 +14,6 @@ import org.eclipse.jubula.rc.common.driver.IEventThreadQueuer;
import org.eclipse.jubula.rc.common.driver.IRunnable;
import org.eclipse.jubula.rc.common.logger.AutServerLogger;
import org.eclipse.jubula.rc.swt.driver.EventThreadQueuerSwtImpl;
-import org.eclipse.jubula.tools.internal.utils.IsAliveThread;
import org.eclipse.jubula.tools.internal.utils.StringParsing;
import org.eclipse.jubula.tools.internal.utils.TimeUtil;
import org.eclipse.swt.SWT;
@@ -35,7 +34,7 @@ import org.eclipse.swt.widgets.Shell;
* @author BREDEX GmbH
* @created Jul 24, 2007
*/
-public class SimulatedTooltip extends IsAliveThread {
+public class SimulatedTooltip extends Thread {
/** the logger */
private static AutServerLogger log =
@@ -253,7 +252,7 @@ public class SimulatedTooltip extends IsAliveThread {
bar.setMaximum(m_timeout);
final int maximum = bar.getMaximum();
- Thread progressBarThread = new IsAliveThread() {
+ Thread progressBarThread = new Thread() {
public void run() {
int refreshIntervall = 25;
// Calculate how often an update has to be done

Back to the top