public class MessageConsoleStream extends IOConsoleOutputStream
Instances are created via a MessageConsole
.
Clients should avoid writing large amounts of output to this stream in the UI thread. The console needs to process the output in the UI thread and if the client hogs the UI thread writing output to the console, the console will not be able to process the output.
Since 3.1, this class extends IOConsoleOutputStream
.
Constructor and Description |
---|
MessageConsoleStream(MessageConsole console)
Constructs a new stream connected to the given console.
|
Modifier and Type | Method and Description |
---|---|
MessageConsole |
getConsole()
Returns the console this stream is connected to.
|
void |
print(String message)
Appends the specified message to this stream.
|
void |
println()
Appends a line separator string to this stream.
|
void |
println(String message)
Appends the specified message to this stream, followed by a line
separator string.
|
close, flush, getColor, getFontStyle, isActivateOnWrite, isClosed, setActivateOnWrite, setColor, setEncoding, setFontStyle, write, write, write, write
public MessageConsoleStream(MessageConsole console)
console
- the console to write messages topublic void print(String message)
message
- message to appendpublic void println()
public void println(String message)
message
- message to printpublic MessageConsole getConsole()
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.