Bug 198201 [DataBinding] Provide POJO observables
There have been quite a few requests on the newsgroup recently about trying to use POJOs and filling up logs with error messages about not being able to register property change event listeners. It would be nice to provide a cleaner solution than using the JavaBean support that we provide today.
tests/org.eclipse.jface.tests.databinding/src/org/eclipse/core/tests/internal/databinding/internal/beans/JavaBeanObservableMapTest.java
private Bean model1;
	private Bean model2;
	private WritableSet set;
	private PropertyDescriptor propertyDescriptor;
	private JavaBeanObservableMap map;
	protected void setUp() throws Exception {
		ThreadRealm realm = new ThreadRealm();
		realm.init(Thread.currentThread());
		model1 = new Bean("1");
		model2 = new Bean("2");
		set = new WritableSet(realm, new HashSet(), Bean.class);
		set.add(model1);
		set.add(model2);
		propertyDescriptor = new PropertyDescriptor("value", Bean.class);
		map = new JavaBeanObservableMap(set, propertyDescriptor);
	}
	public void testGetValue() throws Exception {
		assertEquals(
				"The 'value' from the map should be the value of the property of the model.",
				model1.getValue(), map.get(model1));
	}
	public void testSetValueNotifications() throws Exception {
		String oldValue = model1.getValue();
		String newValue = model1.getValue() + model1.getValue();