+ // String jalviewAlignmentJson = JSONFile.getJSONData(ap);
+ AlignmentExportData exportData = jalview.gui.AlignFrame
+ .getAlignmentForExport(
+ JSONFile.FILE_DESC, ap.getAlignViewport());
+ if (exportData.getSettings().isCancelled())
+ {
+ return;
+ }
+ String jalviewAlignmentJson = new FormatAdapter(ap,
+ exportData.getSettings()).formatSequences(JSONFile.FILE_DESC,
+ exportData.getAlignment(), exportData.getOmitHidden(),
+ exportData.getStartEndPostions(), ap.getAlignViewport()
+ .getColumnSelection());
+