MCPcopy Index your code
hub / github.com/benfry/processing4 / showFrame

Method showFrame

app/src/processing/app/contrib/ManagerFrame.java:88–114  ·  view source on GitHub ↗
(ContributionType contributionType)

Source from the content-addressed store, hash-verified

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() {

Callers 6

handlePrefsMethod · 0.45
openLibrariesMethod · 0.45
openModesMethod · 0.45
openToolsMethod · 0.45
openExamplesMethod · 0.45
openUpdatesMethod · 0.45

Calls 7

getTabMethod · 0.95
makeFrameMethod · 0.95
updateInstalledMethod · 0.95
getInstalledContribsMethod · 0.80
updateCategoryChooserMethod · 0.80
setVisibleMethod · 0.65
setPanelMethod · 0.45

Tested by

no test coverage detected