JAL-1517 formatting/tidy
[jalview.git] / src / jalview / ws / DasSequenceFeatureFetcher.java
index c4c8d6b..8a7bcbc 100644 (file)
@@ -6,14 +6,16 @@
  * 
  * Jalview is free software: you can redistribute it and/or
  * modify it under the terms of the GNU General Public License 
- * as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
+ * as published by the Free Software Foundation, either version 3
+ * of the License, or (at your option) any later version.
  *  
  * Jalview is distributed in the hope that it will be useful, but 
  * WITHOUT ANY WARRANTY; without even the implied warranty 
  * of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
  * PURPOSE.  See the GNU General Public License for more details.
  * 
- * You should have received a copy of the GNU General Public License along with Jalview.  If not, see <http://www.gnu.org/licenses/>.
+ * You should have received a copy of the GNU General Public License
+ * along with Jalview.  If not, see <http://www.gnu.org/licenses/>.
  * The Jalview Authors are detailed in the 'AUTHORS' file.
  */
 package jalview.ws;
@@ -25,6 +27,7 @@ import jalview.datamodel.SequenceI;
 import jalview.gui.AlignFrame;
 import jalview.gui.Desktop;
 import jalview.gui.FeatureSettings;
+import jalview.util.MessageManager;
 import jalview.util.UrlLink;
 import jalview.ws.dbsources.das.api.DasSourceRegistryI;
 import jalview.ws.dbsources.das.api.jalviewSourceI;
@@ -202,9 +205,8 @@ public class DasSequenceFeatureFetcher
         reply = JOptionPane
                 .showInternalConfirmDialog(
                         Desktop.desktop,
-                        "Do you want Jalview to find\n"
-                                + "Uniprot Accession ids for given sequence names?",
-                        "Find Uniprot Accession Ids",
+                        MessageManager.getString("info.you_want_jalview_to_find_uniprot_accessions"),
+                        MessageManager.getString("label.find_uniprot_accession_ids"),
                         JOptionPane.YES_NO_OPTION,
                         JOptionPane.QUESTION_MESSAGE);
       }
@@ -262,7 +264,7 @@ public class DasSequenceFeatureFetcher
     startTime = System.currentTimeMillis();
     if (af != null)
     {
-      af.setProgressBar("Fetching DAS Sequence Features", startTime);
+      af.setProgressBar(MessageManager.getString("status.fetching_das_sequence_features"), startTime);
     }
     if (sourceRegistry == null)
     {
@@ -535,7 +537,7 @@ public class DasSequenceFeatureFetcher
 
     if (af != null)
     {
-      af.setProgressBar("No DAS Sources Active", startTime);
+      af.setProgressBar(MessageManager.getString("status.no_das_sources_active"), startTime);
     }
     if (getFeatSettings() != null)
     {
@@ -565,7 +567,7 @@ public class DasSequenceFeatureFetcher
   {
     if (af != null)
     {
-      af.setProgressBar("DAS Feature Fetching Cancelled", startTime);
+      af.setProgressBar(MessageManager.getString("status.das_feature_fetching_cancelled"), startTime);
     }
     cancelled = true;
   }
@@ -580,7 +582,7 @@ public class DasSequenceFeatureFetcher
     if (!cancelled && af != null)
     {
       // only update the progress bar if we've completed the fetch normally
-      af.setProgressBar("DAS Feature Fetching Complete", startTime);
+      af.setProgressBar(MessageManager.getString("status.das_feature_fetching_complete"), startTime);
     }
 
     if (af != null && af.featureSettings != null)