* = new Binding(); binding.setVariable("input", "world");
* gse.run("hello.groovy", binding); </code>
*/
- ClassLoader cl = jalviewContext.getClass().getClassLoader();
+ ClassLoader cl = (jalviewContext[0]!=null ? jalviewContext[0] : jalviewContext[1]).getClass().getClassLoader();
Class gbindingc = cl.loadClass("groovy.lang.Binding");
Constructor gbcons = gbindingc.getConstructor(null);
Object gbinding = gbcons.newInstance(null);