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

Method commandState

src/main/java/Archive/ArchiveList.java:82–97  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

80 }
81
82 public final void commandState() {
83 menuCommands.removeAllElements();
84 addMenuCommand(cmdNew);
85 if (getItemCount() > 0) {
86 if (t != null) {
87 addMenuCommand(cmdPaste);
88 addMenuCommand(cmdJid);
89 addMenuCommand(cmdSubj);
90 }
91 addMenuCommand(cmdEdit);
92
93 addMenuCommand(cmdDelete);
94 addMenuCommand(cmdDeleteAll);
95 }
96 super.commandState();
97 }
98
99 protected void beginPaint() {
100 mainbar.setElementAt(" ("+getItemCount()+")",1);

Callers

nothing calls this directly

Calls 3

getItemCountMethod · 0.95
addMenuCommandMethod · 0.80
commandStateMethod · 0.65

Tested by

no test coverage detected