Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarvin Mueller2015-07-23 10:46:12 +0000
committerMarvin Mueller2015-07-23 10:46:12 +0000
commit0d8fda1455d79a94e3853bd15a6eb7b2969cf7ea (patch)
tree9ec7039d4131f4beec25acf294c4e889fa58bde4 /org.eclipse.jubula.rc.swt
parentdf29129c14ad2f9c07ea6bb713a4670f5f66b3d4 (diff)
downloadorg.eclipse.jubula.core-0d8fda1455d79a94e3853bd15a6eb7b2969cf7ea.tar.gz
org.eclipse.jubula.core-0d8fda1455d79a94e3853bd15a6eb7b2969cf7ea.tar.xz
org.eclipse.jubula.core-0d8fda1455d79a94e3853bd15a6eb7b2969cf7ea.zip
Non-sprint task - clean up and extracting same method calls
Diffstat (limited to 'org.eclipse.jubula.rc.swt')
-rw-r--r--org.eclipse.jubula.rc.swt/src/org/eclipse/jubula/rc/swt/listener/CheckListener.java12
1 files changed, 5 insertions, 7 deletions
diff --git a/org.eclipse.jubula.rc.swt/src/org/eclipse/jubula/rc/swt/listener/CheckListener.java b/org.eclipse.jubula.rc.swt/src/org/eclipse/jubula/rc/swt/listener/CheckListener.java
index 94b0979c8..779bcf784 100644
--- a/org.eclipse.jubula.rc.swt/src/org/eclipse/jubula/rc/swt/listener/CheckListener.java
+++ b/org.eclipse.jubula.rc.swt/src/org/eclipse/jubula/rc/swt/listener/CheckListener.java
@@ -161,10 +161,10 @@ public class CheckListener extends AbstractAutSwtEventListener {
*/
protected void openCheckDialog(IComponentIdentifier id,
Map<String, String> checkValues, String logName) {
+ AUTServer autserver = AUTServer.getInstance();
try {
// send a message with the identifier of the selected component
- AUTServer.getInstance().setMode(
- ChangeAUTModeMessage.TESTING);
+ autserver.setMode(ChangeAUTModeMessage.TESTING);
// set always to true, before showing observing
// dialog. Changing AUTServer mode sets it to false
m_active = true;
@@ -174,16 +174,14 @@ public class CheckListener extends AbstractAutSwtEventListener {
.findComponent(id.getSupportedClassName());
sendMessage(id, comp, checkValues, logName);
- AUTServer.getInstance()
- .setObservingDialogOpen(true);
+ autserver.setObservingDialogOpen(true);
// m_active could be set to false, by ending observation
// mode in client
if (m_active) {
- AUTServer.getInstance().setMode(
- ChangeAUTModeMessage.CHECK_MODE);
+ autserver.setMode(ChangeAUTModeMessage.CHECK_MODE);
}
} catch (CommunicationException nifce) {
- AUTServer.getInstance().setObservingDialogOpen(false);
+ autserver.setObservingDialogOpen(false);
log.error("communication exception: '" + nifce); //$NON-NLS-1$
}
}

Back to the top