From c5f31d5aa4d907274169f576327785f69aa85e76 Mon Sep 17 00:00:00 2001 From: jprocter Date: Wed, 23 May 2012 19:29:40 +0100 Subject: [PATCH] JAL-1102 todos and status updates when data is added --- src/jalview/appletgui/CutAndPasteTransfer.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/jalview/appletgui/CutAndPasteTransfer.java b/src/jalview/appletgui/CutAndPasteTransfer.java index b00a621..4a29568 100755 --- a/src/jalview/appletgui/CutAndPasteTransfer.java +++ b/src/jalview/appletgui/CutAndPasteTransfer.java @@ -150,6 +150,7 @@ public class CutAndPasteTransfer extends Panel implements ActionListener, } catch (Exception ex) { + // TODO: JAL-1102 - should have a warning message in dialog, not simply overwrite the broken input data with the exception textarea.setText("Could not parse Newick file!\n" + ex); return; } @@ -196,10 +197,13 @@ public class CutAndPasteTransfer extends Panel implements ActionListener, else { alignFrame.addSequences(al.getSequencesArray()); + alignFrame.statusBar + .setText("Successfully pasted alignment file"); } } } - + // TODO: dialog should indicate if data was parsed correctly or not - see + // JAL-1102 if (this.getParent() instanceof Frame) { ((Frame) this.getParent()).setVisible(false); -- 1.7.10.2