public void actionPerformed(ActionEvent event) {
String [] visibleAttributes = { "dataType", "cell","antibody", "lab"};
try {
Genome genome = igv.getGenomeManager().getCurrentGenome();
EncodeFileBrowser browser = EncodeFileBrowser.getInstance(genome.getId());
if (browser == null) {
MessageUtils.showMessage("Encode data is not available for " + genome.getDisplayName() + " through IGV.");
return;
}
browser.setVisible(true);
if (browser.isCanceled()) return;
java.util.List<EncodeFileRecord> records = browser.getSelectedRecords();
if (records.size() > 0) {
List<ResourceLocator> locators = new ArrayList<ResourceLocator>(records.size());
for (EncodeFileRecord record : records) {
ResourceLocator rl = new ResourceLocator(record.getPath());
rl.setName(record.getTrackName());