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/MasterDetailScenarios.java
}
	public void testScenario01() {
		
		
		
		
		ListViewer listViewer = new ListViewer(getComposite(), SWT.BORDER);
		listViewer.getList().setLayoutData(
				new GridData(SWT.FILL, SWT.FILL, false, false));
		Catalog catalog = SampleData.CATALOG_2005;
		listViewer.setLabelProvider(new LabelProvider() {
			public String getText(Object element) {
				return ((Lodging) element).getName();
			}
		});
		getDbc().bind(listViewer,
				new Property(catalog, "lodgings"), null);
		assertArrayEquals(catalog.getLodgings(), getViewerContent(listViewer).toArray());
		IUpdatableValue selectedLodging = (IUpdatableValue) getDbc()
				.createUpdatable(
						new Property(listViewer,
								ViewersProperties.SINGLE_SELECTION));
		selectedLodging.setValue(SampleData.CAMP_GROUND);
		assertEquals(SampleData.CAMP_GROUND, getViewerSelection(listViewer));
		Text txtName = new Text(getComposite(), SWT.BORDER);
		getDbc().bind(
				txtName,
				new Property(selectedLodging, "name", String.class,
						Boolean.FALSE), null);
		assertEquals(txtName.getText(), SampleData.CAMP_GROUND.getName());