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
*
* @return
*/
- private String getText()
+ public String getText()
{
return exportFeatures ? getFeaturesText() : getAnnotationsText();
}
*
* @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
{
*
* @return
*/
- private String getFeaturesText()
+ public String getFeaturesText()
{
String text;
SequenceI[] sequences = ap.av.getAlignment().getSequencesArray();