]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
Return SCLConsole from SCLScriptConsoleView 44/4744/1
authorMarko Luukkainen <marko.luukkainen@semantum.fi>
Mon, 7 Jun 2021 15:27:45 +0000 (18:27 +0300)
committerMarko Luukkainen <marko.luukkainen@semantum.fi>
Mon, 7 Jun 2021 15:27:45 +0000 (18:27 +0300)
gitlab #722

Change-Id: Iaaaf8c2084bfb5a1c7eb7339535a6b4a09010a32

bundles/org.simantics.scl.ui/src/org/simantics/scl/ui/console/SCLScriptConsoleView.java

index cef58bb3d5c333053d531bf3cfc55d84963fe0b5..4f86613adf88a10dabe6fd36ee112b7c892d5dd4 100644 (file)
@@ -51,6 +51,8 @@ public class SCLScriptConsoleView extends ViewPart {
     public <T> T getAdapter(Class<T> adapter) {
         if (adapter == SCLReportingHandler.class)
             return (T) console.getHandler();
+        if (adapter == SCLConsole.class)
+            return (T) console;
         return super.getAdapter(adapter);
     }