]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
Removed interrupt button from SCL Script Output console 78/1078/1
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Wed, 4 Oct 2017 20:45:16 +0000 (23:45 +0300)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Wed, 4 Oct 2017 20:45:16 +0000 (23:45 +0300)
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

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

index 3bcd1c61bcf4ec74f7d79c0fe949b57f6fce797b..71801c69025d8b150985bff4a9914fae000b863b 100644 (file)
@@ -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() {