Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » getting an IConsole from a process
getting an IConsole from a process [message #288263] Thu, 14 July 2005 11:18 Go to next message
Eclipse UserFriend
Hi there,

how can I get an IConsole from a running process (I would like to get the
output of a shell script) and how can I attach my IConsoleLineTracker to
it?

- Gergely
Re: getting an IConsole from a process [message #288271 is a reply to message #288263] Thu, 14 July 2005 13:52 Go to previous messageGo to next message
Eclipse UserFriend
Gergely Buday wrote:
> Hi there,
> how can I get an IConsole from a running process (I would like to get
> the output of a shell script) and how can I attach my
> IConsoleLineTracker to it?
>
> - Gergely
>

You'll have to use the consoleLineTrackers extension point defined in
org.eclipse.debug.ui plugin. There is no way to add a line tracker to a
console directly.

You can also use ConsoleManager (org.eclipse.ui.console plugin) to find
the console you are interested in and add an IPatternMatchListener to it
if you are using Eclipse 3.1 and your console extends TextConsole.

HTH
Kevin
Re: getting an IConsole from a process [message #288383 is a reply to message #288271] Mon, 18 July 2005 07:10 Go to previous messageGo to next message
Eclipse UserFriend
Kevin Barnes wrote:

>> how can I get an IConsole from a running process (I would like to get
>> the output of a shell script) and how can I attach my
>> IConsoleLineTracker to it?

> You'll have to use the consoleLineTrackers extension point defined in
> org.eclipse.debug.ui plugin. There is no way to add a line tracker to a
> console directly.

I did create an extension to the consoleLineTrackers extension point -
what is not clear: how can I pass an IConsole to its init method? And, how
can I create an IConsole from a process (that is actually a shell script)

- Gergely
Re: getting an IConsole from a process [message #288423 is a reply to message #288383] Mon, 18 July 2005 16:44 Go to previous message
Eclipse UserFriend
>
> I did create an extension to the consoleLineTrackers extension point -
> what is not clear: how can I pass an IConsole to its init method?

You don't - the framework calls your line tracker's init method with an
IConsole.

>And, how can I create an IConsole from a process (that is actually a shell
>script)

You don't the framework creates the console for the process for you.

Darin
Previous Topic:Launching external tools programmatically (Eclipse 3.1)
Next Topic:How to open an external editor from eclipse.
Goto Forum:
  


Current Time: Fri May 02 14:12:22 EDT 2025

Powered by FUDForum. Page generated in 0.03629 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top