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/scenarios/PropertyScenarios.java
import org.eclipse.core.databdg.beans.BeansObservables;
import org.eclipse.core.databdg.conversion.Converter;
import org.eclipse.core.databdg.conversion.IConverter;
import org.eclipse.core.databdg.conversion.IdentityConverter;
import org.eclipse.core.databdg.observable.IChangeListener;
import org.eclipse.core.databdg.observable.IObservable;
import org.eclipse.core.databdg.observable.value.IObservableValue;
import org.eclipse.core.databdg.validation.IValidator;
import org.eclipse.core.databdg.validation.ValidationStatus;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
import org.eclipse.jface.databdg.swt.SWTObservables;
import org.eclipse.jface.examples.databdg.model.Account;
import org.eclipse.jface.examples.databdg.model.Adventure;
import org.eclipse.jface.examples.databdg.model.Cart;
import org.eclipse.jface.examples.databdg.model.SampleData;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.FocusEvent;
import org.eclipse.swt.events.FocusListener;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Event;
import org.eclipse.swt.widgets.Spner;
import org.eclipse.swt.widgets.Text;
/**
 * To run the tests  this class, right-click and select "Run As JUnit Plug-
 * Test". This will also start an Eclipse stance. To clean up the launch
 * configuration, open up its "Ma" tab and select "[No Application] - Headless
 * Mode" as the application to run.
 */
public class PropertyScenarios extends ScenariosTestCase {