From: jprocter Date: Thu, 1 Apr 2010 16:30:36 +0000 (+0000) Subject: prevent duplicate service submission links X-Git-Tag: Release_2_5~94 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=c16c1633e1a5acc9f44e4de40b9abbb8a59b99b4;p=jalview.git prevent duplicate service submission links --- 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