JAL-1130 refactored standard hyperlink handler code to desktop
[jalview.git] / src / jalview / gui / WebserviceInfo.java
index 9f8a8a8..51c8e83 100755 (executable)
@@ -822,21 +822,6 @@ public class WebserviceInfo extends GWebserviceInfo implements
 
   public void hyperlinkUpdate(HyperlinkEvent e)
   {
-    if (e.getEventType() == EventType.ACTIVATED)
-    {
-      String url=null;
-      try
-      {
-        url = e.getURL().toString();
-        Desktop.showUrl(url);
-      } catch (Exception x)
-      {
-        if (url!=null) { 
-          Cache.log.error("Couldn't handle string "+url+" as a URL.");
-        }
-        // ignore any exceptions due to dud links.
-      }
-
-    }
+    Desktop.hyperlinkUpdate(e);
   }
 }