We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c9cf31e commit d0439fbCopy full SHA for d0439fb
src/main/java/org/scijava/ui/swing/script/PromptPane.java
@@ -47,6 +47,7 @@
47
import org.scijava.script.ScriptREPL;
48
import org.scijava.thread.ThreadService;
49
import org.scijava.util.ClassUtils;
50
+import org.scijava.util.Types;
51
import org.scijava.widget.UIComponent;
52
53
/**
@@ -189,7 +190,7 @@ private ThreadService threadService() {
189
190
// HACK: Get the SciJava context from the REPL.
191
// This can be fixed if/when the REPL offers a getter for it.
192
final Context ctx = (Context) ClassUtils.getValue(//
- ClassUtils.getField(repl.getClass(), "context"), repl);
193
+ Types.field(repl.getClass(), "context"), repl);
194
return ctx.service(ThreadService.class);
195
}
196
0 commit comments