MCPcopy Index your code
hub / github.com/processing/processing / selectCallback

Method selectCallback

core/src/processing/core/PApplet.java:6712–6730  ·  view source on GitHub ↗
(File selectedFile,
                                     String callbackMethod,
                                     Object callbackObject)

Source from the content-addressed store, hash-verified

6710
6711
6712 static private void selectCallback(File selectedFile,
6713 String callbackMethod,
6714 Object callbackObject) {
6715 try {
6716 Class<?> callbackClass = callbackObject.getClass();
6717 Method selectMethod =
6718 callbackClass.getMethod(callbackMethod, new Class[] { File.class });
6719 selectMethod.invoke(callbackObject, new Object[] { selectedFile });
6720
6721 } catch (IllegalAccessException iae) {
6722 System.err.println(callbackMethod + "() must be public");
6723
6724 } catch (InvocationTargetException ite) {
6725 ite.printStackTrace();
6726
6727 } catch (NoSuchMethodException nsme) {
6728 System.err.println(callbackMethod + "() could not be found");
6729 }
6730 }
6731
6732
6733

Callers 1

runMethod · 0.95

Calls 3

getMethodMethod · 0.80
printlnMethod · 0.45
printStackTraceMethod · 0.45

Tested by

no test coverage detected