MCPcopy Create free account
hub / github.com/OpenSourcePhysics/osp / process

Method process

src/javajs/async/AsyncFileChooser.java:198–210  ·  view source on GitHub ↗
(int ret)

Source from the content-addressed store, hash-verified

196 }
197
198 private void process(int ret) {
199 if (ret != -(-ret))
200 return; // initial JavaScript return is NaN
201 optionSelected = ret;
202 File f = getSelectedFile();
203 if (f == null) {
204 if (cancel != null)
205 cancel.run();
206 } else {
207 if (ok != null)
208 ok.run();
209 }
210 }
211
212 public int getSelectedOption() {
213 return optionSelected;

Callers 4

showDialogMethod · 0.95
showOpenDialogMethod · 0.95
showSaveDialogMethod · 0.95
propertyChangeMethod · 0.95

Calls 1

runMethod · 0.65

Tested by

no test coverage detected