Search in sources :

Example 1 with JBTerminalWidget

use of com.intellij.terminal.JBTerminalWidget in project intellij-community by JetBrains.

the class JBTabbedTerminalWidget method createInnerTerminalWidget.

@Override
protected JediTermWidget createInnerTerminalWidget(TabbedSettingsProvider settingsProvider) {
    JBTerminalWidget widget = new JBTerminalWidget(myProject, mySettingsProvider, myParent);
    widget.addMessageFilter(myProject, new UrlFilter());
    convertActions(widget, widget.getActions());
    convertActions(widget.getTerminalPanel(), widget.getTerminalPanel().getActions(), new Predicate<KeyEvent>() {

        @Override
        public boolean apply(KeyEvent input) {
            widget.getTerminalPanel().handleKeyEvent(input);
            return true;
        }
    });
    return widget;
}
Also used : UrlFilter(com.intellij.execution.filters.UrlFilter) JBTerminalWidget(com.intellij.terminal.JBTerminalWidget)

Aggregations

UrlFilter (com.intellij.execution.filters.UrlFilter)1 JBTerminalWidget (com.intellij.terminal.JBTerminalWidget)1