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

Method eventOk

src/main/java/io/file/browse/Browser.java:207–224  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

205 }
206
207 public void eventOk() {
208 File f = ((FileItem) getFocusedObject()).file;
209 if (!f.isDirectory()) {
210 if (browserListener == null) {
211 showFile();
212 return;
213 }
214 destroyView();
215 browserListener.BrowserFilePathNotify(f.getPath());
216 return;
217 }
218 if (!chDir(f.getPath())) {
219 destroyView();
220 return;
221 }
222
223 redraw();
224 }
225
226 public void eventLongOk() {
227 showMenu();

Callers 1

menuActionMethod · 0.95

Calls 6

showFileMethod · 0.95
chDirMethod · 0.95
getFocusedObjectMethod · 0.80
BrowserFilePathNotifyMethod · 0.65
destroyViewMethod · 0.45
redrawMethod · 0.45

Tested by

no test coverage detected