X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fio%2FBioJsHTMLOutput.java;fp=src%2Fjalview%2Fio%2FBioJsHTMLOutput.java;h=52ce845cb4a373c23a7e70221e5b5efcaf8b14f9;hb=daf64249356f9a156423bd56ab0336d9da2e5325;hp=fd9c584eedf291d58652e469526288819f3a34f2;hpb=4f9c22055c3cdbfc9c4375dcb74755a89ec32b62;p=jalview.git diff --git a/src/jalview/io/BioJsHTMLOutput.java b/src/jalview/io/BioJsHTMLOutput.java index fd9c584..52ce845 100644 --- a/src/jalview/io/BioJsHTMLOutput.java +++ b/src/jalview/io/BioJsHTMLOutput.java @@ -53,8 +53,7 @@ public class BioJsHTMLOutput extends HTMLOutput .getDefault("biojs_template_directory", DEFAULT_DIR); public static final String BJS_TEMPLATE_GIT_REPO = jalview.bin.Cache - .getDefault( - "biojs_template_git_repo", + .getDefault("biojs_template_git_repo", "https://raw.githubusercontent.com/jalview/exporter-templates/master/biojs/package.json"); public BioJsHTMLOutput(AlignmentPanel ap) @@ -80,8 +79,8 @@ public class BioJsHTMLOutput extends HTMLOutput return; } catch (Exception e) { - setProgressMessage(MessageManager.formatMessage( - "info.error_creating_file", "BioJS MSA")); + setProgressMessage(MessageManager + .formatMessage("info.error_creating_file", "BioJS MSA")); e.printStackTrace(); return; } @@ -89,8 +88,6 @@ public class BioJsHTMLOutput extends HTMLOutput } - - public static void refreshVersionInfo(String dirName) throws URISyntaxException { @@ -133,7 +130,8 @@ public class BioJsHTMLOutput extends HTMLOutput { try { - String gitRepoPkgJson = getURLContentAsString(BJS_TEMPLATE_GIT_REPO); + String gitRepoPkgJson = getURLContentAsString( + BJS_TEMPLATE_GIT_REPO); if (gitRepoPkgJson != null) { BioJSRepositoryPojo release = new BioJSRepositoryPojo( @@ -235,8 +233,8 @@ public class BioJsHTMLOutput extends HTMLOutput } } } - return responseStrBuilder == null ? null : responseStrBuilder - .toString(); + return responseStrBuilder == null ? null + : responseStrBuilder.toString(); } public static File getCurrentBJSTemplateFile() @@ -289,13 +287,13 @@ public class BioJsHTMLOutput extends HTMLOutput String generatedBioJsWithJalviewAlignmentAsJson = bioJSTemplateString .replaceAll("#sequenceData#", bioJSON).toString(); - PrintWriter out = new java.io.PrintWriter(new java.io.FileWriter( - generatedFile)); + PrintWriter out = new java.io.PrintWriter( + new java.io.FileWriter(generatedFile)); out.print(generatedBioJsWithJalviewAlignmentAsJson); out.flush(); out.close(); - setProgressMessage(MessageManager.formatMessage( - "status.export_complete", "BioJS")); + setProgressMessage(MessageManager + .formatMessage("status.export_complete", "BioJS")); exportCompleted(); } catch (OutOfMemoryError err) @@ -305,8 +303,8 @@ public class BioJsHTMLOutput extends HTMLOutput new OOMWarning("Creating Image for " + generatedFile, err); } catch (Exception e) { - setProgressMessage(MessageManager.formatMessage( - "info.error_creating_file", "HTML")); + setProgressMessage(MessageManager + .formatMessage("info.error_creating_file", "HTML")); e.printStackTrace(); }