Lazy-load script bundle

This commit is contained in:
Reinhard Pointner 2016-04-03 19:49:18 +00:00
parent d25b30e8af
commit 93181df73e
1 changed files with 1 additions and 1 deletions

View File

@ -153,7 +153,7 @@ public class GroovyPad extends JFrame {
protected ScriptShell createScriptShell() {
try {
return new ScriptShell(ScriptSource.GITHUB_STABLE.getScriptProvider(null), new HashMap<String, Object>());
return new ScriptShell(s -> ScriptSource.GITHUB_STABLE.getScriptProvider(s).getScript(s), new HashMap<String, Object>());
} catch (Exception e) {
throw new RuntimeException(e);
}