Eclipse and SWT applications expect the JVM to run the event loop in the main thread and specify -XstartOnFirstThread. This patch modifies Glass to let this happen. Note that the code could be improved to check a system property or pass another flag into Glass. However, there are many other places in the Glass code where [NSThread isMainThread] is checked.
Mac: Allow Glass to run event loop in the main thread
Eclipse and SWT applications expect the JVM to run the event loop in the main thread and specify -XstartOnFirstThread. This patch modifies Glass to let this happen. Note that the code could be improved to check a system property or pass another flag into Glass. However, there are many other places in the Glass code where [NSThread isMainThread] is checked.