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/HeadlessApplicationTest.java
set.getPackageRegistry().put("http:MApplicationPackage/",
				MApplicationPackage.eINSTANCE);
		Resource resource = set.getResource(initialWorkbenchDefinitionInstance,
				true);
		MApplication application = (MApplication) resource.getContents().get(0);
		application.setContext(appContext);
		appContext.set(MApplication.class.getName(), application); 
		ECommandService cs = (ECommandService) appContext
				.get(ECommandService.class.getName());
		Category cat = cs.defineCategory(MApplication.class.getName(),
				"Application Category", null); 
		EList<MCommand> commands = application.getCommands();
		for (MCommand cmd : commands) {
			String id = cmd.getId();
			String name = cmd.getCommandName();
			cs.defineCommand(id, name, null, cat, null);
		}
		
		EList<MWindow> windows = application.getChildren();
		for (MWindow window : windows) {
			E4Workbench.initializeContext(appContext, window);
		}
		E4Workbench.processHierarchy(application);
		processPartContributions(application.getContext(), resource);
		renderer = createPresentationEngine(getEngineURI());
		return application;
	}
	protected String getEngineURI() {
		return "platform:/plugin/org.eclipse.e4.ui.tests/org.eclipse.e4.ui.tests.application.HeadlessContextPresentationEngine"; 
	}