if (jalview.bin.Cache.groovyJarsPresent())
{
System.out.println("Executing script " + groovyscript);
- executeGroovyScript(groovyscript, desktop);
+ executeGroovyScript(groovyscript, new Object[] {desktop,af});
}
else
{
if (jalview.bin.Cache.groovyJarsPresent())
{
System.out.println("Executing script " + groovyscript);
- executeGroovyScript(groovyscript, desktop);
+ executeGroovyScript(groovyscript, new Object[] { desktop, startUpAlframe});
}
else
{
* 'Jalview' object.
*/
private static void executeGroovyScript(String groovyscript,
- Object jalviewContext)
+ Object[] jalviewContext)
{
if (jalviewContext == null)
{
new Class[]
{ String.class, Object.class });
setvar.invoke(gbinding, new Object[]
- { "Jalview", jalviewContext });
+ { "Jalview", jalviewContext[0],"startupAlFrame",jalviewContext[1] });
Class gsec = cl.loadClass("groovy.util.GroovyScriptEngine");
Constructor gseccons = gsec.getConstructor(new Class[]
{ URL[].class }); // String[].class });