public class TerminalExecutionConsole extends java.lang.Object implements ConsoleView, ObservableConsoleView
Disposable.ParentObservableConsoleView.ChangeListenerCONSOLE_CONTENT_ID| Constructor and Description |
|---|
TerminalExecutionConsole(Project project,
ProcessHandler processHandler) |
| Modifier and Type | Method and Description |
|---|---|
void |
addChangeListener(ObservableConsoleView.ChangeListener listener,
Disposable parent) |
void |
addMessageFilter(Filter filter) |
void |
addMessageFilter(Project project,
Filter filter)
Deprecated.
use {
addMessageFilter(Filter)} instead |
void |
allowHeavyFilters() |
void |
attachToProcess(ProcessHandler processHandler) |
protected void |
attachToProcess(ProcessHandler processHandler,
boolean attachToProcessOutput) |
boolean |
canPause() |
void |
clear()
Clears history and screen buffers, positions the cursor at the top left corner.
|
AnAction [] |
createConsoleActions() |
AnAction [] |
detachConsoleActions(boolean prependSeparatorIfNonEmpty)
Deprecated.
already handled by
RunContentBuilder.createDescriptor() |
void |
dispose()
Usually not invoked directly, see class javadoc.
|
javax.swing.JComponent |
getComponent() |
int |
getContentSize() |
javax.swing.JComponent |
getPreferredFocusableComponent() |
boolean |
hasDeferredOutput() |
static boolean |
isAcceptable(ProcessHandler processHandler) |
boolean |
isOutputPaused() |
void |
performWhenNoDeferredOutput(java.lang.Runnable runnable) |
void |
print(java.lang.String text,
ConsoleViewContentType contentType) |
void |
printHyperlink(java.lang.String hyperlinkText,
HyperlinkInfo info) |
void |
scrollTo(int offset) |
void |
setAutoNewLineMode(boolean enabled)
Deprecated.
|
void |
setHelpId(java.lang.String helpId) |
void |
setOutputPaused(boolean value) |
TerminalExecutionConsole |
withEnterKeyDefaultCodeEnabled(boolean enterKeyDefaultCodeEnabled) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrequestScrollingToEndpublic TerminalExecutionConsole(Project project, ProcessHandler processHandler)
public void addChangeListener(ObservableConsoleView.ChangeListener listener, Disposable parent)
addChangeListener in interface ObservableConsoleView@Deprecated public void setAutoNewLineMode(boolean enabled)
withEnterKeyDefaultCodeEnabled(boolean)public TerminalExecutionConsole withEnterKeyDefaultCodeEnabled(boolean enterKeyDefaultCodeEnabled)
@Deprecated public void addMessageFilter(Project project, Filter filter)
addMessageFilter(Filter)} insteadpublic void print(java.lang.String text,
ConsoleViewContentType contentType)
print in interface ConsoleViewpublic void clear()
clear in interface ConsoleViewpublic void scrollTo(int offset)
scrollTo in interface ConsoleViewpublic void attachToProcess(ProcessHandler processHandler)
attachToProcess in interface ConsoleViewprotected final void attachToProcess(ProcessHandler processHandler, boolean attachToProcessOutput)
processHandler - ProcessHandler instance wrapping underlying PtyProcessattachToProcessOutput - true if process output should be printed in the console,
false if output printing is managed externally, e.g. by testing
console com.intellij.execution.testframework.ui.BaseTestsOutputConsoleViewpublic void setOutputPaused(boolean value)
setOutputPaused in interface ConsoleViewpublic boolean isOutputPaused()
isOutputPaused in interface ConsoleViewpublic boolean hasDeferredOutput()
hasDeferredOutput in interface ConsoleViewpublic void performWhenNoDeferredOutput(java.lang.Runnable runnable)
performWhenNoDeferredOutput in interface ConsoleViewpublic void setHelpId(java.lang.String helpId)
setHelpId in interface ConsoleViewpublic void addMessageFilter(Filter filter)
addMessageFilter in interface ConsoleViewpublic void printHyperlink(java.lang.String hyperlinkText,
HyperlinkInfo info)
printHyperlink in interface ConsoleViewpublic int getContentSize()
getContentSize in interface ConsoleViewpublic boolean canPause()
canPause in interface ConsoleView@Deprecated public AnAction [] detachConsoleActions(boolean prependSeparatorIfNonEmpty)
RunContentBuilder.createDescriptor()public AnAction [] createConsoleActions()
createConsoleActions in interface ConsoleViewpublic void allowHeavyFilters()
allowHeavyFilters in interface ConsoleViewpublic javax.swing.JComponent getComponent()
getComponent in interface ComponentContainerpublic javax.swing.JComponent getPreferredFocusableComponent()
getPreferredFocusableComponent in interface ComponentContainerpublic void dispose()
Disposabledispose in interface Disposablepublic static boolean isAcceptable(ProcessHandler processHandler)