152 .stream() |
152 .stream() |
153 .filter(mod -> !mod.systemModule()) |
153 .filter(mod -> !mod.systemModule()) |
154 .map(mod -> new MenuEntry( |
154 .map(mod -> new MenuEntry( |
155 new ResourceKey( |
155 new ResourceKey( |
156 mod.bundleBaseName(), |
156 mod.bundleBaseName(), |
157 mod.menuKey()), |
157 "menuLabel"), |
158 mod.modulePath() + "/", |
158 mod.modulePath() + "/", |
159 mod.defaultPriority())) |
159 mod.defaultPriority())) |
160 .sorted() |
160 .sorted() |
161 .forEachOrdered(mainMenu::add); |
161 .forEachOrdered(mainMenu::add); |
162 } |
162 } |