From b04c72652ff4647d789afb76fa850edeb75c72eb Mon Sep 17 00:00:00 2001 From: Marko Luukkainen Date: Mon, 7 Jun 2021 18:27:45 +0300 Subject: [PATCH] Return SCLConsole from SCLScriptConsoleView gitlab #722 Change-Id: Iaaaf8c2084bfb5a1c7eb7339535a6b4a09010a32 --- .../src/org/simantics/scl/ui/console/SCLScriptConsoleView.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bundles/org.simantics.scl.ui/src/org/simantics/scl/ui/console/SCLScriptConsoleView.java b/bundles/org.simantics.scl.ui/src/org/simantics/scl/ui/console/SCLScriptConsoleView.java index cef58bb3d..4f86613ad 100644 --- a/bundles/org.simantics.scl.ui/src/org/simantics/scl/ui/console/SCLScriptConsoleView.java +++ b/bundles/org.simantics.scl.ui/src/org/simantics/scl/ui/console/SCLScriptConsoleView.java @@ -51,6 +51,8 @@ public class SCLScriptConsoleView extends ViewPart { public T getAdapter(Class adapter) { if (adapter == SCLReportingHandler.class) return (T) console.getHandler(); + if (adapter == SCLConsole.class) + return (T) console; return super.getAdapter(adapter); } -- 2.47.1