From e3df1068750c3ea9a41be896d7dda2c1fb2c2a51 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Fri, 27 May 2005 09:32:30 +0000 Subject: [PATCH] New cut and paste --- src/jalview/gui/AlignFrame.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/jalview/gui/AlignFrame.java b/src/jalview/gui/AlignFrame.java index 6447005..d98084f 100755 --- a/src/jalview/gui/AlignFrame.java +++ b/src/jalview/gui/AlignFrame.java @@ -106,9 +106,7 @@ public class AlignFrame extends GAlignFrame protected void outputText_actionPerformed(ActionEvent e) { CutAndPasteTransfer cap = new CutAndPasteTransfer(); - JInternalFrame frame = new JInternalFrame(); - frame.setContentPane(cap); - Desktop.addInternalFrame(frame, "Alignment output - "+e.getActionCommand(), 600, 500); + Desktop.addInternalFrame(cap, "Alignment output - "+e.getActionCommand(), 600, 500); cap.setText( FormatAdapter.formatSequences(e.getActionCommand(), viewport.getAlignment().getSequences())); } @@ -419,12 +417,11 @@ public class AlignFrame extends GAlignFrame protected void delete_actionPerformed(ActionEvent e) { boolean seqsdeleted=false; + addHistoryItem(new HistoryItem("Delete Sequences", viewport.alignment, HistoryItem.HIDE)); if (viewport.getSelectionGroup() == null) return; - addHistoryItem(new HistoryItem("Delete Sequences", viewport.alignment, HistoryItem.HIDE)); - SequenceGroup sg = viewport.getSelectionGroup(); for (int i=0;i < sg.sequences.size(); i++) { @@ -997,7 +994,7 @@ public class AlignFrame extends GAlignFrame public void removeRedundancyMenuItem_actionPerformed(ActionEvent e) { - RedundancyPanel sp = new RedundancyPanel(alignPanel, this); + RedundancyPanel sp = new RedundancyPanel(alignPanel); JInternalFrame frame = new JInternalFrame(); frame.setContentPane(sp); Desktop.addInternalFrame(frame, "Redundancy threshold selection", 400, 100, false); -- 1.7.10.2