JAL-812 only trigger alignment redraw and calculation update after all sequences...
authorjprocter <jprocter@compbio.dundee.ac.uk>
Sun, 2 Sep 2012 22:59:05 +0000 (23:59 +0100)
committerjprocter <jprocter@compbio.dundee.ac.uk>
Sun, 2 Sep 2012 22:59:05 +0000 (23:59 +0100)
src/jalview/appletgui/RedundancyPanel.java
src/jalview/gui/RedundancyPanel.java

index b420758..03a9faf 100755 (executable)
@@ -197,7 +197,6 @@ public class RedundancyPanel extends SliderPanel implements Runnable,
       for (int i = 0; i < del.size(); i++)
       {
         alignment.deleteSequence(deleted[i]);
-        PaintRefresher.Refresh(this, ap.av.getSequenceSetId(), true, true);
         if (sg != null)
         {
           sg.deleteSequence(deleted[i], false);
@@ -208,8 +207,9 @@ public class RedundancyPanel extends SliderPanel implements Runnable,
 
       ap.alignFrame.addHistoryItem(cut);
 
-      ap.av.firePropertyChange("alignment", null, ap.av.getAlignment()
-              .getSequences());
+      PaintRefresher.Refresh(this, ap.av.getSequenceSetId(), true, true);
+//      ap.av.firePropertyChange("alignment", null, ap.av.getAlignment()
+//              .getSequences());
     }
 
   }
index f0a4f91..1b84d9f 100755 (executable)
@@ -234,7 +234,6 @@ public class RedundancyPanel extends GSliderPanel implements Runnable
       for (int i = 0; i < del.size(); i++)
       {
         ap.av.getAlignment().deleteSequence(deleted[i]);
-        PaintRefresher.Refresh(this, ap.av.getSequenceSetId(), true, true);
         if (sg != null)
         {
           sg.deleteSequence(deleted[i], false);
@@ -245,8 +244,9 @@ public class RedundancyPanel extends GSliderPanel implements Runnable
 
       ap.alignFrame.addHistoryItem(cut);
 
-      ap.av.firePropertyChange("alignment", null, ap.av.getAlignment()
-              .getSequences());
+      PaintRefresher.Refresh(this, ap.av.getSequenceSetId(), true, true);
+      //ap.av.firePropertyChange("alignment", null, ap.av.getAlignment()
+      //        .getSequences());
     }
 
   }