*/
private JMenu buildGroupURLMenu(SequenceI[] seqs, SequenceGroup sg)
{
-
+ if (groupURLdescr==null || groupURLLinks==null)
+ return null;
// TODO: usability: thread off the generation of group url content so root
// menu appears asap
// sequence only URLs
int[] nsqtype = new int[] { 0,0,0,0,0,0,0,0,0,0};
for (int i = 0; i < groupURLLinks.size(); i++)
{
- String link = groupURLLinks.elementAt(i).toString();
- String descr = groupURLdescr.elementAt(i).toString();
+ String link = (String) groupURLLinks.elementAt(i);
+ String descr = (String) groupURLdescr.elementAt(i);
// boolean specialCase =
// additionalPar.elementAt(i).toString().equals(BACKGROUND);
public void menuSelected(MenuEvent e)
{
- if (refresh)
+ if (refresh && !isRunning())
{
new Thread(new Runnable() {
public void run() {