I’m working with a Fiji plugin, and I’m able to create a Dataset @Parameter. I need this parameter to be optional, and therefore, I don’t want it to be pre-filled when the user opens the plugin modal window.
I’ve tried using
autofill=false in the
@Parameter annotation, but the field still shows up prefilled with one o the current Datasets;
I’ve also tried setting
initializer = "nameOfFunctionThatSetsThisParameterToNull", but the field still shows up initialized.
So my question would be: what is the correct way to have a optional
Dataset field in an ImageJ plugin?