JAL-4026 update the viewport’s wrapped width after calculating it
[jalview.git] / src / jalview / gui / AnnotationExporter.java
index 0b0916d..1efd100 100644 (file)
@@ -20,6 +20,8 @@
  */
 package jalview.gui;
 
+import java.util.Locale;
+
 import jalview.api.FeatureRenderer;
 import jalview.bin.Cache;
 import jalview.datamodel.AlignmentAnnotation;
@@ -114,9 +116,9 @@ public class AnnotationExporter extends JPanel
   }
 
   /**
-   * Configures the dialog for options to export visible features. If from a split
-   * frame panel showing linked features, make the option to include these in the
-   * export visible.
+   * Configures the dialog for options to export visible features. If from a
+   * split frame panel showing linked features, make the option to include these
+   * in the export visible.
    */
   public void exportFeatures()
   {
@@ -163,6 +165,7 @@ public class AnnotationExporter extends JPanel
 
   private void toFile_actionPerformed()
   {
+    // TODO: JAL-3048 JalviewFileChooser - Save option
     JalviewFileChooser chooser = new JalviewFileChooser(
             Cache.getProperty("LAST_DIRECTORY"));
 
@@ -194,8 +197,8 @@ public class AnnotationExporter extends JPanel
   }
 
   /**
-   * Answers the text to output for either Features (in GFF or Jalview format) or
-   * Annotations (in CSV or Jalview format)
+   * Answers the text to output for either Features (in GFF or Jalview format)
+   * or Annotations (in CSV or Jalview format)
    * 
    * @return
    */
@@ -205,8 +208,8 @@ public class AnnotationExporter extends JPanel
   }
 
   /**
-   * Returns the text contents for output of annotations in either CSV or Jalview
-   * format
+   * Returns the text contents for output of annotations in either CSV or
+   * Jalview format
    * 
    * @return
    */
@@ -322,10 +325,10 @@ public class AnnotationExporter extends JPanel
   }
 
   /**
-   * Builds a panel with a checkbox for the option to export linked (CDS/peptide)
-   * features. This is hidden by default, and only made visible if exporting
-   * features from a split frame panel which is configured to show linked
-   * features.
+   * Builds a panel with a checkbox for the option to export linked
+   * (CDS/peptide) features. This is hidden by default, and only made visible if
+   * exporting features from a split frame panel which is configured to show
+   * linked features.
    * 
    * @return
    */
@@ -335,17 +338,14 @@ public class AnnotationExporter extends JPanel
     linkedFeaturesPanel.setOpaque(false);
 
     boolean nucleotide = ap.av.isNucleotide();
-    String complement = nucleotide
-            ? MessageManager.getString("label.protein").toLowerCase()
-            : "CDS";
-    JLabel label = new JLabel(
-            MessageManager.formatMessage("label.include_linked_features",
-                    complement));
+    String complement = nucleotide ? MessageManager
+            .getString("label.protein").toLowerCase(Locale.ROOT) : "CDS";
+    JLabel label = new JLabel(MessageManager
+            .formatMessage("label.include_linked_features", complement));
     label.setHorizontalAlignment(SwingConstants.TRAILING);
     String tooltip = MessageManager
             .formatMessage("label.include_linked_tooltip", complement);
-    label.setToolTipText(
-            JvSwingUtils.wrapTooltip(true, tooltip));
+    label.setToolTipText(JvSwingUtils.wrapTooltip(true, tooltip));
 
     includeLinkedFeatures = new JCheckBox();
     linkedFeaturesPanel.add(label);
@@ -402,8 +402,8 @@ public class AnnotationExporter extends JPanel
   }
 
   /**
-   * Builds the panel with options to output in Jalview, GFF or CSV format. GFF is
-   * only made visible when exporting features, CSV only when exporting
+   * Builds the panel with options to output in Jalview, GFF or CSV format. GFF
+   * is only made visible when exporting features, CSV only when exporting
    * annotation.
    * 
    * @return