File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
src/main/java/org/scijava/ui/swing/script Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change 3737import org .scijava .log .LogService ;
3838import org .scijava .plugin .Parameter ;
3939import org .scijava .prefs .PrefService ;
40+ import org .scijava .script .ScriptInterpreter ;
41+ import org .scijava .script .ScriptREPL ;
4042import org .scijava .script .ScriptService ;
4143
4244/**
@@ -77,6 +79,20 @@ public void dispose() {
7779 setDefaultCloseOperation (WindowConstants .DISPOSE_ON_CLOSE );
7880 }
7981
82+ /** Gets the window's associated {@link ScriptREPL}. */
83+ public ScriptREPL getREPL () {
84+ return pane .getREPL ();
85+ }
86+
87+ /**
88+ * Gets the associated REPL's active {@link ScriptInterpreter}.
89+ *
90+ * @see #getREPL()
91+ */
92+ public ScriptInterpreter getInterpreter () {
93+ return pane .getREPL ().getInterpreter ();
94+ }
95+
8096 @ Override
8197 public void dispose () {
8298 // write out interpreter histories, etc., when frame goes away
You can’t perform that action at this time.
0 commit comments