From 48febdc84301998db870e925550a3662ff74b52b Mon Sep 17 00:00:00 2001 From: jprocter Date: Thu, 1 Apr 2010 14:18:19 +0000 Subject: [PATCH] new interface --- src/jalview/ws/WSClient.java | 2 +- src/jalview/ws/WSMenuEntryProviderI.java | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 src/jalview/ws/WSMenuEntryProviderI.java diff --git a/src/jalview/ws/WSClient.java b/src/jalview/ws/WSClient.java index fdeb01b..5c9164c 100755 --- a/src/jalview/ws/WSClient.java +++ b/src/jalview/ws/WSClient.java @@ -23,7 +23,7 @@ import javax.swing.JMenu; 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 diff --git a/src/jalview/ws/WSMenuEntryProviderI.java b/src/jalview/ws/WSMenuEntryProviderI.java new file mode 100644 index 0000000..49afb91 --- /dev/null +++ b/src/jalview/ws/WSMenuEntryProviderI.java @@ -0,0 +1,19 @@ +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); +} -- 1.7.10.2