X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fgui%2FRestInputParamEditDialog.java;h=9a71770fa0fa2d801ad0b04aa4dda90d2c9c1beb;hb=bd318fe40b8d07db486f47d788dcdc2df8cb9e9c;hp=6e3d9c112d9ba8df779554422dd902ced6a1552e;hpb=ab43013b7e357b84b4abade0dba949668dfb2a0e;p=jalview.git diff --git a/src/jalview/gui/RestInputParamEditDialog.java b/src/jalview/gui/RestInputParamEditDialog.java index 6e3d9c1..9a71770 100644 --- a/src/jalview/gui/RestInputParamEditDialog.java +++ b/src/jalview/gui/RestInputParamEditDialog.java @@ -1,6 +1,6 @@ /* - * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.2b1) - * 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. * @@ -50,7 +50,7 @@ public class RestInputParamEditDialog extends GRestInputParamEditDialog try { return (InputType) (typeclass.get(name).getConstructor() - .newInstance(null)); + .newInstance()); } catch (Throwable x) { System.err @@ -187,7 +187,7 @@ public class RestInputParamEditDialog extends GRestInputParamEditDialog { JPanel inopts = new JPanel(new MigLayout()); ArrayList opts = new ArrayList(), prms = new ArrayList(); - jtype = (InputType) (type.getConstructor().newInstance(null)); + jtype = (InputType) (type.getConstructor().newInstance()); typeclass.put(jtype.getURLtokenPrefix(), type); // and populate parameters from this type OptsAndParamsPage opanp = new OptsAndParamsPage(this, true);