Bug 327592 Remove weird context setting of ctxt.set(IEclipseContext.class.getName(), ctxt)
Getting is not so bad but setting is pretty weird. This should not be necessary.
tests/org.eclipse.e4.ui.tests/src/org/eclipse/e4/ui/tests/application/HeadlessStartupTest.java
return createApplicationContext(createOSGiContext());
	}
	protected IEclipseContext createApplicationContext(
			IEclipseContext osgiContext) {
		assertNotNull(osgiContext);
		final IEclipseContext appContext = osgiContext
				.createChild("Application Context");
		appContext.set(IEclipseContext.class.getName(), appContext);
		appContext.set(
				IContributionFactory.class.getName(),
				new ReflectionContributionFactory(
						(IExtensionRegistry) appContext
								.get(IExtensionRegistry.class.getName())));
		appContext.set(IExceptionHandler.class.getName(),
				new ExceptionHandler());
		
		appContext
				.set(Logger.class.getName(), ContextInjectionFactory.make(
						WorkbenchLogger.class, appContext));
		appContext.set(Adapter.class.getName(),
				ContextInjectionFactory.make(EclipseAdapter.class, appContext));
		appContext.set(ContextManager.class.getName(), new ContextManager());
		appContext.set(IServiceConstants.ACTIVE_CONTEXTS,
				new ActiveContextsFunction());
		appContext.set(IServiceConstants.ACTIVE_PART,
				new ActivePartLookupFunction());
		return appContext;
	}
}