Commit 47cf84ca authored by Alexander Weigl's avatar Alexander Weigl

add flags

parent e86b6f30
......@@ -21,9 +21,7 @@ import java.util.Map;
@Setter
public class InteractiveModeController {
private static final Logger LOGGER = LogManager.getLogger(InteractiveModeController.class);
private final Map<Node, Statements> cases = new HashMap<>();
private BooleanProperty activated = new SimpleBooleanProperty();
......@@ -33,12 +31,14 @@ public class InteractiveModeController {
public void start() {
Events.register(this);
cases.clear();
activated.set(true);
}
public void stop() {
Events.unregister(this);
String c = getCasesAsString();
Events.fire(new Events.InsertAtTheEndOfMainScript(c));
activated.set(false);
}
@Subscribe
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment