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

Method InfoWindow

src/main/java/Info/InfoWindow.java:67–108  ·  view source on GitHub ↗

Creates a new instance of InfoWindow

()

Source from the content-addressed store, hash-verified

65 * Creates a new instance of InfoWindow
66 */
67 public InfoWindow() {
68 super(SR.MS_ABOUT);
69
70 name = new MultiLine(StaticData.getInstance().getVersionInfo().getName(), StaticData.getInstance().getVersionInfo().getVersionNumber() + "\n" + Config.getOs() + "\nMobile Jabber client");
71 name.selectable = true;
72 itemsList.addElement(name);
73
74 description = new MultiLine("Copyright (c) 2005-2020", "Eugene Stahov (evgs),\nDaniel Apatin (ad)\n \nDistributed under GNU Public License (GPL) v2.0");
75 description.selectable = true;
76 itemsList.addElement(description);
77
78 siteUrl = new LinkString(StaticData.getInstance().getVersionInfo().getUrl()) {
79
80 public void doAction() {
81 BombusMod.getInstance().platformRequest(StaticData.getInstance().getVersionInfo().getUrl());
82 }
83 };
84 itemsList.addElement(siteUrl);
85
86 itemsList.addElement(new SpacerItem(20));
87
88 abilities = new MultiLine("Special thanks", "Advice, aspro, BrennendeR_Komet, 6yp4uk, den_po, Disabler, fregl24, G.L.Fire, gimlet, lgs, m, MaSy, Muxa, NoNameZ, radiance, Sash, spine, spirtamne, Tasha, TiLan, Totktonada, van, vitalyster, voffk, westsibe, zet. \n \nWithout you none of this would not have been!");
89 abilities.selectable = true;
90 itemsList.addElement(abilities);
91
92 itemsList.addElement(new SpacerItem(20));
93
94 StringBuffer memInfo = new StringBuffer(SR.MS_FREE);
95// if (Config.getInstance().widthSystemgc) { _vt
96 System.gc();
97// } _vt
98 memInfo.append(Runtime.getRuntime().freeMemory() >> 10).append("\n").append(SR.MS_TOTAL).append(Runtime.getRuntime().totalMemory() >> 10);
99 memory = new MultiLine(SR.MS_MEMORY, memInfo.toString());
100 memory.selectable = true;
101 itemsList.addElement(memory);
102
103 itemsList.addElement(new SpacerItem(10));
104
105 abilities = new MultiLine("Abilities", getAbilities());
106 abilities.selectable = true;
107 itemsList.addElement(abilities);
108 }
109
110 public void commandState() {
111 menuCommands.removeAllElements();

Callers

nothing calls this directly

Calls 10

getInstanceMethod · 0.95
getOsMethod · 0.95
getAbilitiesMethod · 0.95
getVersionInfoMethod · 0.80
addElementMethod · 0.80
getUrlMethod · 0.80
appendMethod · 0.80
getNameMethod · 0.65
getVersionNumberMethod · 0.65
toStringMethod · 0.45

Tested by

no test coverage detected