import jalview.datamodel.SequenceI;
import jalview.ext.so.SequenceOntology;
import jalview.gui.AlignFrame;
+import jalview.gui.AlignViewport;
import jalview.gui.Desktop;
import jalview.gui.Preferences;
import jalview.gui.PromptUserConfig;
}
else
{
- if (Cache.getProperty("NOQUESTIONNAIRES") == null)
+ if (Cache.getProperty(Preferences.NOQUESTIONNAIRES) == null)
{
// Start the desktop questionnaire prompter with the specified
// questionnaire
}
}
- String data = null;
- FileLoader fileLoader = new FileLoader(!headless);
// script to execute after all loading is
// completed one way or another
.getString("status.processing_commandline_args"),
progress = System.currentTimeMillis());
}
- System.out.println("CMD [-open " + file + "] executed successfully!");
if (!isJS)
/**
// TODO ?
}
- AlignFrame af = fileLoader.LoadFileWaitTillLoaded(file, protocol,
+ AlignFrame af = new FileLoader(!headless).loadFileWaitTillLoaded(file,
+ protocol,
format);
if (af == null)
{
}
else
{
+ System.out
+ .println("CMD [-open " + file + "] executed successfully!");
+ if (file2 != null)
+ {
+ protocol = AppletFormatAdapter.checkProtocol(file2);
+ try
+ {
+ format = new IdentifyFile().identify(file2, protocol);
+ } catch (FileFormatException e1)
+ {
+ // TODO ?
+ }
+ AlignFrame af2 = new FileLoader(!headless).loadFileWaitTillLoaded(
+ file2,
+ protocol, format);
+ if (af2 == null)
+ {
+ System.out.println("error");
+ }
+ else
+ {
+ AlignViewport.openLinkedAlignmentAs(af,
+ af.getViewport().getAlignment(),
+ af2.getViewport().getAlignment(), "",
+ AlignViewport.SPLIT_FRAME);
+ }
+ }
+
setCurrentAlignFrame(af);
// TODO: file2 How to implement file2 for the applet spit screen?
- data = aparser.getValue(ArgsParser.COLOUR, true);
+ String data = aparser.getValue(ArgsParser.COLOUR, true);
if (data != null)
{
data.replaceAll("%20", " ");
loadAppletParams(aparser, af);
}
else if (!isJS)
- /**
- * Java only
- *
- * @j2sIgnore
- */
+ /**
+ * Java only
+ *
+ * @j2sIgnore
+ */
{
if (groovyscript != null)
{
- // Execute the groovy script after we've done all the rendering stuff
+ // Execute the groovy script after we've done all the rendering
+ // stuff
// and before any images or figures are generated.
System.out.println("Executing script " + groovyscript);
executeGroovyScript(groovyscript, af);
}
}
- startUpAlframe = fileLoader.LoadFileWaitTillLoaded(file, protocol,
+ startUpAlframe = new FileLoader(!headless)
+ .loadFileWaitTillLoaded(file, protocol,
format);
// extract groovy arguments before anything else.
}
@Override
public boolean loadScoreFile(String sScoreFile) throws IOException
{
- af.loadJalviewDataFile(sScoreFile, null,
- null, null);
+ af.loadJalviewDataFile(sScoreFile, null, null, null);
return true;
}
};
new JalviewAppLoader(true).load(app);
-
}
}