public class MessageConsole extends IOConsole
MessageConsoleStream
).
Text written to streams is buffered and processed in a Job by the
console's document partitioner.
Clients may instantiate this class.
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_TAB_SIZE
Deprecated.
|
static String |
P_FONT
Deprecated.
|
static String |
P_STREAM_COLOR
Deprecated.
|
static String |
P_TAB_SIZE
Deprecated.
|
Constructor and Description |
---|
MessageConsole(String name,
ImageDescriptor imageDescriptor)
Constructs a message console with the given name and image.
|
MessageConsole(String name,
ImageDescriptor imageDescriptor,
boolean autoLifecycle)
Constructs a message console.
|
MessageConsole(String name,
String consoleType,
ImageDescriptor imageDescriptor,
boolean autoLifecycle)
Constructs a message console with the given name, type, image, and lifecycle.
|
MessageConsole(String name,
String consoleType,
ImageDescriptor imageDescriptor,
String encoding,
boolean autoLifecycle)
Constructs a message console with the given name, type, image, encoding, and lifecycle specification.
|
Modifier and Type | Method and Description |
---|---|
protected void |
appendToDocument(String text,
MessageConsoleStream stream)
Deprecated.
since 3.1, this method should no longer be called, and has no effect.
Writing to a message console stream updates the document
|
IPageBookViewPage |
createPage(IConsoleView view)
Creates and returns a new page for this console.
|
IOConsoleInputStream |
getInputStream()
Returns the input stream connected to the keyboard.
|
MessageConsoleStream |
newMessageStream()
Returns a new message stream connected to this console.
|
clearConsole, dispose, getCharset, getEncoding, getHighWaterMark, getLowWaterMark, getPartitioner, newOutputStream, setInputStream, setWaterMarks
addHyperlink, addPatternMatchListener, getAttribute, getBackground, getConsoleWidth, getDocument, getFont, getHyperlink, getHyperlinks, getRegion, getSchedulingRule, getTabWidth, init, isConsoleAutoScrollLock, matcherFinished, partitionerFinished, removePatternMatchListener, setAttribute, setBackgrond, setBackground, setConsoleAutoScrollLock, setConsoleWidth, setFont, setTabWidth
activate, addPropertyChangeListener, destroy, firePropertyChange, getHelpContextId, getImageDescriptor, getName, getType, initialize, removePropertyChangeListener, setImageDescriptor, setName, setType
@Deprecated public static final String P_FONT
IConsoleConstants.P_FONT
@Deprecated public static final String P_STREAM_COLOR
IConsoleConstants.P_STREAM_COLOR
@Deprecated public static final String P_TAB_SIZE
IConsoleConstants.P_TAB_SIZE
@Deprecated public static final int DEFAULT_TAB_SIZE
IConsoleConstants.DEFAULT_TAB_SIZE
public MessageConsole(String name, ImageDescriptor imageDescriptor)
name
- console nameimageDescriptor
- console image descriptor or null
public MessageConsole(String name, ImageDescriptor imageDescriptor, boolean autoLifecycle)
name
- console nameimageDescriptor
- console image descriptor or null
autoLifecycle
- whether lifecycle methods should be called automatically
when added and removed from the console managerpublic MessageConsole(String name, String consoleType, ImageDescriptor imageDescriptor, boolean autoLifecycle)
name
- console nameconsoleType
- console type identifier or null
imageDescriptor
- console image descriptor or null
autoLifecycle
- whether lifecycle methods should be called automatically
when added and removed from the console managerpublic MessageConsole(String name, String consoleType, ImageDescriptor imageDescriptor, String encoding, boolean autoLifecycle)
name
- the name to display for this consoleconsoleType
- console type identifier or null
imageDescriptor
- console image descriptor or null
encoding
- the encoding that should be used to render the text, or null
if the system default encoding should be usedautoLifecycle
- whether lifecycle methods should be called automatically
when added and removed from the console managerpublic MessageConsoleStream newMessageStream()
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.
public IPageBookViewPage createPage(IConsoleView view)
IConsole
createPage
in interface IConsole
createPage
in class IOConsole
view
- the view in which the page is to be createdpublic IOConsoleInputStream getInputStream()
IOConsole
getInputStream
in class IOConsole
@Deprecated protected void appendToDocument(String text, MessageConsoleStream stream)
text
- messagestream
- stream the message belongs to
Copyright (c) 2000, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.