(MenuCommand c, VirtualList d)
| 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); |
nothing calls this directly
no test coverage detected