MCPcopy Create free account
hub / github.com/BombusMod/BombusMod / menuAction

Method menuAction

src/main/java/Console/XMLList.java:100–117  ·  view source on GitHub ↗
(MenuCommand c, VirtualList d)

Source from the content-addressed store, hash-verified

98 }
99
100 public void menuAction(MenuCommand c, VirtualList d) {
101 super.menuAction(c, d);
102
103 Msg m = getMessage(cursor);
104 if (c == cmdNew) {
105 stanzaEdit();
106 }
107 if (c == cmdEnableDisable) {
108 toggle();
109 }
110 if (m == null) {
111 return;
112 }
113
114 if (c == cmdPurge) {
115 clearReadedMessageList();
116 }
117 }
118 public boolean longKey(int key) {
119 switch(key) {
120 case 0:

Callers

nothing calls this directly

Calls 5

getMessageMethod · 0.95
stanzaEditMethod · 0.95
toggleMethod · 0.95
menuActionMethod · 0.65

Tested by

no test coverage detected