HLSShell now closes when the according LogicUICanvas is disposed
authorDaniel Kirschten <daniel.kirschten@gmx.de>
Wed, 25 Sep 2019 16:33:27 +0000 (18:33 +0200)
committerDaniel Kirschten <daniel.kirschten@gmx.de>
Wed, 25 Sep 2019 16:33:27 +0000 (18:33 +0200)
plugins/net.mograsim.logic.model/src/net/mograsim/logic/model/LogicUICanvas.java

index 78f3bdd..dda6753 100644 (file)
@@ -164,6 +164,7 @@ public class LogicUICanvas extends ZoomableCanvas
                get.addListener(SWT.Selection, getAction);
                stateIDText.addListener(SWT.DefaultSelection, getAction);
                debugShell.open();
+               addDisposeListener(e -> debugShell.dispose());
        }
 
        private void compsChanged(Consumer<? super ModelComponent> compAdded, Consumer<? super ModelComponent> compRemoved, ModelComponent c,