Bug 304239 move each core application service to its own package
In M4, some services have their own package, others are provided in core.services. Boris and I talked about moving each service (API) to its own package. Reasons are: - aids with discoverability - helps separate application services from other public API in the core.services package (such as IDisposable, JSONObject) - helps to emphasize that services can be setup and consumed individually - will make it easier to move to separate bundles if that is ever needed This means moving Adapter, Logger, IStatusHandler to their own packages.
tests/org.eclipse.e4.ui.tests/src/org/eclipse/e4/ui/tests/application/HeadlessStartupTest.java
new ExceptionHandler());
		
		appContext.set(Logger.class.getName(), new WorkbenchLogger());
		appContext.set(Adapter.class.getName(), ContextInjectionFactory.inject(
				new EclipseAdapter(), appContext));
		appContext.set(ContextManager.class.getName(), new ContextManager());
		appContext.set(IServiceConstants.ACTIVE_CONTEXTS,
				new ActiveContextsFunction());
		appContext.set(IServiceConstants.ACTIVE_PART,
				new ActivePartLookupFunction());
		appContext.runAndTrack(new IRunAndTrack() {
			public boolean notify(ContextChangeEvent event) {
				IEclipseContext eventsContext = event.getContext();
				Object o = eventsContext.get(IServiceConstants.ACTIVE_PART);
				if (o instanceof MPart) {
					eventsContext.set(IServiceConstants.ACTIVE_PART_ID,
							((MPart) o).getId());
				}
				return true;
			}
			@Override
			public String toString() {
				return "HeadlessStartupTest$RunAndTrack[" 
						+ IServiceConstants.ACTIVE_PART_ID + ']';
			}
		}, null);
		appContext.set(IServiceConstants.INPUT, new ContextFunction() {
			public Object compute(IEclipseContext context, Object[] arguments) {
				Class<?> adapterType = null;
				if (arguments.length > 0 && arguments[0] instanceof Class<?>) {