Hi Stefan, Thanks. Rather than doing this:
CommandInfo testopInfo = new CommandInfo(IJTestOp.class.getName()); testopModule = (CommandModule) testopInfo.createModule(); I suggest instead: CommandInfo testopInfo = commandService.getCommand(IJTestOp.class); testopModule = (CommandModule) moduleService.createModule(testopInfo); Otherwise, you will have lots of problems because the created module will not know its context. If you use the service methods, all the injections are taken care of for you; see: https://github.com/imagej/imagej/blob/imagej-2.0.0-beta-7.9/core/core/src/main/java/imagej/module/DefaultModuleService.java#L150 Also, rather than: testopModule.setInput("ivalIn", 321); testopModule.getCommand().run(); I would use the service method: moduleService.run(testopModule, false, "ivalIn", 321); Regards, Curtis On Thu, Apr 10, 2014 at 3:13 PM, Stefan Posch <[email protected] > wrote: > sorry. I forgot to attach the project ... here it comes. > > Stefan > > _______________________________________________ > ImageJ-devel mailing list > [email protected] > http://imagej.net/mailman/listinfo/imagej-devel > >
_______________________________________________ ImageJ-devel mailing list [email protected] http://imagej.net/mailman/listinfo/imagej-devel
