Bug 164343 [DataBinding] Realm needs consistent Exception handling strategy
tests/org.eclipse.jface.tests.databinding/src/org/eclipse/jface/tests/databinding/observable/ThreadRealm.java
package org.eclipse.jface.tests.databinding.observable;
import java.util.LinkedList;
import org.eclipse.core.databinding.observable.Realm;
import org.eclipse.jface.util.Assert;
/**
 * {@link Realm} that enforces execution to be within a specific
 * {@link Thread}.
 * 
 * @since 3.2
 */
public class ThreadRealm extends Realm {
    private Thread thread;
    private final LinkedList queue = new LinkedList();
    private volatile boolean block;