X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fgui%2FAnnotationExporter.java;h=e43c06b54bb1134f71e356220ada8f5526232280;hb=b5d61763044c1d72f06ce0e50da2171422a3774b;hp=61c5ee13114b4a0b9de4d00e34a8dd60945d10f7;hpb=72b3f05a1157da32ada5aea139139996dddea219;p=jalview.git diff --git a/src/jalview/gui/AnnotationExporter.java b/src/jalview/gui/AnnotationExporter.java index 61c5ee1..e43c06b 100644 --- a/src/jalview/gui/AnnotationExporter.java +++ b/src/jalview/gui/AnnotationExporter.java @@ -20,16 +20,31 @@ */ package jalview.gui; -import java.util.*; +import jalview.datamodel.AlignmentAnnotation; +import jalview.datamodel.SequenceGroup; +import jalview.io.AnnotationFile; +import jalview.io.FeaturesFile; +import jalview.io.JalviewFileChooser; +import jalview.io.JalviewFileView; +import jalview.util.MessageManager; + +import java.awt.BorderLayout; +import java.awt.Color; +import java.awt.FlowLayout; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; +import java.util.Hashtable; import java.util.List; -import java.awt.*; -import java.awt.event.*; -import javax.swing.*; - -import jalview.datamodel.*; -import jalview.io.*; -import jalview.util.MessageManager; +import javax.swing.BorderFactory; +import javax.swing.ButtonGroup; +import javax.swing.JButton; +import javax.swing.JInternalFrame; +import javax.swing.JLabel; +import javax.swing.JLayeredPane; +import javax.swing.JPanel; +import javax.swing.JRadioButton; +import javax.swing.SwingConstants; /** * @@ -75,7 +90,7 @@ public class AnnotationExporter extends JPanel this.ap = ap; features = true; CSVFormat.setVisible(false); - frame.setTitle("Export Features"); + frame.setTitle(MessageManager.getString("label.export_features")); } public void exportAnnotations(AlignmentPanel ap, @@ -89,7 +104,7 @@ public class AnnotationExporter extends JPanel this.annotations = annotations; this.sequenceGroups = list; this.alignmentProperties = alProperties; - frame.setTitle("Export Annotations"); + frame.setTitle(MessageManager.getString("label.export_annotations")); } public void toFile_actionPerformed(ActionEvent e) @@ -98,15 +113,15 @@ public class AnnotationExporter extends JPanel jalview.bin.Cache.getProperty("LAST_DIRECTORY")); chooser.setFileView(new JalviewFileView()); - chooser.setDialogTitle(features ? "Save Features to File" - : "Save Annotation to File"); + chooser.setDialogTitle(features ? MessageManager.getString("label.save_features_to_file") + : MessageManager.getString("label.save_annotation_to_file")); chooser.setToolTipText(MessageManager.getString("action.save")); int value = chooser.showSaveDialog(this); if (value == JalviewFileChooser.APPROVE_OPTION) { - String text = "No features found on alignment"; + String text = MessageManager.getString("label.no_features_on_alignment"); if (features) { if (GFFFormat.isSelected()) @@ -155,7 +170,7 @@ public class AnnotationExporter extends JPanel public void toTextbox_actionPerformed(ActionEvent e) { - String text = "No features found on alignment"; + String text = MessageManager.getString("label.no_features_on_alignment"); if (features) { if (GFFFormat.isSelected()) @@ -208,7 +223,6 @@ public class AnnotationExporter extends JPanel close_actionPerformed(null); } - public void close_actionPerformed(ActionEvent e) { try