Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » direct process output to console view
direct process output to console view [message #534100] Mon, 17 May 2010 23:17 Go to next message
Eclipse UserFriend
It is a common question, but I can't work out after searching a long time on Google.

Here http:// wiki.eclipse.org/Eclipse_Plug-in_Development_FAQ#How_do_I_in voke_a_process_and_have_its_output_managed_by_the_.27Console .27_view.3F

In my ILaunchConfigurationDelegate implementation,

Process p = DebugPlugin.exec(..........................);
IProcess process = DebugPlugin.newProcess(launch, p, "My Process");



Now, how can I capture the output of Process p?
Any comments are appreciated.

And here http:// wiki.eclipse.org/FAQ_How_do_I_write_to_the_console_from_a_pl ug-in_%3F
says how to write to the console, But It seems a little different of capture output from another process

Anybody help me, it is my priority of work. Thanks, thanks, thanks!!

[Updated on: Mon, 17 May 2010 23:20] by Moderator

Re: direct process output to console view [message #534103 is a reply to message #534100] Tue, 18 May 2010 00:13 Go to previous message
Eclipse UserFriend
On Mon, 2010-05-17 at 23:17 -0400, James wrote:
> It is a common question, but I can't work out after searching a long time on Google.
>
> Here http://wiki.eclipse.org/Eclipse_Plug-in_Development_FAQ#How_ do_I_invoke_a_process_and_have_its_output_managed_by_the_.27 Console.27_view.3F
>
> In my ILaunchConfigurationDelegate implementation,
>
> Process p = DebugPlugin.exec(..........................);
> IProcess process = DebugPlugin.newProcess(launch, p, "My Process");
>
>
> Now, how can I capture the output of Process p?
> Any comments are appreciated.
>
> And here http://wiki.eclipse.org/FAQ_How_do_I_write_to_the_console_fr om_a_plug-in_%3F
> says how to write to the console, But It seems a little different of capture output from another process
>
> Anybody help me, it is my priority of work. Thanks, thanks, thanks!!

Have you looked at the Java Doc for the IProcess.getStreamsProxy method?
You can use the IStreamProxy to get access to the streams and their
data.
Previous Topic:Dyanmic AboutDialog text
Next Topic:Propertytester vs Sourceprovider
Goto Forum:
  


Current Time: Tue Jul 22 18:09:29 EDT 2025

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

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

Back to the top