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

Method commandState

src/main/java/Messages/MessageList.java:139–153  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

137 }
138
139 public void commandState() {
140//#ifdef CLIPBOARD
141 addMenuCommand(cmdCopy);
142 if (!ClipBoardIO.getInstance().isEmpty()) {
143 addMenuCommand(cmdCopyPlus);
144 }
145//#endif
146 MessageItem mi = (MessageItem) getFocusedObject();
147 if (mi == null) return;
148
149 if (isHasScheme())
150 addMenuCommand(cmdxmlSkin);
151 if (isHasUrl())
152 addMenuCommand(cmdUrl);
153 }
154
155 public boolean isHasScheme() {
156 if (getItemCount() < 1) {

Callers

nothing calls this directly

Calls 6

getInstanceMethod · 0.95
isHasSchemeMethod · 0.95
isHasUrlMethod · 0.95
addMenuCommandMethod · 0.80
getFocusedObjectMethod · 0.80
isEmptyMethod · 0.45

Tested by

no test coverage detected