Commit 9b77ad3
committed
DefaultScriptInterpreter: improve constructors
The old constructor is deprecated.
There is now a simple constructor taking only the ScriptLanguage,
as well as one which allows to manually override the ScriptEngine.
The SciJava application context is derived from the ScriptLanguage,
and services (notably: the PrefService) are injected from there.
The PrefService is now optional, and when it is null, there is no
history available. (The code for null History was already in place
everywhere -- it just couldn't happen previously due to the explicit
"new History" call in the constructor. So now we make use of it.)1 parent d85efbd commit 9b77ad3
File tree
1 file changed
+35
-6
lines changed- src/main/java/org/scijava/script
1 file changed
+35
-6
lines changedLines changed: 35 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
49 | 52 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
| 55 | + | |
| 56 | + | |
55 | 57 | | |
56 | 58 | | |
57 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
58 | 84 | | |
59 | | - | |
60 | | - | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
61 | 88 | | |
62 | 89 | | |
63 | 90 | | |
| 91 | + | |
| 92 | + | |
64 | 93 | | |
65 | 94 | | |
66 | 95 | | |
| |||
0 commit comments