From 81ad99f80509533bd04ee0560d4938352f9785a0 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Fri, 9 Jun 2006 16:21:15 +0000 Subject: [PATCH] Export annotations as Jalview format --- src/jalview/gui/AnnotationLabels.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/jalview/gui/AnnotationLabels.java b/src/jalview/gui/AnnotationLabels.java index 50849e1..5667f84 100755 --- a/src/jalview/gui/AnnotationLabels.java +++ b/src/jalview/gui/AnnotationLabels.java @@ -40,7 +40,7 @@ public class AnnotationLabels extends JPanel implements MouseListener, static String HIDE = "Hide This Row"; static String DELETE = "Delete This Row"; static String SHOWALL = "Show All Hidden Rows"; - static String OUTPUT_TEXT = "Show Values In Textbox"; + static String OUTPUT_TEXT = "Export Annotation"; boolean resizePanel = false; Image image; AlignmentPanel ap; @@ -198,11 +198,11 @@ public class AnnotationLabels extends JPanel implements MouseListener, } else if (evt.getActionCommand().equals(OUTPUT_TEXT)) { - CutAndPasteTransfer cap = new CutAndPasteTransfer(); - Desktop.addInternalFrame(cap, - ap.alignFrame.getTitle() + " - " + aa[selectedRow].label, 500, - 100); - cap.setText(aa[selectedRow].toString()); + new AnnotationExporter().exportAnnotations( + ap, + new AlignmentAnnotation[] + {aa[selectedRow]} + ); } -- 1.7.10.2