Commit 581301f
committed
Correct preprocessor priorities
The LoadInputsPreprocessor needs to run before FilePreprocessor. If it
does not, the FilePreprocessor will pop a file chooser dialog and one of
two things will happen:
* a file path will be selected
* the command will be canceled
In the latter case, the LoadInputsPreprocessor does not run. In the
former, the file path has been resolved already and any persisted value
is irrelevant.
Both of these preprocessors were at Low priority + 1, basically because
they wanted to run before the InputHarvester. Thus their priorities have
been updated to InputHarvester.PRIORITY + 1 (LoadInputs) and + 0.5
(File) to ensure they execute in the correct order.1 parent a96c4e5 commit 581301f
File tree
2 files changed
+4
-4
lines changed- src/main/java/org/scijava
- module/process
- ui
2 files changed
+4
-4
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | 34 | | |
36 | 35 | | |
37 | 36 | | |
38 | 37 | | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | 36 | | |
38 | 37 | | |
39 | 38 | | |
40 | 39 | | |
41 | 40 | | |
42 | 41 | | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
0 commit comments