Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.jubula.rc.swing/src')
-rw-r--r--org.eclipse.jubula.rc.swing/src/org/eclipse/jubula/rc/swing/listener/CheckListener.java12
1 files changed, 5 insertions, 7 deletions
diff --git a/org.eclipse.jubula.rc.swing/src/org/eclipse/jubula/rc/swing/listener/CheckListener.java b/org.eclipse.jubula.rc.swing/src/org/eclipse/jubula/rc/swing/listener/CheckListener.java
index 75286aa5f..9f418a6af 100644
--- a/org.eclipse.jubula.rc.swing/src/org/eclipse/jubula/rc/swing/listener/CheckListener.java
+++ b/org.eclipse.jubula.rc.swing/src/org/eclipse/jubula/rc/swing/listener/CheckListener.java
@@ -178,10 +178,10 @@ public class CheckListener extends AbstractAutSwingEventListener {
*/
protected void openCheckDialog(IComponentIdentifier id,
Map<String, String> checkValues, String logName) {
+ AUTServer autsever = AUTServer.getInstance();
try {
// send a message with the identifier of the selected component
- AUTServer.getInstance().setMode(
- ChangeAUTModeMessage.TESTING);
+ autsever.setMode(ChangeAUTModeMessage.TESTING);
// set always to true, before showing observing
// dialog. Changing AUTServer mode sets it to false
m_active = true;
@@ -191,16 +191,14 @@ public class CheckListener extends AbstractAutSwingEventListener {
.findComponent(id.getSupportedClassName());
sendMessage(id, comp, checkValues, logName);
- AUTServer.getInstance()
- .setObservingDialogOpen(true);
+ autsever.setObservingDialogOpen(true);
// m_active could be set to false, by ending observation
// mode in client
if (m_active) {
- AUTServer.getInstance().setMode(
- ChangeAUTModeMessage.CHECK_MODE);
+ autsever.setMode(ChangeAUTModeMessage.CHECK_MODE);
}
} catch (CommunicationException nifce) {
- AUTServer.getInstance().setObservingDialogOpen(false);
+ autsever.setObservingDialogOpen(false);
log.error("communication exception: '" + nifce); //$NON-NLS-1$
}
}

Back to the top