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
bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/workbench/ui/internal/SelectionServiceImpl.java
@Inject
	private IEventBroker eventBroker;
	private EventHandler eventHandler = new EventHandler() {
		public void handleEvent(Event event) {
			Object element = event.getProperty(UIEvents.EventTags.ELEMENT);
			if (element instanceof MPart) {
				MPart part = (MPart) element;
				IEclipseContext context = part.getContext();
				if (context != null && isInContainer(part)) {
					track(part);
				}
			}
		}
	};
	private MPart activePart;
	@PreDestroy
	void preDestroy() {
		IEclipseContext rootContext = serviceRoot.getContext();
		if (rootContext != null && rootContext != context) {
			if (!genericListeners.isEmpty()) {
				ESelectionService selectionService = (ESelectionService) rootContext
						.get(ESelectionService.class.getName());
				Object[] listeners = genericListeners.getListeners();
				for (Object listener : listeners) {
					selectionService.removeSelectionListener((ISelectionListener) listener);
				}
			}
			if (!targetedListeners.isEmpty()) {
				ESelectionService selectionService = (ESelectionService) rootContext
						.get(ESelectionService.class.getName());