Open omaraa opened 7 years ago
This is a scijava-commons issue and likely due to the cancelReason
not being reset on subsequent runs of a org.scijava.command.DynamicCommand
, see these lines.
Thanks for the report, @omaraa. I confirm this bug occurs with the latest ImageJ, 2.0.0-rc-59.
@imagejan Right, because OptionsPlugin
extends DynamicCommand
and implements SingletonPlugin
—i.e.: there is only one instance of each OptionsPlugin
per context. But one of the preconditions of commands is that they only run once per instance lifetime. So we need to make an architectural decision here about the best way to proceed. As things stand, options plugins are a dirty hack.
To reproduce:
This issue affects all plugins extending OptionsPlugin.