(int ret)
| 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; |
no test coverage detected