Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » output informatin to the console view of ec;ipse
output informatin to the console view of ec;ipse [message #177912] Fri, 09 January 2004 16:52 Go to next message
Eclipse UserFriend
Originally posted by: jmyron.ioconcepts.com

I am creating an editor / debugger plug-in for our proprietary macro
language. My editor is quite far along with most of the debugging features
implemented, I have used System.out.println() throughout much of my code to
help me debug my plug-in when I run my plug-in in the runtime workbench.
These outputs have always appeared in the console of the Esclipse IDE that
is my actual development environment. Now I am about finished and I have
removed most of the System.out.println()s that I have used as debugging
aids. However some outputs are intended for the end user when he is
debugging his macros using my editor / debugger and I want them to be
displayed in the console of the target esclipse IDE that is actually running
my plugin. Can anyone tell me what I need to do to make this happen?

--
J Myron Smith
I/O Concepts Inc.
jmyron@ioconcepts.com
http://www.ioconcepts.com
http://www.consoleautomation.com
Re: output informatin to the console view of ec;ipse [message #177992 is a reply to message #177912] Sat, 10 January 2004 01:34 Go to previous messageGo to next message
Eclipse UserFriend
You would need to 'launch' your program within your plugin (see the articles
at http://www.eclipse.org/articles/index.html, in particular Launching Java
Applications Programmatically). I believe this is how the Ant plugin
achieves a similar effect. Or you need to write your own console View and
redirect your output to it.

Hope this helps,

Tim.


"J Myron Smith" <jmyron@ioconcepts.com> wrote in message
news:btn7mo$ltk$1@eclipse.org...
> I am creating an editor / debugger plug-in for our proprietary macro
> language. My editor is quite far along with most of the debugging
features
> implemented, I have used System.out.println() throughout much of my code
to
> help me debug my plug-in when I run my plug-in in the runtime workbench.
> These outputs have always appeared in the console of the Esclipse IDE that
> is my actual development environment. Now I am about finished and I have
> removed most of the System.out.println()s that I have used as debugging
> aids. However some outputs are intended for the end user when he is
> debugging his macros using my editor / debugger and I want them to be
> displayed in the console of the target esclipse IDE that is actually
running
> my plugin. Can anyone tell me what I need to do to make this happen?
>
> --
> J Myron Smith
> I/O Concepts Inc.
> jmyron@ioconcepts.com
> http://www.ioconcepts.com
> http://www.consoleautomation.com
>
>
Re: output informatin to the console view of ec;ipse [message #178048 is a reply to message #177992] Sat, 10 January 2004 11:41 Go to previous messageGo to next message
Eclipse UserFriend
To help you in writing to the console, we have also started work on the a
MessageConsole for just such a purpose in the 3.0 stream.
This is a work in progress but we would appreciate use and feedback.
For an example of use see (in a tests plugin)
org.eclipse.jdt.debug.tests/console
tests/org.eclipse.jdt.debug.tests.console.TestMessageConsole ActionDelegate

The MessageConsole and supporting classes are in the org.eclipse.ui.console
plugin

HTH
Darins

"Tim Williams" <harlene_quinn@hotmail.com> wrote in message
news:bto6b1$ghu$1@eclipse.org...
> You would need to 'launch' your program within your plugin (see the
articles
> at http://www.eclipse.org/articles/index.html, in particular Launching
Java
> Applications Programmatically). I believe this is how the Ant plugin
> achieves a similar effect. Or you need to write your own console View and
> redirect your output to it.
>
> Hope this helps,
>
> Tim.
>
>
> "J Myron Smith" <jmyron@ioconcepts.com> wrote in message
> news:btn7mo$ltk$1@eclipse.org...
> > I am creating an editor / debugger plug-in for our proprietary macro
> > language. My editor is quite far along with most of the debugging
> features
> > implemented, I have used System.out.println() throughout much of my code
> to
> > help me debug my plug-in when I run my plug-in in the runtime workbench.
> > These outputs have always appeared in the console of the Esclipse IDE
that
> > is my actual development environment. Now I am about finished and I have
> > removed most of the System.out.println()s that I have used as debugging
> > aids. However some outputs are intended for the end user when he is
> > debugging his macros using my editor / debugger and I want them to be
> > displayed in the console of the target esclipse IDE that is actually
> running
> > my plugin. Can anyone tell me what I need to do to make this happen?
> >
> > --
> > J Myron Smith
> > I/O Concepts Inc.
> > jmyron@ioconcepts.com
> > http://www.ioconcepts.com
> > http://www.consoleautomation.com
> >
> >
>
>
Re: output informatin to the console view of ec;ipse [message #178136 is a reply to message #178048] Sat, 10 January 2004 22:16 Go to previous messageGo to next message
Eclipse UserFriend
That's great news!!!

Is this in the 3.M6 release or is it only in CVS? - I couldn't find it in
"eclipse-Automated-Tests-3.0M6.zip".

Tim.

"Darin Swanson" <Darin_Swanson@us.ibm.com> wrote in message
news:btp9pi$fun$1@eclipse.org...
> To help you in writing to the console, we have also started work on the a
> MessageConsole for just such a purpose in the 3.0 stream.
> This is a work in progress but we would appreciate use and feedback.
> For an example of use see (in a tests plugin)
> org.eclipse.jdt.debug.tests/console
> tests/org.eclipse.jdt.debug.tests.console.TestMessageConsole ActionDelegate
>
> The MessageConsole and supporting classes are in the
org.eclipse.ui.console
> plugin
>
> HTH
> Darins
>
> "Tim Williams" <harlene_quinn@hotmail.com> wrote in message
> news:bto6b1$ghu$1@eclipse.org...
> > You would need to 'launch' your program within your plugin (see the
> articles
> > at http://www.eclipse.org/articles/index.html, in particular Launching
> Java
> > Applications Programmatically). I believe this is how the Ant plugin
> > achieves a similar effect. Or you need to write your own console View
and
> > redirect your output to it.
> >
> > Hope this helps,
> >
> > Tim.
> >
> >
> > "J Myron Smith" <jmyron@ioconcepts.com> wrote in message
> > news:btn7mo$ltk$1@eclipse.org...
> > > I am creating an editor / debugger plug-in for our proprietary macro
> > > language. My editor is quite far along with most of the debugging
> > features
> > > implemented, I have used System.out.println() throughout much of my
code
> > to
> > > help me debug my plug-in when I run my plug-in in the runtime
workbench.
> > > These outputs have always appeared in the console of the Esclipse IDE
> that
> > > is my actual development environment. Now I am about finished and I
have
> > > removed most of the System.out.println()s that I have used as
debugging
> > > aids. However some outputs are intended for the end user when he is
> > > debugging his macros using my editor / debugger and I want them to be
> > > displayed in the console of the target esclipse IDE that is actually
> > running
> > > my plugin. Can anyone tell me what I need to do to make this happen?
> > >
> > > --
> > > J Myron Smith
> > > I/O Concepts Inc.
> > > jmyron@ioconcepts.com
> > > http://www.ioconcepts.com
> > > http://www.consoleautomation.com
> > >
> > >
> >
> >
>
>
Re: output informatin to the console view of ec;ipse [message #178231 is a reply to message #178136] Sun, 11 January 2004 16:14 Go to previous messageGo to next message
Eclipse UserFriend
This is a testing plugin for the JDT Debug plugins and therefore does not
ship with releases.
It is available in CVS.
This
http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/jdt- debug-home/contributing.html
should give you the information that you need to make use of these testing
plugins

HTH
Darins

"Tim Williams" <harlene_quinn@hotmail.com> wrote in message
news:btqf4m$fqa$1@eclipse.org...
> That's great news!!!
>
> Is this in the 3.M6 release or is it only in CVS? - I couldn't find it in
> "eclipse-Automated-Tests-3.0M6.zip".
>
> Tim.
>
> "Darin Swanson" <Darin_Swanson@us.ibm.com> wrote in message
> news:btp9pi$fun$1@eclipse.org...
> > To help you in writing to the console, we have also started work on the
a
> > MessageConsole for just such a purpose in the 3.0 stream.
> > This is a work in progress but we would appreciate use and feedback.
> > For an example of use see (in a tests plugin)
> > org.eclipse.jdt.debug.tests/console
> >
tests/org.eclipse.jdt.debug.tests.console.TestMessageConsole ActionDelegate
> >
> > The MessageConsole and supporting classes are in the
> org.eclipse.ui.console
> > plugin
> >
> > HTH
> > Darins
> >
> > "Tim Williams" <harlene_quinn@hotmail.com> wrote in message
> > news:bto6b1$ghu$1@eclipse.org...
> > > You would need to 'launch' your program within your plugin (see the
> > articles
> > > at http://www.eclipse.org/articles/index.html, in particular Launching
> > Java
> > > Applications Programmatically). I believe this is how the Ant plugin
> > > achieves a similar effect. Or you need to write your own console View
> and
> > > redirect your output to it.
> > >
> > > Hope this helps,
> > >
> > > Tim.
> > >
> > >
> > > "J Myron Smith" <jmyron@ioconcepts.com> wrote in message
> > > news:btn7mo$ltk$1@eclipse.org...
> > > > I am creating an editor / debugger plug-in for our proprietary macro
> > > > language. My editor is quite far along with most of the debugging
> > > features
> > > > implemented, I have used System.out.println() throughout much of my
> code
> > > to
> > > > help me debug my plug-in when I run my plug-in in the runtime
> workbench.
> > > > These outputs have always appeared in the console of the Esclipse
IDE
> > that
> > > > is my actual development environment. Now I am about finished and I
> have
> > > > removed most of the System.out.println()s that I have used as
> debugging
> > > > aids. However some outputs are intended for the end user when he is
> > > > debugging his macros using my editor / debugger and I want them to
be
> > > > displayed in the console of the target esclipse IDE that is actually
> > > running
> > > > my plugin. Can anyone tell me what I need to do to make this happen?
> > > >
> > > > --
> > > > J Myron Smith
> > > > I/O Concepts Inc.
> > > > jmyron@ioconcepts.com
> > > > http://www.ioconcepts.com
> > > > http://www.consoleautomation.com
> > > >
> > > >
> > >
> > >
> >
> >
>
>
Re: output informatin to the console view of ec;ipse [message #178448 is a reply to message #177912] Mon, 12 January 2004 03:39 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jeppenm.worldonline.dk

On Fri, 9 Jan 2004, J. Myron Smith wrote:

> I am creating an editor / debugger plug-in for our proprietary
> macro language. My editor is quite far along with most of the
> debugging features implemented, I have used System.out.println()
> throughout much of my code to help me debug my plug-in when I run
> my plug-in in the runtime workbench. These outputs have always
> appeared in the console of the Esclipse IDE that is my actual
> development environment. Now I am about finished and I have removed
> most of the System.out.println()s that I have used as debugging
> aids. However some outputs are intended for the end user when he is
> debugging his macros using my editor / debugger and I want them to
> be displayed in the console of the target esclipse IDE that is
> actually running my plugin. Can anyone tell me what I need to do to
> make this happen?

This works for me:

IViewPart consoleView = UiPlugin.getDefault().getWorkbench()
.getActiveWorkbenchWindow().getActivePage()
.showView("org.eclipse.debug.ui.ConsoleView");
TextViewer viewer = (TextViewer) ((AbstractDebugView) consoleView).getViewer();
consoleDocument = viewer.getDocument();

// Clear console
consoleDocument.set("");

// Add stuff
consoleDocument.replace(consoleDocument.getLength(),
0, evt.getText());

rgds
Jeppe
Re: output informatin to the console view of ec;ipse [message #178649 is a reply to message #178231] Mon, 12 January 2004 12:31 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: smesh.openrules.com

Darin, is it a chance to have MessageConsole in 2.X?

--
Sam - http://openrules.com
It's better to view source code than comments to it.
Re: output informatin to the console view of ec;ipse [message #178657 is a reply to message #178649] Mon, 12 January 2004 12:47 Go to previous message
Eclipse UserFriend
No

"smesh" <smesh@openrules.com> wrote in message
news:btult2$pki$1@eclipse.org...
> Darin, is it a chance to have MessageConsole in 2.X?
>
> --
> Sam - http://openrules.com
> It's better to view source code than comments to it.
>
>
Previous Topic:Views listeners
Next Topic:Adding a file to a project
Goto Forum:
  


Current Time: Fri Sep 26 07:06:45 EDT 2025

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

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

Back to the top