MCPcopy Create free account
hub / github.com/beanshell/beanshell / invokeAndWait

Method invokeAndWait

src/bsh/util/JConsole.java:722–733  ·  view source on GitHub ↗

If not in the event thread run via SwingUtilities.invokeAndWait()

(Runnable run)

Source from the content-addressed store, hash-verified

720 * If not in the event thread run via SwingUtilities.invokeAndWait()
721 */
722 private void invokeAndWait(Runnable run) {
723 if(!SwingUtilities.isEventDispatchThread()) {
724 try {
725 SwingUtilities.invokeAndWait(run);
726 } catch(Exception e) {
727 // shouldn't happen
728 e.printStackTrace();
729 }
730 } else {
731 run.run();
732 }
733 }
734
735 /**
736 The overridden read method in this class will not throw "Broken pipe"

Callers 1

printMethod · 0.95

Calls 2

printStackTraceMethod · 0.80
runMethod · 0.45

Tested by

no test coverage detected