From: Tuukka Lehtonen Date: Wed, 4 Oct 2017 20:45:16 +0000 (+0300) Subject: Removed interrupt button from SCL Script Output console X-Git-Tag: v1.31.0~141 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=6570cdea204ffa0b6a4e16ac12778fab883b49ec;p=simantics%2Fplatform.git 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 --- 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() {