From c16c1633e1a5acc9f44e4de40b9abbb8a59b99b4 Mon Sep 17 00:00:00 2001 From: jprocter Date: Thu, 1 Apr 2010 16:30:36 +0000 Subject: [PATCH] prevent duplicate service submission links --- src/jalview/ws/EnfinEnvision2OneWay.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/jalview/ws/EnfinEnvision2OneWay.java b/src/jalview/ws/EnfinEnvision2OneWay.java index 8905515..abde7e5 100644 --- a/src/jalview/ws/EnfinEnvision2OneWay.java +++ b/src/jalview/ws/EnfinEnvision2OneWay.java @@ -11,6 +11,7 @@ import jalview.gui.AlignFrame; import jalview.gui.Desktop; import jalview.util.GroupUrlLink; +import java.awt.Component; import java.awt.Cursor; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; @@ -208,6 +209,15 @@ public class EnfinEnvision2OneWay extends DefaultHandler implements Runnable,WSM */ private void addshowLink(JMenu linkMenu, String label, String descr, final GroupUrlLink urlgenerator, final Object[] urlstub) { + Component[] jmi=linkMenu.getMenuComponents(); + for (int i=0; i