import jalview.datamodel.AlignmentExportData;
import jalview.exceptions.NoFileSelectedException;
import jalview.gui.IProgressIndicator;
+import jalview.gui.OOMWarning;
import jalview.json.binding.biojs.BioJSReleasePojo;
import jalview.json.binding.biojs.BioJSRepositoryPojo;
import jalview.util.MessageManager;
public void exportJalviewAlignmentAsBioJsHtmlFile()
{
+ String outputFile = null;
try
{
- String outputFile = getOutputFile();
- // String jalviewAlignmentJson = JSONFile.getJSONData(ap);
+ outputFile = getOutputFile();
AlignExportSettingI exportSettings = new AlignExportSettingI()
{
@Override
} catch (NoFileSelectedException ex)
{
// do noting if no file was selected
+ } catch (OutOfMemoryError err)
+ {
+ System.out.println("########################\n" + "OUT OF MEMORY "
+ + outputFile + "\n" + "########################");
+ new OOMWarning("Creating Image for " + outputFile, err);
} catch (Exception e)
{
pIndicator.setProgressBar(MessageManager.formatMessage(
import jalview.gui.AlignmentPanel;
import jalview.gui.HTMLOptions;
import jalview.gui.IProgressIndicator;
+import jalview.gui.OOMWarning;
import jalview.math.AlignmentDimension;
import jalview.util.MessageManager;
pIndicator.setProgressBar(MessageManager.formatMessage(
"status.export_complete", "HTML"), pSessionId);
}
+ } catch (OutOfMemoryError err)
+ {
+ System.out.println("########################\n" + "OUT OF MEMORY "
+ + file + "\n" + "########################");
+ new OOMWarning("Creating Image for " + file, err);
} catch (Exception e)
{
e.printStackTrace();