git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
JAL-4239 Using own id generation to avoid Random.nextLong() not implemented in jalviewjs
[jalview.git]
/
src
/
jalview
/
io
/
HTMLOutput.java
diff --git
a/src/jalview/io/HTMLOutput.java
b/src/jalview/io/HTMLOutput.java
index
d659e2a
..
711c465
100644
(file)
--- 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.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
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.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
{
}
else
{
- System.out.println(message);
+ jalview.bin.Console.outPrintln(message);
}
}
}
}
@@
-308,7
+310,8
@@
public abstract class HTMLOutput implements Runnable
exportHTML(outputFile, null);
}
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()));
{
setProgressMessage(MessageManager.formatMessage(
"status.exporting_alignment_as_x_file", getDescription()));