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);
}
}
- 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++)
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());
}
}
*/
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();
}