MCPcopy Create free account
hub / github.com/PCGen/pcgen / assertIsSwingThread

Method assertIsSwingThread

code/src/java/pcgen/gui3/GuiAssertions.java:64–71  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

62
63
64 public static void assertIsSwingThread()
65 {
66 if (!SwingUtilities.isEventDispatchThread())
67 {
68 throw new WrongThreadException(
69 "expected to be on swing thread - actually on: " + Thread.currentThread().getName());
70 }
71 }
72
73 public static void assertIsNotSwingThread()
74 {

Callers 3

startPCGenFrameMethod · 0.95
createNewCharacterMethod · 0.95

Calls 1

getNameMethod · 0.65

Tested by

no test coverage detected