X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fjalview%2Fgui%2FAnnotationLabels.java;h=5667f84826c238243a9aaa2a427948922e7007b2;hb=621a628afc1f6ee7a2778b9d0ae2729b88fe5bfd;hp=50849e136bca4ca2671d4b48048d9ed5ed9a70d7;hpb=8d70ec8d1b73f31822d31562a1c32879bf7dd692;p=jalview.git 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]} + ); }