git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf91582
)
JAL-391 add reverse / complement to command history for Undo / Redo
author
gmungoc
<g.m.carstairs@dundee.ac.uk>
Thu, 26 May 2016 14:55:46 +0000
(15:55 +0100)
committer
gmungoc
<g.m.carstairs@dundee.ac.uk>
Thu, 26 May 2016 14:55:46 +0000
(15:55 +0100)
src/jalview/gui/AlignFrame.java
patch
|
blob
|
history
diff --git
a/src/jalview/gui/AlignFrame.java
b/src/jalview/gui/AlignFrame.java
index
8ae74d4
..
d9d5f27
100644
(file)
--- 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());