Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » console input
console input [message #102659] Tue, 29 July 2003 17:07 Go to next message
Eclipse UserFriend
Is there public API to change the input source of the console view to
another (previously launched) IProcess?

Thanks,
Curt
Re: console input [message #103201 is a reply to message #102659] Wed, 30 July 2003 09:45 Go to previous messageGo to next message
Eclipse UserFriend
There is no existing support for this. However, since each IProcess has an
IStreamsProxy, you may be able to connect the output of one process to the
input of another with some sort of pipe. That is, set up your own listener
to the output of one process, and re-direct it to the other process's input.
You will need to experiment - there may be contention with the console that
is also reading (stealing) the output from the process.

Darin

"Curtis d'Entremont" <cdentrem@ca.ibm.com> wrote in message
news:bg6nlv$6ue$1@eclipse.org...
> Is there public API to change the input source of the console view to
> another (previously launched) IProcess?
>
> Thanks,
> Curt
>
>
Re: console input [message #103215 is a reply to message #103201] Wed, 30 July 2003 09:54 Go to previous messageGo to next message
Eclipse UserFriend
Ok thanks, I'll see how it goes.

Curt

"Darin Wright" <Darin_Wright@ca.ibm.com> wrote in message
news:bg8i4i$vti$1@eclipse.org...
> There is no existing support for this. However, since each IProcess has an
> IStreamsProxy, you may be able to connect the output of one process to the
> input of another with some sort of pipe. That is, set up your own listener
> to the output of one process, and re-direct it to the other process's
input.
> You will need to experiment - there may be contention with the console
that
> is also reading (stealing) the output from the process.
>
> Darin
>
> "Curtis d'Entremont" <cdentrem@ca.ibm.com> wrote in message
> news:bg6nlv$6ue$1@eclipse.org...
> > Is there public API to change the input source of the console view to
> > another (previously launched) IProcess?
> >
> > Thanks,
> > Curt
> >
> >
>
>
Re: console input [message #103359 is a reply to message #103201] Wed, 30 July 2003 13:02 Go to previous messageGo to next message
Eclipse UserFriend
I just realized that redirecting the streams isn't going to be enough.
There's also the problem of the console view's title, the stop button state,
and process list button. I've thought about doing the same at the IProcess
level, that is, have a single IProcess that changes all its attributes when
the user switches, but this would become a big ugly workaround. What I'm
looking for is the same functionality as the debug view.. when you select a
launch/process, the console displays the process output. We want the same to
happen in our view.

How much time/effort would it involve on your part to add API for this?

Thanks,
Curt

"Darin Wright" <Darin_Wright@ca.ibm.com> wrote in message
news:bg8i4i$vti$1@eclipse.org...
> There is no existing support for this. However, since each IProcess has an
> IStreamsProxy, you may be able to connect the output of one process to the
> input of another with some sort of pipe. That is, set up your own listener
> to the output of one process, and re-direct it to the other process's
input.
> You will need to experiment - there may be contention with the console
that
> is also reading (stealing) the output from the process.
>
> Darin
>
> "Curtis d'Entremont" <cdentrem@ca.ibm.com> wrote in message
> news:bg6nlv$6ue$1@eclipse.org...
> > Is there public API to change the input source of the console view to
> > another (previously launched) IProcess?
> >
> > Thanks,
> > Curt
> >
> >
>
>
Re: console input [message #104250 is a reply to message #103359] Thu, 31 July 2003 14:03 Go to previous messageGo to next message
Eclipse UserFriend
I think I misunderstood your question - I thought you wanted one process
(output) to write to another process (input).

The console view automatically changes to display the output of a selected
process (when a process/launch/debug target is selected). Do you need API to
do that?

Darin

"Curtis d'Entremont" <cdentrem@ca.ibm.com> wrote in message
news:bg8tm6$ffl$1@eclipse.org...
>
> I just realized that redirecting the streams isn't going to be enough.
> There's also the problem of the console view's title, the stop button
state,
> and process list button. I've thought about doing the same at the IProcess
> level, that is, have a single IProcess that changes all its attributes
when
> the user switches, but this would become a big ugly workaround. What I'm
> looking for is the same functionality as the debug view.. when you select
a
> launch/process, the console displays the process output. We want the same
to
> happen in our view.
>
> How much time/effort would it involve on your part to add API for this?
>
> Thanks,
> Curt
>
> "Darin Wright" <Darin_Wright@ca.ibm.com> wrote in message
> news:bg8i4i$vti$1@eclipse.org...
> > There is no existing support for this. However, since each IProcess has
an
> > IStreamsProxy, you may be able to connect the output of one process to
the
> > input of another with some sort of pipe. That is, set up your own
listener
> > to the output of one process, and re-direct it to the other process's
> input.
> > You will need to experiment - there may be contention with the console
> that
> > is also reading (stealing) the output from the process.
> >
> > Darin
> >
> > "Curtis d'Entremont" <cdentrem@ca.ibm.com> wrote in message
> > news:bg6nlv$6ue$1@eclipse.org...
> > > Is there public API to change the input source of the console view to
> > > another (previously launched) IProcess?
> > >
> > > Thanks,
> > > Curt
> > >
> > >
> >
> >
>
>
Re: console input [message #104267 is a reply to message #103359] Thu, 31 July 2003 14:08 Go to previous messageGo to next message
Eclipse UserFriend
Note that in 3.0, we are adding enhanced console support - a page book view
of consoles. The consoles may be from other sources than the debugger or
system processes. Clients can implement their own console. In this new
world, there will be API for displaying a specific console.
Re: console input [message #104276 is a reply to message #104250] Thu, 31 July 2003 14:13 Go to previous messageGo to next message
Eclipse UserFriend
Yes, I need API to specify which process is selected. This would be called
each time the user selects a different process or remote agent in our view,
and would in turn automatically update the console with the output from that
process.

Curt

"Darin Wright" <Darin_Wright@ca.ibm.com> wrote in message
news:bgblko$ene$1@eclipse.org...
> I think I misunderstood your question - I thought you wanted one process
> (output) to write to another process (input).
>
> The console view automatically changes to display the output of a selected
> process (when a process/launch/debug target is selected). Do you need API
to
> do that?
>
> Darin
>
> "Curtis d'Entremont" <cdentrem@ca.ibm.com> wrote in message
> news:bg8tm6$ffl$1@eclipse.org...
> >
> > I just realized that redirecting the streams isn't going to be enough.
> > There's also the problem of the console view's title, the stop button
> state,
> > and process list button. I've thought about doing the same at the
IProcess
> > level, that is, have a single IProcess that changes all its attributes
> when
> > the user switches, but this would become a big ugly workaround. What I'm
> > looking for is the same functionality as the debug view.. when you
select
> a
> > launch/process, the console displays the process output. We want the
same
> to
> > happen in our view.
> >
> > How much time/effort would it involve on your part to add API for this?
> >
> > Thanks,
> > Curt
> >
> > "Darin Wright" <Darin_Wright@ca.ibm.com> wrote in message
> > news:bg8i4i$vti$1@eclipse.org...
> > > There is no existing support for this. However, since each IProcess
has
> an
> > > IStreamsProxy, you may be able to connect the output of one process to
> the
> > > input of another with some sort of pipe. That is, set up your own
> listener
> > > to the output of one process, and re-direct it to the other process's
> > input.
> > > You will need to experiment - there may be contention with the console
> > that
> > > is also reading (stealing) the output from the process.
> > >
> > > Darin
> > >
> > > "Curtis d'Entremont" <cdentrem@ca.ibm.com> wrote in message
> > > news:bg6nlv$6ue$1@eclipse.org...
> > > > Is there public API to change the input source of the console view
to
> > > > another (previously launched) IProcess?
> > > >
> > > > Thanks,
> > > > Curt
> > > >
> > > >
> > >
> > >
> >
> >
>
>
Re: console input [message #104282 is a reply to message #104276] Thu, 31 July 2003 14:17 Go to previous message
Eclipse UserFriend
OK - this API does not yet exist (but see my next post). It will exist in
3.0 (hopefully in M3).

If you are using the latest integration build, you will be able to see
what's coming by looking at IConsoleView, IConsoleManager, and IConsole.

Darin

"Curtis d'Entremont" <cdentrem@ca.ibm.com> wrote in message
news:bgbm71$f9j$1@eclipse.org...
> Yes, I need API to specify which process is selected. This would be called
> each time the user selects a different process or remote agent in our
view,
> and would in turn automatically update the console with the output from
that
> process.
>
> Curt
>
> "Darin Wright" <Darin_Wright@ca.ibm.com> wrote in message
> news:bgblko$ene$1@eclipse.org...
> > I think I misunderstood your question - I thought you wanted one process
> > (output) to write to another process (input).
> >
> > The console view automatically changes to display the output of a
selected
> > process (when a process/launch/debug target is selected). Do you need
API
> to
> > do that?
> >
> > Darin
> >
> > "Curtis d'Entremont" <cdentrem@ca.ibm.com> wrote in message
> > news:bg8tm6$ffl$1@eclipse.org...
> > >
> > > I just realized that redirecting the streams isn't going to be enough.
> > > There's also the problem of the console view's title, the stop button
> > state,
> > > and process list button. I've thought about doing the same at the
> IProcess
> > > level, that is, have a single IProcess that changes all its attributes
> > when
> > > the user switches, but this would become a big ugly workaround. What
I'm
> > > looking for is the same functionality as the debug view.. when you
> select
> > a
> > > launch/process, the console displays the process output. We want the
> same
> > to
> > > happen in our view.
> > >
> > > How much time/effort would it involve on your part to add API for
this?
> > >
> > > Thanks,
> > > Curt
> > >
> > > "Darin Wright" <Darin_Wright@ca.ibm.com> wrote in message
> > > news:bg8i4i$vti$1@eclipse.org...
> > > > There is no existing support for this. However, since each IProcess
> has
> > an
> > > > IStreamsProxy, you may be able to connect the output of one process
to
> > the
> > > > input of another with some sort of pipe. That is, set up your own
> > listener
> > > > to the output of one process, and re-direct it to the other
process's
> > > input.
> > > > You will need to experiment - there may be contention with the
console
> > > that
> > > > is also reading (stealing) the output from the process.
> > > >
> > > > Darin
> > > >
> > > > "Curtis d'Entremont" <cdentrem@ca.ibm.com> wrote in message
> > > > news:bg6nlv$6ue$1@eclipse.org...
> > > > > Is there public API to change the input source of the console view
> to
> > > > > another (previously launched) IProcess?
> > > > >
> > > > > Thanks,
> > > > > Curt
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>
Previous Topic:saveState() method not being called?
Next Topic:How to launch a file with options in Eclipse?
Goto Forum:
  


Current Time: Tue Jul 22 14:03:07 EDT 2025

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

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

Back to the top