From: Jonathan A. <jon...@gm...> - 2015-07-26 10:08:59
|
There is a thread specific container (singleton I think) for the scripting monitors, i.e., the monitor used when running BSL. Don't remember the name of it but I think you just call it with the correct thread and you get the proper monitor. (maybe we should move over to the develop list instead? egonw are you on that?) On Sun, Jul 26, 2015 at 11:24 AM, Egon Willighagen < ego...@gm...> wrote: > On Sat, Jul 25, 2015 at 8:55 PM, Jonathan Alvarsson > <jon...@gm...> wrote: > > I remember thinking about this years ago and then opting for not adding > it. > > Mainly becasue writing the script would be complicated. However, since > you > > want it I don't see any reason for why we should not add it. Remind me, > is > > there a scripting manager yet? Otherrwise I guess it would belong on the > UI > > manager or so... > > There is a js manager, but that is linked to the JavaScript console... > it has stuff like js.say()... in Groovy you can just use "print" so > that was never a problem to me... > > UI sounds appropriate, more than bioclipse, as these messages are > meant for the UI... > > I played with ui.progressMessage(String message, IProgressMonitor > monitor) ... that the monitor that method gets seems different, > because I could not get those message to show up in the GroovyConsole > "monitor"... > > Egon > > > -- > E.L. Willighagen > Department of Bioinformatics - BiGCaT > Maastricht University (http://www.bigcat.unimaas.nl/) > Homepage: http://egonw.github.com/ > LinkedIn: http://se.linkedin.com/in/egonw > Blog: http://chem-bla-ics.blogspot.com/ > PubList: http://www.citeulike.org/user/egonw/tag/papers > ORCID: 0000-0001-7542-0286 > ImpactStory: https://impactstory.org/EgonWillighagen > -- // Jonathan |