From: jprocter Date: Wed, 23 May 2012 18:29:40 +0000 (+0100) Subject: JAL-1102 todos and status updates when data is added X-Git-Tag: Jalview_2_9~517 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=c5f31d5aa4d907274169f576327785f69aa85e76;p=jalview.git JAL-1102 todos and status updates when data is added --- 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);