Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ptp-dev] Routing PE plugin stderr output to Eclipse view

Dave,

Make sure you have the "Display combined output in a console view" selected on the Application tab of the launch configuration.

Greg

On Jun 5, 2009, at 11:20 AM, Dave Wootton wrote:

Greg
I have my proxy sending PROC_STDERR_ATTR attributes for stderr output now
where I'm running from my workspace in a 2nd Eclipse session. I see
message appear in the first Eclipse session console view
'PE@xxxxxxxxxxxxxxxxxxxxxxxxx: Output to stderr: stderr 0' where 'stderr 0' is what my test PE program wrote to stderr. Is this supposed to show up in an Eclipse view in my 2nd Eclipse session? If so, what view do I need
to have open to see this output?

Dave



Greg Watson <g.watson@xxxxxxxxxxxx>
Sent by: ptp-dev-bounces@xxxxxxxxxxx
06/03/2009 04:28 PM
Please respond to
Parallel Tools Platform general developers <ptp-dev@xxxxxxxxxxx>


To
Parallel Tools Platform general developers <ptp-dev@xxxxxxxxxxx>
cc

Subject
Re: [ptp-dev] Routing PE plugin stderr output to Eclipse view






Dave,

I've already added support for stderr on the PTP console. All you need to do is send a PROC_STDERR_ATTR attribute on the process that generated the
output using proxy_process_change_event. All the rest should happen
automatically.

Greg

On Jun 3, 2009, at 3:59 PM, Beth Tibbitts wrote:

That looks like what i did not too long ago...
public MessageConsole findConsole(String name) {
ConsolePlugin plugin = ConsolePlugin.getDefault();
IConsoleManager conMan = plugin.getConsoleManager();
IConsole[] existing = conMan.getConsoles();

for (int i = 0; i < existing.length; i++) {
if (name.equals(existing[i].getName()))
return (MessageConsole) existing[i];
}
// no console found, so create a new one
MessageConsole myConsole = new MessageConsole(name, null);
conMan.addConsoles(new IConsole[] { myConsole });
return myConsole;
}

...Beth

Beth Tibbitts (859) 243-4981 (TL 545-4981)
Eclipse Parallel Tools Platform http://eclipse.org/ptp
Mailing Address: IBM Corp., Coldstream Research Campus, 745 West New
Circle Road, Lexington, KY 40511

<graycol.gif>Dave Wootton---06/03/2009 03:33:27 PM---I'm looking at
changes to my PE plugin to route stderr output generated by

Dave Wootton/Poughkeepsie/IBM@IBMUS
Sent by: ptp-dev-bounces@xxxxxxxxxxx
06/03/2009 03:33 PM

Please respond to
Parallel Tools Platform general developers <ptp-dev@xxxxxxxxxxx>



<ecblank.gif>
To
<ecblank.gif>
ptp-dev@xxxxxxxxxxx
<ecblank.gif>
cc
<ecblank.gif>
<ecblank.gif>
Subject
<ecblank.gif>
[ptp-dev] Routing PE plugin stderr output to Eclipse view

<ecblank.gif>
<ecblank.gif>


I'm looking at changes to my PE plugin to route stderr output generated by

the application run by the user to an Eclipse view. Does it make sense to use the Eclipse console view as the target for the stderr output rather than implementing a new view to display the output? I think this would be
sufficient for my purposes, where the intent is to send whatever the
application writes to stderr to a view it is not lost.

It looks like I can get a console to write to by getting the console
plugin object via ConsolePlugin.getDefault(), calling getConsoleManager() on that object then calling getConsoles() to get a list of consoles and picking the first console that is an instance of IOConsole. If there is no

instance of IOConsole, I have to create one and add it to the consoles
managed by the ConsoleManager object. Does this make sense?
Dave
_______________________________________________
ptp-dev mailing list
ptp-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ptp-dev

_______________________________________________
ptp-dev mailing list
ptp-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ptp-dev
_______________________________________________
ptp-dev mailing list
ptp-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ptp-dev


_______________________________________________
ptp-dev mailing list
ptp-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ptp-dev



Back to the top