From: gmungoc Date: Thu, 26 May 2016 14:55:46 +0000 (+0100) Subject: JAL-391 add reverse / complement to command history for Undo / Redo X-Git-Tag: Release_2_10_0~214^2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=1ee9dde6abe6c467f28409fac5b3f06dd67d51bf;p=jalview.git JAL-391 add reverse / complement to command history for Undo / Redo --- 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());