Setup keybind collections.
()
| 36 | * Setup keybind collections. |
| 37 | */ |
| 38 | public void setup() { |
| 39 | if (keybindProviders.isEmpty()) { |
| 40 | Collection<KeybindProviderPlugin> keybindProviders = PluginsManager.getInstance() |
| 41 | .ofType(KeybindProviderPlugin.class); |
| 42 | globalBinds.putAll(keybindProviders.stream() |
| 43 | .collect(Collectors.toMap(provider -> provider, KeybindProviderPlugin::createGlobalBindings))); |
| 44 | classViewBinds.putAll(keybindProviders.stream() |
| 45 | .collect(Collectors.toMap(provider -> provider, KeybindProviderPlugin::createClassViewBindings))); |
| 46 | fileViewBinds.putAll(keybindProviders.stream() |
| 47 | .collect(Collectors.toMap(provider -> provider, KeybindProviderPlugin::createFileViewBindings))); |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | /** |
| 52 | * @return Active global binds and their actions. |
nothing calls this directly
no test coverage detected