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

Method refreshContribs

app/src/processing/app/Base.java:658–682  ·  view source on GitHub ↗
(ContributionType ct)

Source from the content-addressed store, hash-verified

656
657
658 public void refreshContribs(ContributionType ct) {
659 if (ct == ContributionType.LIBRARY) {
660 for (Mode m : getModeList()) {
661 m.rebuildImportMenu();
662 }
663
664 } else if (ct == ContributionType.MODE) {
665 rebuildContribModes();
666 for (Editor editor : editors) {
667 editor.rebuildModePopup();
668 }
669
670 } else if (ct == ContributionType.TOOL) {
671 rebuildToolList();
672 for (Editor editor : editors) {
673 populateToolsMenu(editor.getToolMenu());
674 }
675
676 } else if (ct == ContributionType.EXAMPLES) {
677 rebuildContribExamples();
678 for (Mode m : getModeList()) {
679 m.rebuildExamplesFrame();
680 }
681 }
682 }
683
684
685 /**

Callers 4

downloadAndInstallMethod · 0.80
removeContributionMethod · 0.80

Calls 9

getModeListMethod · 0.95
rebuildContribModesMethod · 0.95
rebuildToolListMethod · 0.95
populateToolsMenuMethod · 0.95
rebuildImportMenuMethod · 0.80
rebuildModePopupMethod · 0.80
getToolMenuMethod · 0.80
rebuildExamplesFrameMethod · 0.80

Tested by

no test coverage detected