MCPcopy Index your code
hub / github.com/BombusMod/BombusMod / cmdOk

Method cmdOk

src/main/java/ui/keys/UserKeyEdit.java:87–102  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

85 }
86
87 public void cmdOk() {
88 if (!editModificatorKey) {
89 u.command_id = UserKeyExec.getCommandID((String) commands_t.items.elementAt(commands_t.getSelectedIndex()));
90 }
91
92 if (origin_key == null) {
93 userKeysList.keyScheme.addKey(u);
94 } else {
95 origin_key.copyFrom(u);
96 }
97
98 if (!editModificatorKey) {
99 userKeysList.commandState();
100 }
101 destroyView();
102 }
103
104 public void eventOk() {
105 if (key_t.selected)

Callers

nothing calls this directly

Calls 6

getCommandIDMethod · 0.95
getSelectedIndexMethod · 0.80
addKeyMethod · 0.80
commandStateMethod · 0.65
copyFromMethod · 0.45
destroyViewMethod · 0.45

Tested by

no test coverage detected