X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fio%2FHTMLOutput.java;h=711c46588159abc563486352a0db455d2d0e3f14;hb=94ca0419cc7afa75b3c51917a8beaf46a7c05540;hp=d659e2a571eb6e71af0298fff6cb20c04ecac2d6;hpb=f754db87420bc03f4665bda29593aab07d186dcb;p=jalview.git diff --git a/src/jalview/io/HTMLOutput.java b/src/jalview/io/HTMLOutput.java index d659e2a..711c465 100644 --- a/src/jalview/io/HTMLOutput.java +++ b/src/jalview/io/HTMLOutput.java @@ -35,6 +35,8 @@ import jalview.datamodel.AlignmentExportData; import jalview.gui.AlignmentPanel; import jalview.gui.IProgressIndicator; import jalview.io.exceptions.ImageOutputException; +import jalview.util.IdUtils; +import jalview.util.IdUtils.IdType; import jalview.util.MessageManager; public abstract class HTMLOutput implements Runnable @@ -68,7 +70,7 @@ public abstract class HTMLOutput implements Runnable this.ap = ap; this.pIndicator = ap.alignFrame; this.description = desc; - this.pSessionId = System.currentTimeMillis(); + this.pSessionId = IdUtils.newId(IdType.PROGRESS); } /** @@ -239,7 +241,7 @@ public abstract class HTMLOutput implements Runnable } else { - System.out.println(message); + jalview.bin.Console.outPrintln(message); } } @@ -308,7 +310,8 @@ public abstract class HTMLOutput implements Runnable exportHTML(outputFile, null); } - public void exportHTML(String outputFile, String renderer) throws ImageOutputException + public void exportHTML(String outputFile, String renderer) + throws ImageOutputException { setProgressMessage(MessageManager.formatMessage( "status.exporting_alignment_as_x_file", getDescription()));