2 * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
3 * Copyright (C) $$Year-Rel$$ The Jalview Authors
5 * This file is part of Jalview.
7 * Jalview is free software: you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation, either version 3
10 * of the License, or (at your option) any later version.
12 * Jalview is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty
14 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with Jalview. If not, see <http://www.gnu.org/licenses/>.
19 * The Jalview Authors are detailed in the 'AUTHORS' file.
21 package jalview.ws.jws2;
23 import jalview.gui.AlignFrame;
24 import jalview.ws.api.ServiceWithParameters;
25 import jalview.ws.params.ArgumentI;
26 import jalview.ws.params.WsParamSetI;
27 import java.util.List;
29 import javax.swing.JMenu;
32 * provides metadata for a jabaws2 service instance - resolves names, etc.
37 public abstract class Jws2Client extends jalview.ws.WSClient
40 * instantiate a new service client. preset and arguments are assumed to be
41 * valid for the service
48 public Jws2Client(AlignFrame _alignFrame, WsParamSetI preset,
49 List<ArgumentI> arguments)
51 super(_alignFrame, preset, arguments);
57 // anonymous constructor - used for headless method calls only
62 * Jws2Instance serviceHandle; (non-Javadoc)
64 * @see jalview.ws.WSMenuEntryProviderI#attachWSMenuEntry(javax.swing.JMenu,
65 * jalview.gui.AlignFrame)
67 * @Override public void attachWSMenuEntry(JMenu wsmenu, AlignFrame
68 * alignFrame) { if (serviceHandle==null) { throw new
69 * Error("Implementation error: No service handle for this Jws2 service."); }
70 * attachWSMenuEntry(wsmenu, serviceHandle, alignFrame); }
73 * add the menu item for a particular jws2 service instance
79 abstract void attachWSMenuEntry(JMenu wsmenu,
80 final ServiceWithParameters service,
81 final AlignFrame alignFrame);