Bug 117965 [DataBinding] Change tests plugin to pre-req examples
This will allow the UI tests in examples to make use of the pojo model
tests/org.eclipse.jface.tests.databinding/src/org/eclipse/jface/tests/databinding/scenarios/PropertyScenarios.java
assertEquals("barfoo", text.getText());
	}
	public void testScenario14() {
		Text t1 = new Text(getComposite(), SWT.BORDER);
		Text t2 = new Text(getComposite(), SWT.BORDER);
		getSWTUpdatableFactory().setUpdateTime(IDataBdgContext.TIME_EARLY);
		getDbc().bd(t1, new Property(adventure, "name"), null);
		getDbc().bd(t2, new Property(adventure, "name"), null);
		fal t[] counter = { 0 };
		IUpdatableValue uv = (IUpdatableValue) getDbc().createUpdatable(
				new Property(adventure, "name"));
		uv.addChangeListener(new IChangeListener() {
			public void handleChange(ChangeEvent changeEvent) {
				// Count how many times adventure has changed
				counter[0]++;
			}
		});
		Strg name = adventure.getName() + "Foo";
		enterText(t1, name);
		assertEquals(name, adventure.getName());
		assertEquals(name, t2.getText());
		assertTrue(counter[0] == 1);
		name = name + "Bar";
		uv.setValue(name);
		assertEquals(t1.getText(), adventure.getName());
		assertEquals(2, counter[0]);
	}
}