Skip to content

Commit

Permalink
Redo ENCODE menu items to eliminate need for a section label. The lab…
Browse files Browse the repository at this point in the history
…el is not seen in the production Mac build
  • Loading branch information
jrobinso committed Dec 3, 2024
1 parent fade54b commit 75fe8eb
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/main/java/org/broad/igv/ui/IGVMenuBar.java
Original file line number Diff line number Diff line change
Expand Up @@ -310,21 +310,17 @@ JMenu createFileMenu() {
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));
chipItem.setAction(new BrowseEncodeAction("ENCODE: ChIP Signals ...", 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));
otherSignalsItem.setAction(new BrowseEncodeAction("ENCODE: Other Signals ...", 0, BrowseEncodeAction.Type.SIGNALS_OTHER, igv));
encodeMenuItems.add(otherSignalsItem);

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

for(JComponent item : encodeMenuItems) {
Expand All @@ -334,7 +330,7 @@ JMenu createFileMenu() {

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

Expand Down

0 comments on commit 75fe8eb

Please sign in to comment.