(ContributionType ct)
| 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 | // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
no test coverage detected