From: jprocter Date: Sun, 2 Sep 2012 22:59:05 +0000 (+0100) Subject: JAL-812 only trigger alignment redraw and calculation update after all sequences... X-Git-Tag: Jalview_2_9~352 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=45ce9dae1ec917b16d753b664ff804c9f6f84f02;p=jalview.git JAL-812 only trigger alignment redraw and calculation update after all sequences are deleted --- diff --git a/src/jalview/appletgui/RedundancyPanel.java b/src/jalview/appletgui/RedundancyPanel.java index b420758..03a9faf 100755 --- a/src/jalview/appletgui/RedundancyPanel.java +++ b/src/jalview/appletgui/RedundancyPanel.java @@ -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()); } } diff --git a/src/jalview/gui/RedundancyPanel.java b/src/jalview/gui/RedundancyPanel.java index f0a4f91..1b84d9f 100755 --- a/src/jalview/gui/RedundancyPanel.java +++ b/src/jalview/gui/RedundancyPanel.java @@ -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()); } }