MCPcopy Index your code
hub / github.com/processing/processing / refreshContribs

Method refreshContribs

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

Source from the content-addressed store, hash-verified

602
603
604 public void refreshContribs(ContributionType ct) {
605 if (ct == ContributionType.LIBRARY) {
606 for (Mode m : getModeList()) {
607 m.rebuildImportMenu();
608 }
609
610 } else if (ct == ContributionType.MODE) {
611 rebuildContribModes();
612 for (Editor editor : editors) {
613 editor.rebuildModePopup();
614 }
615
616 } else if (ct == ContributionType.TOOL) {
617 rebuildToolList();
618 for (Editor editor : editors) {
619 populateToolsMenu(editor.getToolMenu());
620 }
621
622 } else if (ct == ContributionType.EXAMPLES) {
623 rebuildContribExamples();
624 for (Mode m : getModeList()) {
625 m.rebuildExamplesFrame();
626 }
627 }
628 }
629
630
631 // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Callers 2

runMethod · 0.80
runMethod · 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