Skip to content

Commit 2e240f8

Browse files
committed
Persist last-used inputs _before_ dying
Closes #188.
1 parent 2f94ed2 commit 2e240f8

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/main/java/org/scijava/module/process/CheckInputsPreprocessor.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
import org.scijava.module.ModuleItem;
3737
import org.scijava.plugin.Parameter;
3838
import org.scijava.plugin.Plugin;
39-
import org.scijava.widget.InputHarvester;
4039

4140
/**
4241
* A preprocessor plugin that does a final check of input parameters,
@@ -45,7 +44,7 @@
4544
* @author Curtis Rueden
4645
*/
4746
@Plugin(type = PreprocessorPlugin.class,
48-
priority = InputHarvester.PRIORITY - 1)
47+
priority = SaveInputsPreprocessor.PRIORITY - 1)
4948
public class CheckInputsPreprocessor extends AbstractPreprocessorPlugin {
5049

5150
@Parameter(required = false)

src/main/java/org/scijava/module/process/SaveInputsPreprocessor.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@
5353
priority = Priority.VERY_LOW_PRIORITY - 1)
5454
public class SaveInputsPreprocessor extends AbstractPreprocessorPlugin {
5555

56+
public static final double PRIORITY = Priority.VERY_LOW_PRIORITY - 1;
57+
5658
@Parameter
5759
private ModuleService moduleService;
5860

0 commit comments

Comments
 (0)