From: Daniel Kirschten Date: Wed, 25 Sep 2019 16:33:27 +0000 (+0200) Subject: HLSShell now closes when the according LogicUICanvas is disposed X-Git-Url: https://mograsim.net/gitweb/?a=commitdiff_plain;h=bd3a51ec516e3fdb040abcbfea7a8e7c240596be;p=Mograsim.git HLSShell now closes when the according LogicUICanvas is disposed --- diff --git a/plugins/net.mograsim.logic.model/src/net/mograsim/logic/model/LogicUICanvas.java b/plugins/net.mograsim.logic.model/src/net/mograsim/logic/model/LogicUICanvas.java index 78f3bdda..dda67538 100644 --- a/plugins/net.mograsim.logic.model/src/net/mograsim/logic/model/LogicUICanvas.java +++ b/plugins/net.mograsim.logic.model/src/net/mograsim/logic/model/LogicUICanvas.java @@ -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 compAdded, Consumer compRemoved, ModelComponent c,