X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fgui%2FAnnotationExporter.java;h=9c6231a2e066a9e0d8892f493cb06389082669e7;hb=b9fbdac95abae11673f09be76494032ec0bbca74;hp=75399b6bd3b98b420eee4ad889c3505cb18aa7cc;hpb=797df64fa2a0a30773d0f48f5494d4155e5a8be3;p=jalview.git diff --git a/src/jalview/gui/AnnotationExporter.java b/src/jalview/gui/AnnotationExporter.java index 75399b6..9c6231a 100755 --- a/src/jalview/gui/AnnotationExporter.java +++ b/src/jalview/gui/AnnotationExporter.java @@ -18,6 +18,7 @@ package jalview.gui; import java.util.*; +import java.util.List; import java.awt.*; import java.awt.event.*; @@ -44,7 +45,7 @@ public class AnnotationExporter extends JPanel AlignmentAnnotation[] annotations; - Vector sequenceGroups; + List sequenceGroups; Hashtable alignmentProperties; @@ -73,7 +74,7 @@ public class AnnotationExporter extends JPanel } public void exportAnnotations(AlignmentPanel ap, - AlignmentAnnotation[] annotations, Vector sequenceGroups, + AlignmentAnnotation[] annotations, List list, Hashtable alProperties) { this.ap = ap; @@ -81,7 +82,7 @@ public class AnnotationExporter extends JPanel GFFFormat.setVisible(false); CSVFormat.setVisible(true); this.annotations = annotations; - this.sequenceGroups = sequenceGroups; + this.sequenceGroups = list; this.alignmentProperties = alProperties; frame.setTitle("Export Annotations"); } @@ -105,13 +106,13 @@ public class AnnotationExporter extends JPanel { if (GFFFormat.isSelected()) { - text = new FeaturesFile().printGFFFormat(ap.av.alignment + text = new FeaturesFile().printGFFFormat(ap.av.getAlignment() .getDataset().getSequencesArray(), getDisplayedFeatureCols(), true, ap.av.isShowNpFeats());// ap.av.featuresDisplayed//); } else { - text = new FeaturesFile().printJalviewFormat(ap.av.alignment + text = new FeaturesFile().printJalviewFormat(ap.av.getAlignment() .getDataset().getSequencesArray(), getDisplayedFeatureCols(), true, ap.av.isShowNpFeats()); // ap.av.featuresDisplayed); } @@ -152,13 +153,13 @@ public class AnnotationExporter extends JPanel { if (GFFFormat.isSelected()) { - text = new FeaturesFile().printGFFFormat(ap.av.alignment + text = new FeaturesFile().printGFFFormat(ap.av.getAlignment() .getDataset().getSequencesArray(), getDisplayedFeatureCols(), true, ap.av.isShowNpFeats()); } else { - text = new FeaturesFile().printJalviewFormat(ap.av.alignment + text = new FeaturesFile().printJalviewFormat(ap.av.getAlignment() .getDataset().getSequencesArray(), getDisplayedFeatureCols(), true, ap.av.isShowNpFeats()); }