Bug 166600 [DataBinding] Refactor tests to be in the correct packages
tests/org.eclipse.jface.tests.databinding/src/org/eclipse/jface/tests/databinding/observable/ThreadRealm.java
/*******************************************************************************
 * Copyright (c) 2005, 2007 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
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;