|
Eclipse Platform 2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A console that displays output and writes input to a process. Implementors of
IConsoleColorProvider
should connect streams to a console
document when connected to.
Clients are not intended to implement this interface.
IConsoleColorProvider
Method Summary | |
void |
addLink(IConsoleHyperlink link,
int offset,
int length)
Adds the given hyperlink to this console. |
void |
connect(IStreamMonitor streamMonitor,
String streamIdentifer)
Connects this console to the given stream monitor, uniquely identified by the given identifier. |
void |
connect(IStreamsProxy streamsProxy)
Connects this console to the given streams proxy. |
IDocument |
getDocument()
Returns the document associated with this console. |
IProcess |
getProcess()
Returns the process associted with this console. |
IRegion |
getRegion(IConsoleHyperlink link)
Returns the region of text associated with the given hyperlink, or null if the given hyperlink is not contained in this
console. |
Method Detail |
public void connect(IStreamsProxy streamsProxy)
streamsProxy
- public void connect(IStreamMonitor streamMonitor, String streamIdentifer)
streamMonitor
- streamIdentifer
- public void addLink(IConsoleHyperlink link, int offset, int length)
If the link's region (offset/length) is within the console's document current bounds, it is added immediately. Otherwise, the link is added when the console's document grows to contain the link's region.
link
- the hyperlink to addoffset
- the character offset within the console document where the
text assoicated with the hyperlink beginslength
- the length of the associated hyperlink textpublic IRegion getRegion(IConsoleHyperlink link)
null
if the given hyperlink is not contained in this
console.link
- a console hyperlinknull
public IDocument getDocument()
public IProcess getProcess()
|
Eclipse Platform 2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |