Skip to content
Snippets Groups Projects
Commit 43a21841 authored by Michael Leuschel's avatar Michael Leuschel
Browse files

fix showResult in AssertionDynCheckFinishedListener

parent f90ea63f
No related branches found
No related tags found
No related merge requests found
...@@ -28,7 +28,7 @@ public class AssertionCheckHandler extends AbstractHandler { ...@@ -28,7 +28,7 @@ public class AssertionCheckHandler extends AbstractHandler {
if (Animator.getAnimator().isMachineLoaded()) { if (Animator.getAnimator().isMachineLoaded()) {
performAssertionCheck(shell); performAssertionCheck(shell);
} else { } else {
Logger.notifyUser("No ProB animation running. This is a bug. Please submit a report. Error in declaraion for class DeadlockCheckHandler"); Logger.notifyUser("No ProB animation running. This is a bug. Please submit a report. Error in declaraion for class AssertionCheckHandler");
} }
return null; return null;
} }
......
...@@ -9,8 +9,8 @@ import org.eclipse.swt.widgets.Shell; ...@@ -9,8 +9,8 @@ import org.eclipse.swt.widgets.Shell;
import de.prob.core.Animator; import de.prob.core.Animator;
import de.prob.core.ProBJobFinishedListener; import de.prob.core.ProBJobFinishedListener;
import de.prob.core.command.ConstraintBasedAssertionCheckCommand; import de.prob.core.command.ConstraintBasedDynamicAssertionCheckCommand;
import de.prob.core.command.ConstraintBasedAssertionCheckCommand.ResultType; import de.prob.core.command.ConstraintBasedDynamicAssertionCheckCommand.ResultType;
import de.prob.core.command.ExecuteOperationCommand; import de.prob.core.command.ExecuteOperationCommand;
import de.prob.core.command.IComposableCommand; import de.prob.core.command.IComposableCommand;
import de.prob.core.domainobjects.Operation; import de.prob.core.domainobjects.Operation;
...@@ -35,7 +35,7 @@ public class AssertionDynCheckFinishedListener extends ProBJobFinishedListener { ...@@ -35,7 +35,7 @@ public class AssertionDynCheckFinishedListener extends ProBJobFinishedListener {
@Override @Override
protected void showResult(final IComposableCommand cmd, protected void showResult(final IComposableCommand cmd,
final Animator animator) { final Animator animator) {
final ConstraintBasedAssertionCheckCommand command = (ConstraintBasedAssertionCheckCommand) cmd; final ConstraintBasedDynamicAssertionCheckCommand command = (ConstraintBasedDynamicAssertionCheckCommand) cmd;
final ResultType result = command.getResult(); final ResultType result = command.getResult();
final int dialogType; final int dialogType;
final String dialogTitle; final String dialogTitle;
...@@ -89,7 +89,7 @@ public class AssertionDynCheckFinishedListener extends ProBJobFinishedListener { ...@@ -89,7 +89,7 @@ public class AssertionDynCheckFinishedListener extends ProBJobFinishedListener {
} }
private void displayCounterExample( private void displayCounterExample(
final ConstraintBasedAssertionCheckCommand command, final ConstraintBasedDynamicAssertionCheckCommand command,
final Animator animator) { final Animator animator) {
final Operation operation = command.getCounterExampleOperation(); final Operation operation = command.getCounterExampleOperation();
try { try {
......
...@@ -13,7 +13,6 @@ import org.eclipse.ui.handlers.HandlerUtil; ...@@ -13,7 +13,6 @@ import org.eclipse.ui.handlers.HandlerUtil;
import de.prob.core.Animator; import de.prob.core.Animator;
import de.prob.core.LanguageDependendAnimationPart; import de.prob.core.LanguageDependendAnimationPart;
import de.prob.core.ProBCommandJob; import de.prob.core.ProBCommandJob;
import de.prob.core.command.ConstraintBasedAssertionCheckCommand;
import de.prob.core.command.ConstraintBasedDynamicAssertionCheckCommand; import de.prob.core.command.ConstraintBasedDynamicAssertionCheckCommand;
import de.prob.logging.Logger; import de.prob.logging.Logger;
...@@ -29,7 +28,7 @@ public class AssertionDynCheckHandler extends AbstractHandler { ...@@ -29,7 +28,7 @@ public class AssertionDynCheckHandler extends AbstractHandler {
if (Animator.getAnimator().isMachineLoaded()) { if (Animator.getAnimator().isMachineLoaded()) {
performAssertionCheck(shell); performAssertionCheck(shell);
} else { } else {
Logger.notifyUser("No ProB animation running. This is a bug. Please submit a report. Error in declaraion for class DeadlockCheckHandler"); Logger.notifyUser("No ProB animation running. This is a bug. Please submit a report. Error in declaraion for class AssertionDynCheckHandler");
} }
return null; return null;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment