JAL-1645 source formatting and organise imports
[jalview.git] / src / jalview / gui / DasSourceBrowser.java
index b8dd645..53e3c8d 100644 (file)
@@ -1,6 +1,6 @@
 /*
- * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.2)
- * Copyright (C) 2014 The Jalview Authors
+ * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
+ * Copyright (C) $$Year-Rel$$ The Jalview Authors
  * 
  * This file is part of Jalview.
  * 
@@ -440,8 +440,7 @@ public class DasSourceBrowser extends GDasSourceBrowser implements
     seqs.setSelected(seqsrc);
     JPanel panel = new JPanel(new BorderLayout());
     JPanel pane12 = new JPanel(new BorderLayout());
-    pane12.add(
-            new JLabel(MessageManager.getString("label.structure_manager")),
+    pane12.add(new JLabel(MessageManager.getString("label.name")),
             BorderLayout.CENTER);
     pane12.add(nametf, BorderLayout.EAST);
     panel.add(pane12, BorderLayout.NORTH);
@@ -536,8 +535,7 @@ public class DasSourceBrowser extends GDasSourceBrowser implements
       return;
     }
 
-    Object[] options =
-    { "Edit", "Remove", "Cancel" };
+    Object[] options = { "Edit", "Remove", "Cancel" };
     int choice = JOptionPane.showInternalOptionDialog(Desktop.desktop,
             "Do you want to edit or remove " + nickname + "?",
             "Edit / Remove Local DAS Source",
@@ -602,8 +600,7 @@ public class DasSourceBrowser extends GDasSourceBrowser implements
     // The features filter is not visible, but we must still
     // filter the das source list here.
     // July 2006 - only 6 sources fo not serve features
-    Object[] dummyFeatureList = new Object[]
-    { "features" };
+    Object[] dummyFeatureList = new Object[] { "features" };
     List<jalviewSourceI> srcs = sourceRegistry.getSources();
     for (jalviewSourceI ds : srcs)
     {
@@ -633,8 +630,8 @@ public class DasSourceBrowser extends GDasSourceBrowser implements
 
       for (int j = 0; j < coords.size(); j++)
       {
-        if (selectedInList(filter1.getSelectedValues(), new String[]
-        { coords.get(j).getAuthority() })
+        if (selectedInList(filter1.getSelectedValues(),
+                new String[] { coords.get(j).getAuthority() })
                 && selectedInList(filter2.getSelectedValues(), new String[]
                 { coords.get(j).getSource() }))
         {
@@ -740,8 +737,9 @@ public class DasSourceBrowser extends GDasSourceBrowser implements
       this.data = data;
     }
 
-    private String[] columnNames = new String[]
-    { "Nickname", "Use Source" };
+    private String[] columnNames = new String[] {
+        MessageManager.getString("label.nickname"),
+        MessageManager.getString("label.use_source") };
 
     private Object[][] data;