From 1ee9dde6abe6c467f28409fac5b3f06dd67d51bf Mon Sep 17 00:00:00 2001 From: gmungoc Date: Thu, 26 May 2016 15:55:46 +0100 Subject: [PATCH] JAL-391 add reverse / complement to command history for Undo / Redo --- src/jalview/gui/AlignFrame.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/jalview/gui/AlignFrame.java b/src/jalview/gui/AlignFrame.java index 8ae74d4..d9d5f27 100644 --- a/src/jalview/gui/AlignFrame.java +++ b/src/jalview/gui/AlignFrame.java @@ -6062,9 +6062,12 @@ public class AlignFrame extends GAlignFrame implements DropTargetListener, try { Dna dna = new Dna(viewport, viewport.getViewAsVisibleContigs(true)); - al = dna.reverseCdna(complement); viewport.addAlignment(al, ""); + addHistoryItem(new EditCommand( + MessageManager.getString("label.add_sequences"), + Action.PASTE, al.getSequencesArray(), 0, al.getWidth(), + viewport.getAlignment())); } catch (Exception ex) { System.err.println(ex.getMessage()); -- 1.7.10.2