public class TerminalExecutionConsole extends java.lang.Object implements ConsoleView, ObservableConsoleView
Disposable.Parent
ObservableConsoleView.ChangeListener
CONSOLE_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, wait
requestScrollingToEnd
public 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 ConsoleView
public void clear()
clear
in interface ConsoleView
public void scrollTo(int offset)
scrollTo
in interface ConsoleView
public void attachToProcess(ProcessHandler processHandler)
attachToProcess
in interface ConsoleView
protected 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.BaseTestsOutputConsoleView
public void setOutputPaused(boolean value)
setOutputPaused
in interface ConsoleView
public boolean isOutputPaused()
isOutputPaused
in interface ConsoleView
public boolean hasDeferredOutput()
hasDeferredOutput
in interface ConsoleView
public void performWhenNoDeferredOutput(java.lang.Runnable runnable)
performWhenNoDeferredOutput
in interface ConsoleView
public void setHelpId(java.lang.String helpId)
setHelpId
in interface ConsoleView
public void addMessageFilter(Filter filter)
addMessageFilter
in interface ConsoleView
public void printHyperlink(java.lang.String hyperlinkText, HyperlinkInfo info)
printHyperlink
in interface ConsoleView
public int getContentSize()
getContentSize
in interface ConsoleView
public boolean canPause()
canPause
in interface ConsoleView
@Deprecated public AnAction [] detachConsoleActions(boolean prependSeparatorIfNonEmpty)
RunContentBuilder.createDescriptor()
public AnAction [] createConsoleActions()
createConsoleActions
in interface ConsoleView
public void allowHeavyFilters()
allowHeavyFilters
in interface ConsoleView
public javax.swing.JComponent getComponent()
getComponent
in interface ComponentContainer
public javax.swing.JComponent getPreferredFocusableComponent()
getPreferredFocusableComponent
in interface ComponentContainer
public void dispose()
Disposable
dispose
in interface Disposable
public static boolean isAcceptable(ProcessHandler processHandler)