From: amwaterhouse Date: Mon, 11 Sep 2006 15:28:53 +0000 (+0000) Subject: Error message if file not found moved for headless state X-Git-Tag: Release_2_1_1~11 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=9693242bcb97efe77f9bad5be68c4984358a0de5;p=jalview.git Error message if file not found moved for headless state --- diff --git a/src/jalview/bin/Jalview.java b/src/jalview/bin/Jalview.java index 2f76347..5bc98b1 100755 --- a/src/jalview/bin/Jalview.java +++ b/src/jalview/bin/Jalview.java @@ -137,6 +137,7 @@ public class Jalview if(file!=null) { + System.out.println("Opening file: " + file); if (!file.startsWith("http://")) { @@ -155,15 +156,23 @@ public class Jalview protocol = "URL"; } + + if (file.endsWith(".jar")) format = "Jalview"; else format = new jalview.io.IdentifyFile().Identify(file, protocol); - System.out.println("Opening: " + format + " file " + file); + AlignFrame af = fileLoader.LoadFileWaitTillLoaded(file, protocol, format); + if(af==null) + { + System.out.println("error"); + return; + } + data = aparser.getValue("colour"); if(data!=null) {