From 6570cdea204ffa0b6a4e16ac12778fab883b49ec Mon Sep 17 00:00:00 2001 From: Tuukka Lehtonen Date: Wed, 4 Oct 2017 23:45:16 +0300 Subject: [PATCH] Removed interrupt button from SCL Script Output console The button is useless since it can only support commands executed with the console's own CommandSession and in this case commands are always executed with other fresh CommandSessions. refs #7528 Change-Id: I75091b4664fc055880a6c66ae7ee0737915aa311 --- .../org/simantics/scl/ui/console/SCLScriptConsoleView.java | 4 ---- 1 file changed, 4 deletions(-) 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 3bcd1c61b..71801c690 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 @@ -22,19 +22,15 @@ public class SCLScriptConsoleView extends ViewPart { AbstractCommandConsole.HIDE_INPUT | SCLConsole.EXCLUDE_CONTRIBUTED_LISTENERS); IToolBarManager toolBarManager = getViewSite().getActionBars().getToolBarManager(); - Action interruptAction = ConsoleActions.createInterruptAction(console); Action clearAction = ConsoleActions.createClearAction(console); - toolBarManager.add(interruptAction); toolBarManager.add(clearAction); console.addListener(new SCLConsoleListener() { @Override public void startedExecution() { - interruptAction.setEnabled(true); } @Override public void finishedExecution() { - interruptAction.setEnabled(false); } @Override public void consoleIsNotEmptyAnymore() { -- 2.47.1