X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;ds=inline;f=src%2Fjalview%2Fio%2FAppletFormatAdapter.java;h=4916bb3b44b7bedda13e5869b2cdda36920e5c47;hb=4f30214e8098748469c6a4269ac2ed6c5750e4b0;hp=6db04a09a546dfa26f902ca1967bc12a2198e5d5;hpb=26b115b0a77d521da92a06572d9b7819c2d0d49a;p=jalview.git diff --git a/src/jalview/io/AppletFormatAdapter.java b/src/jalview/io/AppletFormatAdapter.java index 6db04a0..4916bb3 100755 --- a/src/jalview/io/AppletFormatAdapter.java +++ b/src/jalview/io/AppletFormatAdapter.java @@ -159,7 +159,9 @@ public class AppletFormatAdapter this.selectedFile = selectedFile; if (selectedFile != null) + { this.inFile = selectedFile.getPath(); + } this.inFile = file; try { @@ -435,7 +437,9 @@ public class AppletFormatAdapter public static DataSourceType checkProtocol(Object dataObject) { if(dataObject instanceof File) + { return DataSourceType.FILE; + } String data = dataObject.toString(); DataSourceType protocol = DataSourceType.PASTE; @@ -456,6 +460,10 @@ public class AppletFormatAdapter return protocol; } + /** + * @param args + * @j2sIgnore + */ public static void main(String[] args) { int i = 0;