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;
28 import java.util.List;
30 import javax.swing.JMenu;
33 * provides metadata for a jabaws2 service instance - resolves names, etc.
38 public abstract class Jws2Client extends jalview.ws.WSClient
41 * instantiate a new service client. preset and arguments are assumed to be
42 * valid for the service
48 public Jws2Client(AlignFrame _alignFrame, WsParamSetI preset,
49 List<ArgumentI> arguments)
51 super(_alignFrame, preset, arguments);
56 // anonymous constructor - used for headless method calls only
60 * Jws2Instance serviceHandle; (non-Javadoc)
62 * @see jalview.ws.WSMenuEntryProviderI#attachWSMenuEntry(javax.swing.JMenu,
63 * jalview.gui.AlignFrame)
65 * @Override public void attachWSMenuEntry(JMenu wsmenu, AlignFrame
66 * alignFrame) { if (serviceHandle==null) { throw new
67 * Error("Implementation error: No service handle for this Jws2 service."); }
68 * attachWSMenuEntry(wsmenu, serviceHandle, alignFrame); }
71 * add the menu item for a particular jws2 service instance
77 abstract void attachWSMenuEntry(JMenu wsmenu,
78 final ServiceWithParameters service,
79 final AlignFrame alignFrame);