From: Marko Luukkainen Date: Mon, 7 Jun 2021 15:27:45 +0000 (+0300) Subject: Return SCLConsole from SCLScriptConsoleView X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F44%2F4744%2F1;p=simantics%2Fplatform.git Return SCLConsole from SCLScriptConsoleView gitlab #722 Change-Id: Iaaaf8c2084bfb5a1c7eb7339535a6b4a09010a32 --- 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); }