Bug 314538 Selection service considers context layers incorrectly
in I20100523-1612 I installed the EMF SDK and opened our /org.eclipse.e4.ui.model.workbench/model/UIElements.ecore file. If I open the Properties view it shows the correctly selected element, but if I select a different element in the ecore editor, the Properties view is not updated. PW
tests/org.eclipse.e4.ui.tests/src/org/eclipse/e4/ui/tests/application/ESelectionServiceTest.java
MPart partA = BasicFactoryImpl.eINSTANCE.createPart();
		partA.setElementId("partA"); 
		window.getChildren().add(partA);
		window.setSelectedElement(partA);
		MPart partB = BasicFactoryImpl.eINSTANCE.createPart();
		partB.setElementId("partB"); 
		window.getChildren().add(partB);
		initialize(applicationContext, application);
		getEngine().createGui(window);
		IEclipseContext contextA = partA.getContext();
		IEclipseContext contextB = partB.getContext();
		IEclipseContext windowContext = window.getContext();
		ESelectionService serviceA = (ESelectionService) contextA
				.get(ESelectionService.class.getName());
		ESelectionService serviceB = (ESelectionService) contextB
				.get(ESelectionService.class.getName());
		ESelectionService windowService = (ESelectionService) windowContext
				.get(ESelectionService.class.getName());
		EPartService partService = (EPartService) windowContext
				.get(EPartService.class.getName());
		Object selectionA = new Object();
		Object selectionB = new Object();
		SelectionListener listener = new SelectionListener();
		windowService.addSelectionListener("partB", listener); 
		serviceA.setSelection(selectionA);
		assertNull(listener.getPart());
		assertNull(listener.getSelection());
		listener.reset();
		partService.activate(partB);
		assertEquals(partB, listener.getPart());