MCPcopy Create free account
hub / github.com/BombusMod/BombusMod / eventOk

Method eventOk

src/main/java/Menu/JuickThingsMenu.java:43–62  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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}

Callers

nothing calls this directly

Calls 2

getFocusedObjectMethod · 0.80
showMethod · 0.45

Tested by

no test coverage detected