(ContributionType contributionType)
| 86 | |
| 87 | |
| 88 | public void showFrame(ContributionType contributionType) { |
| 89 | ContributionTab showTab = getTab(contributionType); |
| 90 | if (frame == null) { |
| 91 | // Build the Contribution Manager UI on first use. |
| 92 | makeFrame(); |
| 93 | |
| 94 | // Update the list of contribs with what's installed locally. |
| 95 | ContributionListing.updateInstalled(base.getInstalledContribs()); |
| 96 | |
| 97 | // Set the list of categories on first use. If a new category is added |
| 98 | // from an already-installed contrib, or in the downloaded contribs list, |
| 99 | // it won't be included. Yech! But practically speaking… [fry 230114] |
| 100 | getTab(ContributionType.LIBRARY).updateCategoryChooser(); |
| 101 | |
| 102 | // TODO If it's the updates tab, need to reset the list. This is papering |
| 103 | // over a concurrency bug with adding/removing contribs during the |
| 104 | // initial load/startup, but probably always relevant. [fry 230115] |
| 105 | // if (showTab.contribType == null) { |
| 106 | for (ContributionTab tab : tabList) { |
| 107 | //tab.listPanel.model.fireTableDataChanged(); |
| 108 | } |
| 109 | } |
| 110 | tabs.setPanel(showTab); |
| 111 | frame.setVisible(true); |
| 112 | // Avoid the search box taking focus and hiding the 'search' text |
| 113 | tabs.requestFocusInWindow(); |
| 114 | } |
| 115 | |
| 116 | |
| 117 | private void makeFrame() { |
no test coverage detected