JAL-1645 Version-Rel Version 2.9 Year-Rel 2015 Licensing glob
[jalview.git] / src / jalview / ws / jws2 / dm / JabaOption.java
index 55b2797..66b3112 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 2.9)
+ * Copyright (C) 2015 The Jalview Authors
  * 
  * This file is part of Jalview.
  * 
@@ -20,6 +20,7 @@
  */
 package jalview.ws.jws2.dm;
 
+import jalview.util.MessageManager;
 import jalview.ws.jws2.ParameterUtils;
 import jalview.ws.params.OptionI;
 
@@ -53,13 +54,15 @@ public class JabaOption implements jalview.ws.params.OptionI
   @Override
   public URL getFurtherDetails()
   {
-    try {
-    return new URL(opt.getBasicURL().toExternalForm()+"/"+opt.getFurtherDetails());
-    }
-    catch (NullPointerException q) {}
-    catch (MalformedURLException q)
+    try
+    {
+      return new URL(opt.getBasicURL().toExternalForm() + "/"
+              + opt.getFurtherDetails());
+    } catch (NullPointerException q)
     {
-      
+    } catch (MalformedURLException q)
+    {
+
     }
     return null;
   }
@@ -93,7 +96,8 @@ public class JabaOption implements jalview.ws.params.OptionI
     {
       e.printStackTrace();
       throw new Error(
-              "Implementation error: cannot set Jaba Option to a value outside its allowed value range!");
+              MessageManager
+                      .getString("error.implementation_error_cannot_set_jaba_option"));
     }
   }