Desktop.instance.stopLoading();
jalview.bin.Console.errPrintln("The input file \"" + file
+ "\" has null or unidentifiable data content!");
- if (!Jalview.isHeadlessMode())
+ if (!Jalview.isHeadlessMode() && !Jalview.isBatchMode())
{
JvOptionPane.showInternalMessageDialog(Desktop.desktop,
MessageManager.getString("label.couldnt_read_data")
// We read the data anyway - it might make sense.
}
// BH 2018 switch to File object here instead of filename
- alignFrame = new Jalview2XML(raiseGUI).loadJalviewAlign(
+ alignFrame = new Jalview2XML(raiseGUI && !Jalview.isBatchMode()).loadJalviewAlign(
selectedFile == null ? file : selectedFile);
}
else
"label.couldnt_load_file") + " " + title + "\n" + error;
// TODO: refactor FileLoader to be independent of Desktop / Applet GUI
// bits ?
- if (raiseGUI && Desktop.desktop != null)
+ if (raiseGUI && !Jalview.isBatchMode() && Desktop.desktop != null)
{
javax.swing.SwingUtilities.invokeLater(new Runnable()
{
{
jalview.bin.Console.errPrintln("Exception whilst opening file '" + file);
er.printStackTrace();
- if (raiseGUI)
+ if (raiseGUI && !Jalview.isBatchMode())
{
javax.swing.SwingUtilities.invokeLater(new Runnable()
{
er.printStackTrace();
alignFrame = null;
- if (raiseGUI)
+ if (raiseGUI && !Jalview.isBatchMode())
{
javax.swing.SwingUtilities.invokeLater(new Runnable()
{