buffer.append("PID");
}
- Desktop.addInternalFrame(cap, buffer.toString(), 500, 100);
jalview.io.NewickFile fout = new jalview.io.NewickFile(tree
.getTopNode());
- cap.setText(fout.print(tree.isHasBootstrap(), tree.isHasDistances(),
+ try {
+ cap.setText(fout.print(tree.isHasBootstrap(), tree.isHasDistances(),
tree.isHasRootDistance()));
+ Desktop.addInternalFrame(cap, buffer.toString(), 500, 100);
+ } catch (OutOfMemoryError oom)
+ {
+ new OOMWarning("generating newick tree file",oom);
+ cap.dispose();
+ }
+
}
/**