From 75fe8eb9afa6a04fc5fa31ae91a90f80c249ca7f Mon Sep 17 00:00:00 2001 From: jrobinso <933148+jrobinso@users.noreply.github.com> Date: Mon, 2 Dec 2024 22:08:16 -0800 Subject: [PATCH] Redo ENCODE menu items to eliminate need for a section label. The label is not seen in the production Mac build --- src/main/java/org/broad/igv/ui/IGVMenuBar.java | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/main/java/org/broad/igv/ui/IGVMenuBar.java b/src/main/java/org/broad/igv/ui/IGVMenuBar.java index 6e36bc449..3c833bece 100644 --- a/src/main/java/org/broad/igv/ui/IGVMenuBar.java +++ b/src/main/java/org/broad/igv/ui/IGVMenuBar.java @@ -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) { @@ -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);