From 2547dad9382a16eaec610ec0be75534db92bd96c Mon Sep 17 00:00:00 2001 From: Stephane Dallongeville <stephane@outlook.com> Date: Thu, 13 Aug 2020 15:37:18 +0200 Subject: [PATCH] modified Workflow constructor to add topLevel information --- src/main/java/plugins/adufour/protocols/Protocols.java | 2 +- src/main/java/plugins/adufour/protocols/gui/ProtocolPanel.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/plugins/adufour/protocols/Protocols.java b/src/main/java/plugins/adufour/protocols/Protocols.java index 4abbff1..7d9cd6a 100644 --- a/src/main/java/plugins/adufour/protocols/Protocols.java +++ b/src/main/java/plugins/adufour/protocols/Protocols.java @@ -362,7 +362,7 @@ public class Protocols extends PluginActionable throw new IllegalArgumentException(protocolFile + " is not a valid protocol file"); System.out.println("Loading workflow..."); - WorkFlow workFlow = new WorkFlow(); + WorkFlow workFlow = new WorkFlow(true); BlocksML.getInstance().loadWorkFlow(xml, workFlow); workFlow.run(); diff --git a/src/main/java/plugins/adufour/protocols/gui/ProtocolPanel.java b/src/main/java/plugins/adufour/protocols/gui/ProtocolPanel.java index 0aa76de..5df0e47 100644 --- a/src/main/java/plugins/adufour/protocols/gui/ProtocolPanel.java +++ b/src/main/java/plugins/adufour/protocols/gui/ProtocolPanel.java @@ -80,7 +80,7 @@ public class ProtocolPanel extends JPanel implements WorkFlowListener, PropertyC public ProtocolPanel(MainFrame frame) { - this(null, new WorkFlow(), frame); + this(null, new WorkFlow(true), frame); } private ProtocolPanel(File file, final WorkFlow workFlow, MainFrame frame) -- GitLab