MCPcopy
hub / github.com/Col-E/Recaf / setup

Method setup

src/main/java/me/coley/recaf/plugin/PluginKeybinds.java:38–49  ·  view source on GitHub ↗

Setup keybind collections.

()

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 4

getInstanceMethod · 0.95
ofTypeMethod · 0.80
putAllMethod · 0.80
isEmptyMethod · 0.45

Tested by

no test coverage detected