MCPcopy Create free account
hub / github.com/benfry/processing4 / selectInput

Method selectInput

core/src/processing/opengl/PSurfaceJOGL.java:1308–1322  ·  view source on GitHub ↗
(String prompt, String callbackMethod,
                          File file, Object callbackObject)

Source from the content-addressed store, hash-verified

1306
1307
1308 @Override
1309 public void selectInput(String prompt, String callbackMethod,
1310 File file, Object callbackObject) {
1311 EventQueue.invokeLater(() -> {
1312 // https://github.com/processing/processing/issues/3831
1313 boolean hide = (sketch != null) &&
1314 (PApplet.platform == PConstants.WINDOWS);
1315 if (hide) setVisible(false);
1316
1317 ShimAWT.selectImpl(prompt, callbackMethod, file,
1318 callbackObject, null, FileDialog.LOAD);
1319
1320 if (hide) setVisible(true);
1321 });
1322 }
1323
1324
1325 @Override

Callers

nothing calls this directly

Calls 2

setVisibleMethod · 0.95
selectImplMethod · 0.95

Tested by

no test coverage detected