*/
public static void showUrl(final String url)
{
- showUrl(url, Desktop.instance);
+ if (url!=null && !url.trim().equals("")) {
+ jalview.bin.Console.info("Opening URL: "+url);
+ showUrl(url, Desktop.instance);
+ } else {
+ jalview.bin.Console.warn("Ignoring attempt to show an empty URL.");
+ }
+
}
/**
.getFTSDataFor(getResultTable(), selectedRow,
discoveredStructuresSet);
String pageUrl = row.getModelViewUrl();
+
JPopupMenu popup = new JPopupMenu("3D Beacons");
JMenuItem viewUrl = new JMenuItem("View model web page");
+ if (pageUrl == null || "".equals(pageUrl.trim())) {
+ viewUrl.setEnabled(false);
+ viewUrl.setText("No model page available.");
+ }
viewUrl.addActionListener(new ActionListener()
{
@Override