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() {