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/ListViewerScenario.java
getDbc().bind(
				new Property(listViewer,ViewersProperties.SINGLE_SELECTION),
				new Property(adventure, "defaultLodging"),
				null);
		
		
		assertEquals(((IStructuredSelection)listViewer.getSelection()).getFirstElement(),adventure.getDefaultLodging());
		
		 
		adventure.setDefaultLodging(SampleData.CAMP_GROUND);
		assertEquals(adventure.getDefaultLodging(),SampleData.CAMP_GROUND);
		assertEquals(((IStructuredSelection)listViewer.getSelection()).getFirstElement(),adventure.getDefaultLodging());		
		
		
		listViewer.getList().select(3);
		assertEquals(((IStructuredSelection)listViewer.getSelection()).getFirstElement(),adventure.getDefaultLodging());
		
		
		invokeNonUI(new Runnable(){
			public void run(){
				adventure.setDefaultLodging(SampleData.YOUTH_HOSTEL);
			}
		});
		spinEventLoop(0);
		assertEquals(((IStructuredSelection)listViewer.getSelection()).getFirstElement(),adventure.getDefaultLodging()); 
		
	}
	
}