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

Method HistoryReader

src/main/java/History/HistoryReader.java:53–66  ·  view source on GitHub ↗

Creates a new instance of HistoryReader @param c

(Contact c)

Source from the content-addressed store, hash-verified

51 * @param c
52 */
53 public HistoryReader(Contact c) {
54 super(new Vector());
55 MIPrev = new MessageItem(new Msg(Msg.MESSAGE_TYPE_SYSTEM, null, null, "<---"), smiles);
56 MINext = new MessageItem(new Msg(Msg.MESSAGE_TYPE_SYSTEM, null, null, "--->"), smiles);
57
58 mainbar = new MainBar(c.getName() + ": " + SR.MS_HISTORY);
59
60 hl = new HistoryLoader(c.jid.getBare(), smiles);
61 if (hl.fileSize > 0) {
62 gotoEnd();
63 } else {
64 destroyView();
65 }
66 }
67
68/* TODO: menu command for gotoBegin()/gotoEnd()
69 public void commandState() {

Callers

nothing calls this directly

Calls 4

gotoEndMethod · 0.95
getBareMethod · 0.80
getNameMethod · 0.65
destroyViewMethod · 0.45

Tested by

no test coverage detected