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

Method menuAction

src/main/java/Archive/ArchiveList.java:112–129  ·  view source on GitHub ↗
(MenuCommand c, VirtualList d)

Source from the content-addressed store, hash-verified

110 }
111
112 public void menuAction(MenuCommand c, VirtualList d) {
113 super.menuAction(c,d);
114
115 Msg m=getMessage(cursor);
116 if (c==cmdNew) { new ArchiveEdit(this, -1, where, this); }
117 if (m==null) return;
118
119 if (c==cmdDelete) { keyClear(); }
120 if (c==cmdDeleteAll) { deleteAllMessages(); redraw(); }
121 if (c==cmdPaste) { pasteData(0); }
122 if (c==cmdSubj) { pasteData(1); }
123 if (c==cmdJid) { pasteData(2); }
124 if (c==cmdEdit) {
125 try {
126 new ArchiveEdit(this, cursor, where, this);
127 } catch (Exception e) {/*no messages*/}
128 }
129 }
130
131 public void reFresh() {
132 archive=new MessageArchive(where);

Callers

nothing calls this directly

Calls 6

getMessageMethod · 0.95
keyClearMethod · 0.95
deleteAllMessagesMethod · 0.95
pasteDataMethod · 0.95
menuActionMethod · 0.65
redrawMethod · 0.45

Tested by

no test coverage detected