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
Try something like the NTail Eclipse plugin and use your own logfile.
I'll have a look. But I was hoping I could write to the standard console...
Regards / Med Venlig Hilsen
Thomas Hansen
Director
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.
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
>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 +
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
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
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!!!
I second that!
Regards / Med Venlig Hilsen
Thomas Hansen
Director
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
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
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
The one that is showing info when choosing Business Entities and other objects.
Regards / Med Venlig Hilsen
Thomas Hansen
Director
You've got the source code
I'll have to look myself...