Home » Eclipse Projects » Eclipse Platform » console input
console input [message #102659] |
Tue, 29 July 2003 17:07  |
Eclipse User |
|
|
|
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   |
Eclipse User |
|
|
|
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   |
Eclipse User |
|
|
|
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 #104276 is a reply to message #104250] |
Thu, 31 July 2003 14:13   |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>
|
|
|
Goto Forum:
Current Time: Tue Jul 22 19:52:39 EDT 2025
Powered by FUDForum. Page generated in 0.04951 seconds
|