import ext.vamsas.*;
import jalview.gui.*;
-public abstract class WSClient
+public abstract class WSClient implements WSMenuEntryProviderI
{
/**
* WSClient holds the basic attributes that are displayed to the user for all
--- /dev/null
+package jalview.ws;
+
+import jalview.gui.AlignFrame;
+
+import javax.swing.JMenu;
+
+public interface WSMenuEntryProviderI
+{
+ /**
+ * Called by the AlignFrame web service menu constructor to enable a service
+ * instance to add menu entries.
+ *
+ * @param wsmenu
+ * the menu to which any menu entries/sub menus are to be attached
+ * @param alignFrame
+ * the alignFrame instance that provides input data for the service
+ */
+ public void attachWSMenuEntry(JMenu wsmenu, final AlignFrame alignFrame);
+}