(MenuCommand c, VirtualList d)
| 99 | protected boolean smiles; |
| 100 | |
| 101 | public void menuAction(MenuCommand c, VirtualList d) { |
| 102 | if (c == cmdBack) { |
| 103 | destroyView(); |
| 104 | } |
| 105 | |
| 106 | Object o = getFocusedObject(); |
| 107 | if (o == null) { |
| 108 | return; |
| 109 | } |
| 110 | MessageItem mi = (MessageItem) o; |
| 111 | if (mi.msg == null || mi.msg.body == null) { |
| 112 | return; |
| 113 | } |
| 114 | |
| 115 | if (c == cmdUrl) { |
| 116 | Vector urls = mi.getUrlList(); |
| 117 | if (urls != null) { |
| 118 | new MessageUrl(urls); |
| 119 | } |
| 120 | } |
| 121 | |
| 122 | if (c == cmdxmlSkin) { |
| 123 | if (mi.msg.body.indexOf("xmlSkin") > -1) { |
| 124 | ColorTheme.loadSkin(mi.msg.body, 2); |
| 125 | } |
| 126 | } |
| 127 | |
| 128 | //#ifdef CLIPBOARD |
| 129 | if (c == cmdCopy) { |
| 130 | ClipBoardIO.getInstance().set(mi.msg); |
| 131 | } |
| 132 | |
| 133 | if (c == cmdCopyPlus) { |
| 134 | ClipBoardIO.getInstance().append(mi.msg); |
| 135 | } |
| 136 | //#endif |
| 137 | } |
| 138 | |
| 139 | public void commandState() { |
| 140 | //#ifdef CLIPBOARD |
nothing calls this directly
no test coverage detected