|
@@ -34,14 +34,12 @@ public class BlockingActionFactory {
|
34
|
34
|
RunningAction action = actions.get(i);
|
35
|
35
|
// If action is running, ask user...
|
36
|
36
|
if (action.isRunning()) {
|
37
|
|
- System.out.println("Action " + action.getInformation() + " is running... ");
|
38
|
|
- if (JOptionPane.showConfirmDialog(parentComponent, "Action {" + action.getInformation()
|
|
37
|
+ if (JOptionPane.showConfirmDialog(parentComponent, "Action {"
|
|
38
|
+ + action.getInformation()
|
39
|
39
|
+ "} is running, do you want to stop it?") == JOptionPane.OK_OPTION) {
|
40
|
|
- System.out.println("Action " + action.getInformation() + " has been interrupted.");
|
41
|
40
|
action.interrupt();
|
42
|
41
|
}
|
43
|
42
|
else {
|
44
|
|
- System.out.println("Action " + action.getInformation() + " not interrupted... ");
|
45
|
43
|
accepted = false;
|
46
|
44
|
}
|
47
|
45
|
}
|