[ImageJ-devel] [fiji-devel] creating io.scif.img.ImgOpener currently fails in Fiji

Tobias Pietzsch pietzsch at mpi-cbg.de
Fri Aug 22 11:18:50 CDT 2014


Hi Johannes,

On 22 Aug 2014, at 17:53, Johannes Schindelin <Johannes.Schindelin at 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://imagej.net/pipermail/imagej-devel/attachments/20140822/06c2dfea/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 455 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://imagej.net/pipermail/imagej-devel/attachments/20140822/06c2dfea/attachment.pgp>


More information about the ImageJ-devel mailing list