Ticket #1443 (closed defect: fixed)

Opened 7 years ago

Last modified 7 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

Description

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();
pluginInstance.setDisplay(differentDisplay);
pluginService.run(pluginInstance);

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

Change History

comment:1 Changed 7 years ago by curtis

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

Should now be possible with 399d9d37!

comment:2 Changed 7 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...

Version 0, edited 7 years ago by curtis (next)

comment:3 Changed 7 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.