Ticket #1443 (closed defect: fixed)

Opened 8 years ago

Last modified 8 years ago

Allow plugin service to run intances of RunnablePlugin

Reported by: bdezonia Owned by: curtis
Priority: major Milestone: imagej2-b4-plugins
Component: Core Version:
Severity: serious Keywords:
Cc: Blocked By:
Blocking: #1052


Currently in IJ2 I can do this:

HashMap<String,Object> inputMap = new HashMap<String, Object>();
inputMap.put("display", differentDisplay);
pluginService.run(FindEdges.class, inputMap);

I would like to be able to do this:

FindEdges pluginInstance = new FindEdges();

This would allow developers to populate plugins with unharvested values using public accessor API of a given plugin instance.

Change History

comment:1 Changed 8 years ago by curtis

  • Status changed from new to closed
  • Resolution set to fixed

Should now be possible with 399d9d37!

comment:2 Changed 8 years ago by curtis

There is potential problem I anticipate: setting the Display parameter manually this way will not flag the parameter as "resolved" so the preprocessors will still try to populate it. I'm not sure of the best way around this. One option might be to skip certain plugin preprocessing when running plugins this way, but that would require further thought to get right.

Last edited 8 years ago by curtis (previous) (diff)

comment:3 Changed 8 years ago by bdezonia

Note that these changes were reverted and the running of plugin instances through the plugin service is not going to be allowed

Note: See TracTickets for help on using tickets.