X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fgui%2FRestInputParamEditDialog.java;h=34d456fda95912084602535c3e3856cce92ddb09;hb=48e68905336d8ee17ee6b3903d80b36bac8c56cf;hp=19a9b51bab4d79ea3148e2efb34f50d918afc662;hpb=fee1b781ca14aadea5d112fc554fe14879c787c5;p=jalview.git diff --git a/src/jalview/gui/RestInputParamEditDialog.java b/src/jalview/gui/RestInputParamEditDialog.java index 19a9b51..34d456f 100644 --- a/src/jalview/gui/RestInputParamEditDialog.java +++ b/src/jalview/gui/RestInputParamEditDialog.java @@ -20,20 +20,18 @@ */ package jalview.gui; -import jalview.jbgui.GRestInputParamEditDialog; -import jalview.ws.params.InvalidArgumentException; -import jalview.ws.params.OptionI; -import jalview.ws.params.ParameterI; -import jalview.ws.rest.InputType; -import jalview.ws.rest.RestServiceDescription; - import java.util.ArrayList; import java.util.Hashtable; -import javax.swing.JOptionPane; import javax.swing.JPanel; import javax.swing.event.ListSelectionEvent; +import jalview.jbgui.GRestInputParamEditDialog; +import jalview.ws.params.InvalidArgumentException; +import jalview.ws.params.OptionI; +import jalview.ws.params.ParameterI; +import jalview.ws.rest.InputType; +import jalview.ws.rest.RestServiceDescription; import net.miginfocom.swing.MigLayout; public class RestInputParamEditDialog extends GRestInputParamEditDialog @@ -53,8 +51,8 @@ public class RestInputParamEditDialog extends GRestInputParamEditDialog .newInstance()); } catch (Throwable x) { - System.err - .println("Unexpected exception when instantiating rest input type."); + System.err.println( + "Unexpected exception when instantiating rest input type."); x.printStackTrace(); } return null; @@ -103,8 +101,9 @@ public class RestInputParamEditDialog extends GRestInputParamEditDialog { okcancel.add(frame.cancel); okcancel.add(frame.ok); - frame.initDialogFrame(dpane, true, true, "Edit parameter for service " - + currentservice.getName(), 600, 800); + frame.initDialogFrame(dpane, true, true, + "Edit parameter for service " + currentservice.getName(), 600, + 800); initTypeLists(); reply = JvOptionPane.CANCEL_OPTION; @@ -159,14 +158,14 @@ public class RestInputParamEditDialog extends GRestInputParamEditDialog newType.token = tok.getText().trim(); try { - newType.configureFromArgumentI(opanps.get( - newType.getURLtokenPrefix()).getCurrentSettings()); + newType.configureFromArgumentI(opanps + .get(newType.getURLtokenPrefix()).getCurrentSettings()); current = newType; updated = true; } catch (InvalidArgumentException ex) { - System.err - .println("IMPLEMENTATION ERROR: Invalid argument for type : " + System.err.println( + "IMPLEMENTATION ERROR: Invalid argument for type : " + typeList.getSelectedValue() + "\n"); ex.printStackTrace(); } @@ -186,7 +185,8 @@ public class RestInputParamEditDialog extends GRestInputParamEditDialog try { JPanel inopts = new JPanel(new MigLayout()); - ArrayList opts = new ArrayList(), prms = new ArrayList(); + ArrayList opts = new ArrayList(), + prms = new ArrayList(); jtype = (InputType) (type.getConstructor().newInstance()); typeclass.put(jtype.getURLtokenPrefix(), type); // and populate parameters from this type @@ -213,8 +213,8 @@ public class RestInputParamEditDialog extends GRestInputParamEditDialog types.add(jtype.getURLtokenPrefix()); } catch (Throwable x) { - System.err - .println("Unexpected exception when instantiating rest input type."); + System.err.println( + "Unexpected exception when instantiating rest input type."); x.printStackTrace(); } }