JAL-1102 todos and status updates when data is added
authorjprocter <jprocter@compbio.dundee.ac.uk>
Wed, 23 May 2012 18:29:40 +0000 (19:29 +0100)
committerjprocter <jprocter@compbio.dundee.ac.uk>
Wed, 23 May 2012 18:29:40 +0000 (19:29 +0100)
src/jalview/appletgui/CutAndPasteTransfer.java

index b00a621..4a29568 100755 (executable)
@@ -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);