Bug 331668 ESelectionService should not notify listeners if the active part does not post selections
Even if you do not set a selection provider for your IWorkbenchPart implementation, we are still propagating selection events for that part within the given workbench window.
tests/org.eclipse.e4.ui.tests/src/org/eclipse/e4/ui/tests/application/ESelectionServiceTest.java
public Object otherSelection;
		public void setOtherSelection(Object selection) {
			otherSelection = selection;
		}
	}
	static class UseSelectionHandler {
		public Object selection;
		@Execute
		public void execute(
				@Optional @Named(ESelectionService.SELECTION) Object s) {
			selection = s;
		}
	}
	public void testOnePartSelection() throws Exception {
		MApplication application = ApplicationFactoryImpl.eINSTANCE
				.createApplication();
		MWindow window = BasicFactoryImpl.eINSTANCE.createWindow();
		application.getChildren().add(window);
		application.setSelectedElement(window);
		initialize(applicationContext, application);
		getEngine().createGui(window);
		ProviderPart p = new ProviderPart();
		ContextInjectionFactory.inject(p, window.getContext());
		assertNull(p.input);
		Object selection = new Object();