Bug 147530 [DataBinding] Provide event objects for change listeners
Before data binding goes 1.0 it would be wise to provide EventObjects for the following listeners to ensure that the API doesn't preclude future expansion of the values supplied to listeners. Interfaces that would be affected: * IValueChangeListener * IValueChangingListener * IListChangeListener * ISetChangeListener * IMappingChangeListener
tests/org.eclipse.jface.tests.databinding/src/org/eclipse/jface/tests/databinding/observable/ThreadRealmTest.java
}
        if (thread != null && thread.isAlive()) {
            thread.interrupt();
        }
    }
    public void testInvokeObservableFromInvalidRealm() throws Exception {
        final ThreadRealm threadRealm = new ThreadRealm();
        thread = new Thread();
        threadRealm.init(thread);
        WritableValue value = new WritableValue(threadRealm, String.class);
        try {
            value.getValue();
            fail("exception should have been thrown");
        } catch (AssertionFailedException e) {
        }
    }
    public void testThreadRealm() throws Exception {
        final String endValue = "value";
        final ThreadRealm threadRealm = new ThreadRealm();
        Runnable runnable = new Runnable() {
            public void run() {
                threadRealm.block();
            }
        };
        thread = new Thread(runnable);
        thread.start();
        threadRealm.init(thread);
        final WritableValue value = new WritableValue(threadRealm, String.class);
        ValueChangeCounter counter = new ValueChangeCounter();
        value.addValueChangeListener(counter);