- // TODO: introduce applet parameter option to dis/en/able URl generation from description
- // hard-disable the construction of URLs from regexes that match the description
-// if (descr != null)
-// {
-// // create link for this URL from description where regex matches
-// String[] urls = urlLink.makeUrls(descr, false);
-// if (urls != null)
-// {
-// for (int u = 0; u < urls.length; u += 2)
-// {
-// addshowLink(linkMenu, label, urls[u + 1]);
-// }
-// }
-// // addshowLink(linkMenu, target, url_pref + id + url_suff);
-// }
+ // Now construct URLs from description but only try to do it for regex URL links
+ if (descr != null && urlLink.getRegexReplace()!=null)
+ {
+ // create link for this URL from description only if regex matches
+ String[] urls = urlLink.makeUrls(descr, true);
+ if (urls != null)
+ {
+ for (int u = 0; u < urls.length; u += 2)
+ {
+ addshowLink(linkMenu, label, urls[u + 1]);
+ }
+ }
+ }