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