{
try
{
- Platform.openURL(url);
+ jalview.util.BrowserLauncher.openURL(url);
} catch (Exception ex)
{
- JvOptionPane.showInternalMessageDialog(Desktop.getDesktopPane(),
+ JvOptionPane.showInternalMessageDialog(Desktop.desktop,
MessageManager.getString("label.web_browser_not_found_unix"),
MessageManager.getString("label.web_browser_not_found"),
JvOptionPane.WARNING_MESSAGE);
}
/**
- * For the popup menu on the idPanel.
- *
- * Add a late bound groupURL item to the given linkMenu
+ * add a late bound groupURL item to the given linkMenu
*
* @param linkMenu
* @param label
{
try
{
- // Object[] { int[] { number of matches seqs },
- // boolean[] { which matched },
- // StringBuffer[] { segment generated from inputs },
- // String[] { url }
- // }
-
- // TODO bug: urlstub is { int[], boolean[] } but constructFrom
- // requires something else.
-
showLink(urlgenerator.constructFrom(urlstub));
} catch (UrlStringTooLongException e2)
{
* non-positional features if in the Id panel, features at the
* clicked residue if in the sequence panel
* @param groupLinks
- * not implemented -- empty list
*/
public PopupMenu(final AlignmentPanel alignPanel, final SequenceI seq,
List<SequenceFeature> features, List<String> groupLinks)
// add any groupURLs to the groupURL submenu and make it visible
if (groupLinks != null && groupLinks.size() > 0)
{
- // not implemented -- empty list
buildGroupURLMenu(sg, groupLinks);
}
// Add a 'show all structures' for the current selection
showOrHideMenu.add(item);
}
- /**
- *
- * @param sg
- * @param groupLinks
- * not implemented -- empty list
- */
private void buildGroupURLMenu(SequenceGroup sg, List<String> groupLinks)
{
}
}
}
- if (groupLinks.size() == 0)
- {
- return;
- }
// now create group links for all distinct ID/sequence sets.
boolean addMenu = false; // indicates if there are any group links to give
// to user
-
- // not implmeented -- empty list
for (String link : groupLinks)
{
GroupUrlLink urlLink = null;
{
urlset = urlLink.makeUrlStubs(ids, seqstr,
"FromJalview" + System.currentTimeMillis(), false);
- // { int[], boolean[] } only here
} catch (UrlStringTooLongException e)
{
}
groupLinksMenu.add(linkMenus[m]);
}
}
+
groupMenu.add(groupLinksMenu);
}
}
refresh();
};
};
- JalviewColourChooser.showColourChooser(Desktop.getDesktopPane(),
+ JalviewColourChooser.showColourChooser(Desktop.getDesktop(),
title, Color.BLUE, listener);
}