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
for (Entry<String, ListenerList> entry : targetedListeners.entrySet()) {
					String partId = entry.getKey();
					for (Object listener : entry.getValue().getListeners()) {
						selectionService.removeSelectionListener(partId,
								(ISelectionListener) listener);
					}
				}
			}
		}
		genericListeners.clear();
		targetedListeners.clear();
		eventBroker.unsubscribe(eventHandler);
	}
	@PostConstruct
	void postConstruct() {
		eventBroker
				.subscribe(UIEvents.buildTopic(UIEvents.Context.TOPIC, UIEvents.Context.CONTEXT),
						eventHandler);
		for (MPart part : partService.getParts()) {
			track(part);
		}
	}
	@Inject
	void setPart(@Optional @Named(IServiceConstants.ACTIVE_PART) final MPart part) {
		if ((part != null) && (activePart != part)) {
			activePart = part;
			IEclipseContext rootContext = serviceRoot.getContext();
			if (rootContext == context) {
				IEclipseContext partContext = part.getContext();
				if (partContext != null) {