Bug 338559 ui.services has a dependency on SWT
tests/org.eclipse.e4.ui.tests/src/org/eclipse/e4/ui/tests/workbench/InjectionEventTest.java
private EventAdminHelper helper;
	@Override
	protected void setUp() throws Exception {
		super.setUp();
		ensureEventAdminStarted();
		BundleContext bundleContext = Activator.getDefault().getBundle()
				.getBundleContext();
		IEclipseContext localContext = EclipseContextFactory
				.getServiceContext(bundleContext);
		helper = ContextInjectionFactory.make(EventAdminHelper.class,
				localContext);
	}
	public void testEventInjection() {
		IInjector injector = InjectorFactory.getDefault();
		injector.addBinding(MyBinding.class);
		IEclipseContext context = EclipseContextFactory.create();
		context.set(Realm.class, SWTObservables.getRealm(Display.getDefault()));
		InjectTarget target = ContextInjectionFactory.make(InjectTarget.class,
				context);
		
		assertEquals(0, target.counter1);
		assertNull(target.string1);
		assertEquals(0, target.counter2);
		assertNull(target.string2);
		assertEquals(1, target.counter3);
		assertNull(target.string3);
		assertNotNull(target.myBinding);
		
		helper.sendEvent("e4/test/event1", "event1data");
		assertEquals(1, target.counter1);