X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fws%2Fjws2%2FParameterUtils.java;h=62ddd0ac8abf7dbd1b4405d96204e587625cdc39;hb=4d7f98a6dd54d9863ba449ec79dcd95d25ed863d;hp=e44fa6ab7055d7292377426ce0d51f48619b288d;hpb=aced09c4feeaf3406269442c14e54abeeb4cad81;p=jalview.git diff --git a/src/jalview/ws/jws2/ParameterUtils.java b/src/jalview/ws/jws2/ParameterUtils.java index e44fa6a..62ddd0a 100644 --- a/src/jalview/ws/jws2/ParameterUtils.java +++ b/src/jalview/ws/jws2/ParameterUtils.java @@ -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. * @@ -20,12 +20,17 @@ */ package jalview.ws.jws2; -import java.net.MalformedURLException; +import jalview.util.MessageManager; + import java.util.ArrayList; import java.util.HashSet; import java.util.List; -import compbio.metadata.*; +import compbio.metadata.Option; +import compbio.metadata.Parameter; +import compbio.metadata.RunnerConfig; +import compbio.metadata.ValueConstrain; +import compbio.metadata.WrongParameterException; public class ParameterUtils { @@ -144,8 +149,7 @@ public class ParameterUtils } else { - copy.addOptionNames(names.toArray(new String[] - {})); + copy.addOptionNames(names.toArray(new String[] {})); } } try @@ -181,7 +185,9 @@ public class ParameterUtils } catch (Exception e) { e.printStackTrace(); - throw new Error(MessageManager.getString("error.implementation_error_couldnt_copy_value_constraint")); + throw new Error( + MessageManager + .getString("error.implementation_error_couldnt_copy_value_constraint")); } } @@ -196,8 +202,7 @@ public class ParameterUtils List pv = parameter.getPossibleValues(); if (pv != null) { - copy.addPossibleValues(pv.toArray(new String[] - {})); + copy.addPossibleValues(pv.toArray(new String[] {})); } setOptionFrom(copy, parameter); return copy;