X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fgui%2FAnnotationExporter.java;h=894db79cd4e2ea8f88f21ec6c91bad7f2a504f80;hb=06379070d6c2267efe3a30926d84c51a48d1cdce;hp=d84287f43b0e0cd6c4810732cc004f2bd6ce6872;hpb=0b573ed90b14079f7326281f50c0c9cffdace586;p=jalview.git diff --git a/src/jalview/gui/AnnotationExporter.java b/src/jalview/gui/AnnotationExporter.java index d84287f..894db79 100644 --- a/src/jalview/gui/AnnotationExporter.java +++ b/src/jalview/gui/AnnotationExporter.java @@ -20,22 +20,13 @@ */ package jalview.gui; -import jalview.api.FeatureRenderer; -import jalview.bin.Cache; -import jalview.datamodel.AlignmentAnnotation; -import jalview.datamodel.SequenceI; -import jalview.io.AnnotationFile; -import jalview.io.FeaturesFile; -import jalview.io.JalviewFileChooser; -import jalview.io.JalviewFileView; -import jalview.util.MessageManager; - import java.awt.Color; import java.awt.Dimension; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.FileWriter; import java.io.PrintWriter; +import java.util.Locale; import javax.swing.BoxLayout; import javax.swing.ButtonGroup; @@ -48,6 +39,16 @@ import javax.swing.JPanel; import javax.swing.JRadioButton; import javax.swing.SwingConstants; +import jalview.api.FeatureRenderer; +import jalview.bin.Cache; +import jalview.datamodel.AlignmentAnnotation; +import jalview.datamodel.SequenceI; +import jalview.io.AnnotationFile; +import jalview.io.FeaturesFile; +import jalview.io.JalviewFileChooser; +import jalview.io.JalviewFileView; +import jalview.util.MessageManager; + /** * * GUI dialog for exporting features or alignment annotations depending upon @@ -106,6 +107,7 @@ public class AnnotationExporter extends JPanel } frame = new JInternalFrame(); + frame.setFrameIcon(null); frame.setContentPane(this); frame.setLayer(JLayeredPane.PALETTE_LAYER); Dimension preferredSize = frame.getPreferredSize(); @@ -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() { @@ -195,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 */ @@ -206,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 */ @@ -323,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 */ @@ -336,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); @@ -403,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