Bug 205224 [Databinding] Removing LinkedList dependency from Realm
When trying to compile Databinding with GWT-Compiler it would be nice that to replace LinkedList because this is not part of GWT-Classlib and would have to be ported from harmony (with many dependencies)
bundles/org.eclipse.core.databinding.observable/src/org/eclipse/core/databinding/observable/Realm.java
* </p>
	 * <p>
	 * Subclasses should use {@link #safeRun(Runnable)} to run the runnable.
	 * </p>
	 * <p>
	 * Note: This class is not meant to be called by clients and therefore has
	 * only protected access.
	 * </p>
	 * 
	 * @param runnable
	 */
	protected void syncExec(Runnable runnable) {
		SyncRunnable syncRunnable = new SyncRunnable(runnable);
		asyncExec(syncRunnable);
		synchronized (syncRunnable) {
			while (!syncRunnable.hasRun) {
				try {
					syncRunnable.wait();
				} catch (InterruptedException e) {
					Thread.currentThread().interrupt();
				}
			}
		}
	}
	static class SyncRunnable implements Runnable {
		boolean hasRun = false;
		private Runnable runnable;
		SyncRunnable(Runnable runnable) {
			this.runnable = runnable;
		}