]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.ui/src/org/simantics/scl/ui/console/SCLScriptConsoleView.java
Made SCL Console font configurable through preferences
[simantics/platform.git] / bundles / org.simantics.scl.ui / src / org / simantics / scl / ui / console / SCLScriptConsoleView.java
index 8df0caa36a4a70da262e12c22d15131394fdad60..3bcd1c61bcf4ec74f7d79c0fe949b57f6fce797b 100644 (file)
@@ -14,21 +14,12 @@ import org.simantics.scl.runtime.reporting.SCLReportingHandler;
  */
 public class SCLScriptConsoleView extends ViewPart {
 
-    static class SCLOutputConsole extends SCLConsole {
-        public SCLOutputConsole(Composite parent, int style) {
-            super(parent, style, AbstractCommandConsole.HIDE_INPUT);
-        }
-
-        @Override
-        protected void addContributedListeners() {
-        }
-    }
-
-    SCLOutputConsole console;
+    private SCLConsole console;
 
     @Override
     public void createPartControl(Composite parent) {
-        this.console = new SCLOutputConsole(parent, SWT.NONE);
+        this.console = new SCLConsole(parent, SWT.NONE,
+                AbstractCommandConsole.HIDE_INPUT | SCLConsole.EXCLUDE_CONTRIBUTED_LISTENERS);
 
         IToolBarManager toolBarManager = getViewSite().getActionBars().getToolBarManager();
         Action interruptAction = ConsoleActions.createInterruptAction(console);