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

Method loadAccounts

src/main/java/Account/AccountSelect.java:72–88  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

70 }
71
72 public final void loadAccounts() {
73 Account a;
74 int index = 0;
75 itemsList.removeAllElements();
76 activeAccount = cf.accountIndex;
77 do {
78 a = AccountStorage.createFromStorage(index);
79 if (a != null) {
80 a.setActive(activeAccount == index);
81 itemsList.addElement(new AccountItem(a));
82 index++;
83 }
84 } while (a != null);
85 if (!itemsList.isEmpty()) {
86 moveCursorTo(activeAccount);
87 }
88 }
89
90 public final void commandState() {
91 menuCommands.removeAllElements();

Callers 4

AccountSelectMethod · 0.95
switchAccountMethod · 0.95
startAppMethod · 0.95
BrowserFilePathNotifyMethod · 0.80

Calls 5

createFromStorageMethod · 0.95
setActiveMethod · 0.95
addElementMethod · 0.80
moveCursorToMethod · 0.80
isEmptyMethod · 0.45

Tested by

no test coverage detected