igv.doRestoreSession(url, locus, merge);
} catch (Exception ex) {
MessageUtils.showMessage("Error loading url: " + url + " (" + ex.toString() + ")");
}
} else {
ResourceLocator rl = new ResourceLocator(url.trim());
igv.loadTracks(Arrays.asList(rl));
}
}
} else if ((e.getActionCommand().equalsIgnoreCase(LOAD_FROM_DAS))) {
String url = JOptionPane.showInputDialog(IGV.getMainFrame(), ta, "Enter DAS feature source URL",
JOptionPane.QUESTION_MESSAGE);
if (url != null && url.trim().length() > 0) {
ResourceLocator rl = new ResourceLocator(url.trim());
rl.setType("das");
igv.loadTracks(Arrays.asList(rl));
}
} else if ((e.getActionCommand().equalsIgnoreCase(LOAD_GENOME_FROM_URL))) {
String url = JOptionPane.showInputDialog(IGV.getMainFrame(), ta, "Enter URL to .genome or FASTA file",
JOptionPane.QUESTION_MESSAGE);