Bug 322226 Make org.eclipse.e4.ui.di free from SWT
The bundle should not depend on SWT because this leads to a dependency on SWT for org.eclipse.e4.ui.workbench which is violating the core design of e4.
bundles/org.eclipse.e4.ui.di/src/org/eclipse/e4/ui/internal/di/UIEventObjectSupplier.java
class UIEventHandler implements EventHandler {
		final protected IRequestor requestor;
		final private String topic;
		public UIEventHandler(String topic, IRequestor requestor) {
			this.topic = topic;
			this.requestor = requestor;
		}
		public void handleEvent(org.osgi.service.event.Event event) {
			addCurrentEvent(topic, event);
			requestor.resolveArguments();
			removeCurrentEvent(topic);
			Display display = getDisplay();
			if (display == null || display.isDisposed()) {
				if (logger != null)
					logger.log(Level.WARNING, "No display found to process UI event " + event);
				return;
			}
			display.syncExec(new Runnable() {
				public void run() {
					requestor.execute();
				}
			});
		}