X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fgui%2FRedundancyPanel.java;h=7fb0593a431b3b5365331255b20228bae3edd2e5;hb=f931c557266d95b3f4ab5b64bd108123c90e85ab;hp=e541540e97a87f9d2fc285665cff629dce93f710;hpb=be32c14cd8e48fe0a207cd7030cb9cd46f894678;p=jalview.git diff --git a/src/jalview/gui/RedundancyPanel.java b/src/jalview/gui/RedundancyPanel.java index e541540..7fb0593 100755 --- a/src/jalview/gui/RedundancyPanel.java +++ b/src/jalview/gui/RedundancyPanel.java @@ -171,7 +171,8 @@ public class RedundancyPanel extends GSliderPanel implements Runnable progress.setVisible(false); progress = null; - label.setText(MessageManager.getString("label.enter_redundancy_thereshold")); + label.setText(MessageManager + .getString("label.enter_redundancy_thereshold")); slider.setVisible(true); applyButton.setEnabled(true); valueField.setVisible(true); @@ -240,7 +241,8 @@ public class RedundancyPanel extends GSliderPanel implements Runnable } } - EditCommand cut = new EditCommand(MessageManager.getString("action.remove_redundancy"), + EditCommand cut = new EditCommand( + MessageManager.getString("action.remove_redundancy"), Action.CUT, deleted, 0, width, ap.av.getAlignment()); for (int i = 0; i < del.size(); i++) @@ -257,7 +259,8 @@ public class RedundancyPanel extends GSliderPanel implements Runnable ap.alignFrame.addHistoryItem(cut); PaintRefresher.Refresh(this, ap.av.getSequenceSetId(), true, true); - ap.av.firePropertyChange("alignment", null, ap.av.getAlignment().getSequences()); + ap.av.firePropertyChange("alignment", null, ap.av.getAlignment() + .getSequences()); } } @@ -270,17 +273,19 @@ public class RedundancyPanel extends GSliderPanel implements Runnable */ public void undoButton_actionPerformed(ActionEvent e) { - if(historyList == null || historyList.isEmpty()){ - undoButton.setEnabled(false); - return; + if (historyList == null || historyList.isEmpty()) + { + undoButton.setEnabled(false); + return; } - + CommandI command = historyList.pop(); if (ap.av.getHistoryList().contains(command)) { command.undoCommand(af.getViewAlignments()); ap.av.getHistoryList().remove(command); - ap.av.firePropertyChange("alignment", null, ap.av.getAlignment().getSequences()); + ap.av.firePropertyChange("alignment", null, ap.av.getAlignment() + .getSequences()); af.updateEditMenuBar(); }