X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fgui%2FRestInputParamEditDialog.java;h=3f4f29c8f173637136cac647664122fd9168b00e;hb=c19d2a91ca05e052e3408bf5852d88eb5d0608f1;hp=508c55c97d909bb137744867eff66d96ccf6fc2d;hpb=47168f025aefdaa044802bd5f8f510ffe43a4808;p=jalview.git diff --git a/src/jalview/gui/RestInputParamEditDialog.java b/src/jalview/gui/RestInputParamEditDialog.java index 508c55c..3f4f29c 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.2) - * Copyright (C) 2014 The Jalview Authors + * Jalview - A Sequence Alignment Editor and Viewer (Version 2.9.0b2) + * Copyright (C) 2015 The Jalview Authors * * This file is part of Jalview. * @@ -20,6 +20,13 @@ */ 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; @@ -29,13 +36,6 @@ import javax.swing.event.ListSelectionEvent; import net.miginfocom.swing.MigLayout; -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; - public class RestInputParamEditDialog extends GRestInputParamEditDialog implements OptsParametersContainerI { @@ -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);