(Command c, Displayable d)
| 184 | } |
| 185 | |
| 186 | public void commandAction(Command c, Displayable d) { |
| 187 | |
| 188 | if (!executeCommand(c, d)) { |
| 189 | |
| 190 | if (c == cmdInsMe) { |
| 191 | insert("/me", 0); |
| 192 | return; |
| 193 | } |
| 194 | if (c == cmdLastMessage) { |
| 195 | setText(to.lastSendedMessage); |
| 196 | return; |
| 197 | } |
| 198 | //#ifdef SMILES |
| 199 | if (c == cmdSmile) { |
| 200 | new SmilePicker(caretPos, this); |
| 201 | return; |
| 202 | } |
| 203 | //#endif |
| 204 | //#ifndef WMUC |
| 205 | if (c == cmdInsNick) { |
| 206 | new AppendNick(to, caretPos, this); |
| 207 | return; |
| 208 | } |
| 209 | //#endif |
| 210 | if (c == cmdCancel) { |
| 211 | composing = false; |
| 212 | body = null; |
| 213 | } |
| 214 | if (c == cmdSuspend) { |
| 215 | composing = false; |
| 216 | if (body != null) { |
| 217 | to.msgSuspended = body.trim(); |
| 218 | body = null; |
| 219 | } |
| 220 | } |
| 221 | |
| 222 | if (c == cmdSend && body == null) { |
| 223 | composing = false; |
| 224 | } |
| 225 | //#ifdef DETRANSLIT |
| 226 | if (c == cmdSendInTranslit) { |
| 227 | sendInTranslit = true; |
| 228 | } |
| 229 | |
| 230 | if (c == cmdSendInDeTranslit) { |
| 231 | sendInDeTranslit = true; |
| 232 | } |
| 233 | //#endif |
| 234 | if (c == cmdSubj) { |
| 235 | if (body == null) { |
| 236 | return; |
| 237 | } |
| 238 | subj = body; |
| 239 | body = null; //"/me "+SR.MS_HAS_SET_TOPIC_TO+": "+subj; |
| 240 | } |
| 241 | // message/composing sending |
| 242 | |
| 243 | destroyView(); |
nothing calls this directly
no test coverage detected