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

Method commandAction

src/main/java/ui/controls/form/EditBox.java:86–111  ·  view source on GitHub ↗
(Command c, Displayable d)

Source from the content-addressed store, hash-verified

84 }
85
86 public void commandAction(Command c, Displayable d){
87 if (t.executeCommand(c, d)) {
88 return;
89 }
90 if (c == cmdRecent) {
91 new TextListBox(this);
92 return;
93 }
94 if (c == cmdOk) {
95 ti.setValue(t.body);
96 if (ti.id != null && t.body != null) {
97 int i = 0;
98 while (i < recentList.size()) {
99 if (t.body.equals((String) recentList.elementAt(i)) || i > 9) {
100 recentList.removeElementAt(i);
101 } else {
102 i++;
103 }
104 }
105 recentList.insertElementAt(t.body, 0);
106 saveRecentList();
107 }
108 }
109
110 VirtualCanvas.getInstance().show(parentList);
111 }
112
113 private void loadRecentList() {
114 recentList=new Vector(10);

Callers

nothing calls this directly

Calls 7

saveRecentListMethod · 0.95
getInstanceMethod · 0.95
executeCommandMethod · 0.45
setValueMethod · 0.45
sizeMethod · 0.45
equalsMethod · 0.45
showMethod · 0.45

Tested by

no test coverage detected