*/
package jalview.io;
-import jalview.exceptions.NoFileSelectedException;
import jalview.gui.AlignmentPanel;
import jalview.gui.OOMWarning;
import jalview.json.binding.biojs.BioJSReleasePojo;
public class BioJsHTMLOutput extends HTMLOutput
{
-
private static File currentBJSTemplateFile;
private static TreeMap<String, File> bioJsMSAVersions;
super(ap);
}
- @Override
- public void exportHTML(String outputFile)
- {
- exportStarted();
- try
- {
- if (outputFile == null)
- {
- outputFile = getOutputFile();
- }
- generatedFile = new File(outputFile);
- } catch (NoFileSelectedException e)
- {
- setProgressMessage(MessageManager.formatMessage(
- "status.cancelled_image_export_operation", "BioJS MSA"));
- return;
- } catch (Exception e)
- {
- setProgressMessage(MessageManager
- .formatMessage("info.error_creating_file", "BioJS MSA"));
- e.printStackTrace();
- return;
- }
- new Thread(this).start();
-
- }
-
public static void refreshVersionInfo(String dirName)
throws URISyntaxException
{
}
@Override
- public File getExportedFile()
- {
- return generatedFile;
- }
-
- @Override
public void run()
{
try
out.flush();
out.close();
setProgressMessage(MessageManager
- .formatMessage("status.export_complete", "BioJS"));
+ .formatMessage("status.export_complete", getDescription()));
exportCompleted();
} catch (OutOfMemoryError err)
} catch (Exception e)
{
setProgressMessage(MessageManager
- .formatMessage("info.error_creating_file", "HTML"));
+ .formatMessage("info.error_creating_file", getDescription()));
e.printStackTrace();
}
}
+ @Override
+ protected String getDescription()
+ {
+ return "BioJS MSA";
+ }
+
}