()
| 41 | } |
| 42 | |
| 43 | public void eventOk() { |
| 44 | MenuItem me = (MenuItem) getFocusedObject(); |
| 45 | if (me == null) { |
| 46 | return; |
| 47 | } |
| 48 | int index = me.index; |
| 49 | |
| 50 | String body = (String) things.elementAt(index); |
| 51 | int start = body.indexOf('['); |
| 52 | int end = body.indexOf(']', start); |
| 53 | if ((start>=0) || end>start) { |
| 54 | body = body.substring(start+1, end); |
| 55 | } |
| 56 | |
| 57 | try { |
| 58 | Roster.me = null; |
| 59 | Roster.me = new MessageEdit(parentView, contact, body); |
| 60 | Roster.me.show(); |
| 61 | } catch (Exception e) {/*no messages*/} |
| 62 | } |
| 63 | } |
nothing calls this directly
no test coverage detected