X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fgui%2FAnnotationExporter.java;h=a23496d3b38fb25e70fc163418e650c18fade4f4;hb=0ebbad305e982eeda562a1842362dc415c36cc8d;hp=c22761a8c1b816c79251499914cf8cdda02fcdfb;hpb=29625ee998523520e87bb88643247b3723e908bd;p=jalview.git diff --git a/src/jalview/gui/AnnotationExporter.java b/src/jalview/gui/AnnotationExporter.java index c22761a..a23496d 100644 --- a/src/jalview/gui/AnnotationExporter.java +++ b/src/jalview/gui/AnnotationExporter.java @@ -107,7 +107,7 @@ public class AnnotationExporter extends JPanel } frame = new JInternalFrame(); - frame.setFrameIcon(WindowIcons.annotationIcon); + frame.setFrameIcon(null); frame.setContentPane(this); frame.setLayer(JLayeredPane.PALETTE_LAYER); Dimension preferredSize = frame.getPreferredSize(); @@ -163,6 +163,14 @@ public class AnnotationExporter extends JPanel frame.setTitle(MessageManager.getString("label.export_annotations")); } + public void setExportAsCSV() + { + if (CSVFormat != null) + { + CSVFormat.setSelected(true); + } + } + private void toFile_actionPerformed() { // TODO: JAL-3048 JalviewFileChooser - Save option @@ -202,7 +210,7 @@ public class AnnotationExporter extends JPanel * * @return */ - private String getText() + public String getText() { return exportFeatures ? getFeaturesText() : getAnnotationsText(); } @@ -213,12 +221,14 @@ public class AnnotationExporter extends JPanel * * @return */ - private String getAnnotationsText() + public String getAnnotationsText() { String text; if (CSVFormat.isSelected()) { - text = new AnnotationFile().printCSVAnnotations(annotations); + text = new AnnotationFile().printCSVAnnotations( + wholeView ? ap.av.getAlignment().getAlignmentAnnotation() + : annotations); } else { @@ -241,7 +251,7 @@ public class AnnotationExporter extends JPanel * * @return */ - private String getFeaturesText() + public String getFeaturesText() { String text; SequenceI[] sequences = ap.av.getAlignment().getSequencesArray();