From: amwaterhouse Date: Fri, 9 Jun 2006 16:21:15 +0000 (+0000) Subject: Export annotations as Jalview format X-Git-Tag: Release_2_1~360 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=81ad99f80509533bd04ee0560d4938352f9785a0;p=jalview.git Export annotations as Jalview format --- 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]} + ); }