Skip to content

Commit

Permalink
Rename ENCODE items
Browse files Browse the repository at this point in the history
  • Loading branch information
jrobinso committed Oct 14, 2024
1 parent bfaab9d commit f36d4cc
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion src/main/java/org/broad/igv/ui/IGVMenuBar.java
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,37 @@ JMenu createFileMenu() {
menuItems.add(MenuAndToolbarUtils.createMenuItem(menuAction));
}

addEncodeItems(menuItems, genomeId);
// ENCODE items. These will be hidden / shown depending on genome chosen
JSeparator separator = new JSeparator();
menuItems.add(separator);

JLabel encodeLabel = new JLabel(" ENCODE");
encodeLabel.setFont(encodeLabel.getFont().deriveFont(Font.BOLD));
menuItems.add(encodeLabel);

// Post 2012 ENCODE menu
JMenuItem chipItem = new JMenuItem();
chipItem.setAction(new BrowseEncodeAction("Signals ChIP ...", 0, BrowseEncodeAction.Type.SIGNALS_CHIP, igv));
encodeMenuItems.add(chipItem);

JMenuItem otherSignalsItem = new JMenuItem();
otherSignalsItem.setAction(new BrowseEncodeAction("Signals Other ...", 0, BrowseEncodeAction.Type.SIGNALS_OTHER, igv));
encodeMenuItems.add(otherSignalsItem);

JMenuItem otherItem = new JMenuItem();
otherItem.setAction(new BrowseEncodeAction("Other ...", 0, BrowseEncodeAction.Type.OTHER, igv));
encodeMenuItems.add(otherItem);

for(JComponent item : encodeMenuItems) {
menuItems.add(item);
item.setVisible(EncodeTrackChooser.genomeSupported(genomeId));
}

// UCSC hosted ENCODE menu.
encodeUCSCMenuItem = MenuAndToolbarUtils.createMenuItem(
new BrowseEncodeAction("UCSC Repository (2012) ...", KeyEvent.VK_E, BrowseEncodeAction.Type.UCSC, igv));
encodeUCSCMenuItem.setVisible(EncodeTrackChooser.genomeSupportedUCSC(genomeId));
menuItems.add(encodeUCSCMenuItem);

menuItems.add(new JSeparator());
menuAction = new ReloadTracksMenuAction("Reload Tracks", -1, igv);
Expand Down

0 comments on commit f36d4cc

Please sign in to comment.