Hi Johannes, On 22 Aug 2014, at 17:53, Johannes Schindelin <johannes.schinde...@gmx.de> wrote:
> Hi Tobias, > > On Fri, 22 Aug 2014, Tobias Pietzsch wrote: > >> final ImgOpener opener = new ImgOpener( new Context( >> SCIFIOService.class, AppService.class, StatusService.class ) ); > > Why do you create a new Context everytime? That's a bit wasteful… That is true, but I’m not sure how to improve it. The problem is that I know too little about how the infrastructure around Context works. I assume in Fiji there is only one Context that is used by everything? An I get it the way you described? In Eclipse, for testing, I have a main() method that just says new ExportSpimSequencePlugIn().run( null ); so there is no Fiji that has a Context. How would I make something that works in both cases? best regards, Tobias > > Ciao, > Johannes
signature.asc
Description: Message signed with OpenPGP using GPGMail
_______________________________________________ ImageJ-devel mailing list ImageJ-devel@imagej.net http://imagej.net/mailman/listinfo/imagej-devel