From fa43d97147c913accb1559c07980991cea6025f0 Mon Sep 17 00:00:00 2001 From: jprocter Date: Fri, 20 Aug 2010 12:32:51 +0000 Subject: [PATCH] complete the sequence-structure mapping details. * JAL-582 --- src/jalview/appletgui/AppletJmol.java | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/jalview/appletgui/AppletJmol.java b/src/jalview/appletgui/AppletJmol.java index afbc83c..103d8cb 100644 --- a/src/jalview/appletgui/AppletJmol.java +++ b/src/jalview/appletgui/AppletJmol.java @@ -335,15 +335,24 @@ public class AppletJmol extends EmbmenuFrame implements Frame frame = new Frame(); frame.add(cap); - jalview.bin.JalviewLite.addFrame(frame, "PDB - Sequence Mapping", - 550, 600); StringBuffer sb = new StringBuffer(); + try { for (int s = 0; s < jmb.pdbentry.length; s++) { sb.append(StructureSelectionManager.getStructureSelectionManager() .printMapping(jmb.pdbentry[s].getFile())); sb.append("\n"); } + cap.setText(sb.toString()); + } + catch (OutOfMemoryError ex) + { + frame.dispose(); + System.err.println("Out of memory when trying to create dialog box with sequence-structure mapping."); + return; + } + jalview.bin.JalviewLite.addFrame(frame, "PDB - Sequence Mapping", + 550, 600); } else if (evt.getSource() == charge) { -- 1.7.10.2