MCPcopy Index your code
hub / github.com/BombusMod/BombusMod / cmdOk

Method cmdOk

src/main/java/Conference/InviteForm.java:79–94  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

77 }
78
79 public void cmdOk() {
80 String room = (String) conferences.elementAt(conferenceList.getSelectedIndex());
81 String rs = reason.getValue();
82
83 Message inviteMsg = new Message(room);
84 JabberDataBlock x = inviteMsg.addChildNs("x", Conference.NS_MUC + "#user");
85 JabberDataBlock invite = x.addChild("invite", null);
86 String invited = (contact instanceof MucContact) ? ((MucContact) contact).realJid.toString() : contact.jid.getBare();
87
88 invite.setAttribute("to", invited);
89
90 invite.addChild("reason", rs);
91 StaticData.getInstance().getTheStream().send(inviteMsg);
92 parentView = sd.roster;
93 destroyView();
94 }
95}

Callers

nothing calls this directly

Calls 11

addChildMethod · 0.95
setAttributeMethod · 0.95
getInstanceMethod · 0.95
getSelectedIndexMethod · 0.80
addChildNsMethod · 0.80
getBareMethod · 0.80
getTheStreamMethod · 0.80
getValueMethod · 0.45
toStringMethod · 0.45
sendMethod · 0.45
destroyViewMethod · 0.45

Tested by

no test coverage detected