Writing messages to the eclipse console

Posted by asthomas on 07-Feb-2012 07:04

Hi there,

Does anyone know whether it is possible to write to the eclipse console from an AVM session? Similar to the messages that are displayed inthe console when files are compiled or databases for the runtime are connected.

Or - is there somewhere else it would make sense to display status messages?

TIA

Regards

Thomas

All Replies

Posted by Admin on 07-Feb-2012 07:21

Try something like the NTail Eclipse plugin and use your own logfile.

Posted by asthomas on 07-Feb-2012 07:26

I'll have a look. But I was hoping I could write to the standard console...

Regards / Med Venlig Hilsen 

Thomas Hansen

Director

Posted by Admin on 07-Feb-2012 07:31

I'll have a look. But I was hoping I could write to the standard console...

 

Me too! Please share a solution, when you get one.

Posted by Peter Judge on 07-Feb-2012 08:09

mikefe wrote:

I'll have a look. But I was hoping I could write to the standard console...

Me too! Please share a solution, when you get one.

I suspect this has more to do with the AVM's inability to write to the console than Eclipse. I don't know whether it's possible to write to the console explicitly in ABL (ie nothing like C#'s System.Console:WriteLine() or Java's System.out.println() ).

An OUTPUT TO CONSOLE statement in ABL would probably need an enhancement request.

-- peter

Posted by Admin on 07-Feb-2012 08:11

>I don't know whether it's possible to write to the console explicitly in ABL (ie nothing like C#'s System.Console:WriteLine() or Java's System.out.println() ).

 

What's wrong with using System.Console:WriteLine() in the ABL? 10.2B +

Posted by asthomas on 07-Feb-2012 08:16

Hi Peter,

I was afraid you might say something like that...

I was hoping that you would simply point to one of the files in the project.runtime directory But I have been able to find anything there.

Regards / Med Venlig Hilsen 

Thomas Hansen

Director

Posted by Peter Judge on 07-Feb-2012 08:21

Maybe I'm doing it wrong, but I see nothing, either from Eclipse or proenv/prowin32.


def var i as int.
do i = 1 to 5:
System.Console:WriteLine(fill('~t', i) + ' ' + string(i) ).
end.

-- peter

Posted by Admin on 07-Feb-2012 08:41

Maybe I'm doing it wrong, but I see nothing, either from Eclipse or proenv/prowin32.

 

Well, that would be the (currently) available alternative to OUTPUT TO CONSOLE.

But I assume that OEA is not expecting that from the Progress client. I assume, that the Progress client needs to send log-messages to the Eclipse plugin using network messages.

You should try to convince your colleagues to make those API's public!!!

Posted by asthomas on 07-Feb-2012 08:51

I second that!

Regards / Med Venlig Hilsen 

Thomas Hansen

Director

Posted by Peter Judge on 07-Feb-2012 09:01

But I assume that OEA is not expecting that from the Progress client.

I assume, that the Progress client needs to send log-messages to the

Eclipse plugin using network messages.

Eclipse launch configs do have the option to redirect stdout (and stdin) and put it into a console view (there's an option on the Common tab for 'allocate console' which enables this behaviour, I believe).

The best current alternative is probably your (Mike) option of output-to-file-and-monitor.

-- peter

Posted by asthomas on 07-Feb-2012 09:16

I actually wanted to use it to give the user some info on what extensions are doing as we work - without the need for plugins.

I guess an alternative would be like Mike has done in the SmartComponentLibrary with a taskbar info message (not sure what the correct name is).

Regards / Med Venlig Hilsen 

Thomas Hansen

Director

Posted by Admin on 07-Feb-2012 09:21

I guess an alternative would be like Mike has done in the SmartComponentLibrary with a taskbar info message (not sure what the correct name is).

 

I'm using Infragistics UltraDesktopAlert Component or a Microsoft NotifyIcon with a Ballon Tooltip. Not sure which one you are pointing to

Posted by asthomas on 07-Feb-2012 09:26

The one that is showing info when choosing Business Entities and other objects.

Regards / Med Venlig Hilsen 

Thomas Hansen

Director

Posted by Admin on 07-Feb-2012 09:36

You've got the source code

I'll have to look myself...

This thread is closed