Bug 338559 ui.services has a dependency on SWT
bundles/org.eclipse.e4.ui.di/src/org/eclipse/e4/ui/internal/di/UIEventObjectSupplier.java
if( contextRealm == null ) {
				if (logger != null)
					logger.log(Level.WARNING, "No realm found to process UI event " + event);
				return;
			} else {
				contextRealm.exec(new Runnable() {
					public void run() {
						requestor.execute();
					}
				});
			}
		}		
	}
	
	@Inject
	protected Realm contextRealm;
	
	@Inject @Optional
	protected Logger logger;
	protected EventHandler makeHandler(String topic, IRequestor requestor) {
		return new UIEventHandler(topic, requestor);
	}
	protected String getTopic(IObjectDescriptor descriptor) {
		if (descriptor == null)
			return null;
		UIEventTopic qualifier = descriptor.getQualifier(UIEventTopic.class);
		return qualifier.value();
	}
}