Bug 319022 [DI] [UI]EventObjectSupplier doesn't work with wildcards in topic names
Build Identifier: I20100705-2033 The OSGi spec allows to specify wildcards in topic names, ie, for an action group my/company/{ACTION1,ACTION2} one can listen on "my/company/*". When using a wildcard in the topic in the @EventTopic annotation, the event is received but the Supplier can't find it back, and supplies null to the requestor. The same problem exists with UIEventTopic / UIEventObjectSupplier Reproducible: Always
bundles/org.eclipse.e4.ui.di/src/org/eclipse/e4/ui/internal/di/UIEventObjectSupplier.java
private Display getDisplay() {
			if (contextDisplay != null)
				return contextDisplay;
			Display display = Display.getCurrent();
			if (display != null)
				return display;
			try {
				return Display.getDefault();
			} catch (SWTException e) {
				return null;
			}
		}
	}
	
	@Inject @Optional
	protected Display contextDisplay;
	
	@Inject @Optional
	protected Logger logger;
	protected EventHandler makeHandler(IRequestor requestor) {
		return new UIEventHandler(requestor);
	}
	protected String getTopic(IObjectDescriptor descriptor) {
		if (descriptor == null)
			return null;
		UIEventTopic qualifier = descriptor.getQualifier(UIEventTopic.class);
		return qualifier.value();
	}
}