formatting
[jalview.git] / src / jalview / gui / AnnotationExporter.java
index 75399b6..a0c1ecf 100755 (executable)
@@ -18,6 +18,7 @@
 package jalview.gui;\r
 \r
 import java.util.*;\r
+import java.util.List;\r
 \r
 import java.awt.*;\r
 import java.awt.event.*;\r
@@ -44,7 +45,7 @@ public class AnnotationExporter extends JPanel
 \r
   AlignmentAnnotation[] annotations;\r
 \r
-  Vector sequenceGroups;\r
+  List<SequenceGroup> sequenceGroups;\r
 \r
   Hashtable alignmentProperties;\r
 \r
@@ -61,7 +62,8 @@ public class AnnotationExporter extends JPanel
     frame = new JInternalFrame();\r
     frame.setContentPane(this);\r
     frame.setLayer(JLayeredPane.PALETTE_LAYER);\r
-    Desktop.addInternalFrame(frame, "", frame.getPreferredSize().width, frame.getPreferredSize().height);\r
+    Desktop.addInternalFrame(frame, "", frame.getPreferredSize().width,\r
+            frame.getPreferredSize().height);\r
   }\r
 \r
   public void exportFeatures(AlignmentPanel ap)\r
@@ -73,7 +75,7 @@ public class AnnotationExporter extends JPanel
   }\r
 \r
   public void exportAnnotations(AlignmentPanel ap,\r
-          AlignmentAnnotation[] annotations, Vector sequenceGroups,\r
+          AlignmentAnnotation[] annotations, List<SequenceGroup> list,\r
           Hashtable alProperties)\r
   {\r
     this.ap = ap;\r
@@ -81,7 +83,7 @@ public class AnnotationExporter extends JPanel
     GFFFormat.setVisible(false);\r
     CSVFormat.setVisible(true);\r
     this.annotations = annotations;\r
-    this.sequenceGroups = sequenceGroups;\r
+    this.sequenceGroups = list;\r
     this.alignmentProperties = alProperties;\r
     frame.setTitle("Export Annotations");\r
   }\r
@@ -105,13 +107,13 @@ public class AnnotationExporter extends JPanel
       {\r
         if (GFFFormat.isSelected())\r
         {\r
-          text = new FeaturesFile().printGFFFormat(ap.av.alignment\r
+          text = new FeaturesFile().printGFFFormat(ap.av.getAlignment()\r
                   .getDataset().getSequencesArray(),\r
                   getDisplayedFeatureCols(), true, ap.av.isShowNpFeats());// ap.av.featuresDisplayed//);\r
         }\r
         else\r
         {\r
-          text = new FeaturesFile().printJalviewFormat(ap.av.alignment\r
+          text = new FeaturesFile().printJalviewFormat(ap.av.getAlignment()\r
                   .getDataset().getSequencesArray(),\r
                   getDisplayedFeatureCols(), true, ap.av.isShowNpFeats()); // ap.av.featuresDisplayed);\r
         }\r
@@ -152,13 +154,13 @@ public class AnnotationExporter extends JPanel
     {\r
       if (GFFFormat.isSelected())\r
       {\r
-        text = new FeaturesFile().printGFFFormat(ap.av.alignment\r
+        text = new FeaturesFile().printGFFFormat(ap.av.getAlignment()\r
                 .getDataset().getSequencesArray(),\r
                 getDisplayedFeatureCols(), true, ap.av.isShowNpFeats());\r
       }\r
       else\r
       {\r
-        text = new FeaturesFile().printJalviewFormat(ap.av.alignment\r
+        text = new FeaturesFile().printJalviewFormat(ap.av.getAlignment()\r
                 .getDataset().getSequencesArray(),\r
                 getDisplayedFeatureCols(), true, ap.av.isShowNpFeats());\r
       }\r
@@ -226,7 +228,7 @@ public class AnnotationExporter extends JPanel
   private void jbInit() throws Exception\r
   {\r
     this.setLayout(new BorderLayout());\r
-    \r
+\r
     toFile.setText("to File");\r
     toFile.addActionListener(new ActionListener()\r
     {\r