Bug 279452 [Compatibility] Parameterized command mechanism support
Parameterized commands like showView need to be able to access their parameters (like the view ID) PW
tests/org.eclipse.e4.ui.tests/src/org/eclipse/e4/ui/tests/workbench/HandlerTest.java
assertEquals(windowRC, service.executeHandler(HELP_COMMAND_ID));
	}
	public void testDifferentExecutionContexts() throws Exception {
		IEclipseContext appContext = createGlobalContext();
		defineCommands(appContext);
		EHandlerService service = (EHandlerService) appContext
				.get(EHandlerService.class.getName());
		TestHandler handler = new TestHandler(true, HELP_COMMAND_ID);
		service.activateHandler(HELP_COMMAND_ID, handler);
		IEclipseContext window = createContext(appContext, "windowContext");
		appContext.set(IServiceConstants.ACTIVE_CHILD, window);
		EHandlerService windowService = (EHandlerService) window
				.get(EHandlerService.class.getName());
		String windowRC = HELP_COMMAND_ID + ".window";
		TestHandler windowHandler = new TestHandler(true, windowRC);
		windowService.activateHandler(HELP_COMMAND_ID, windowHandler);
		assertEquals(windowRC, service.executeHandler(HELP_COMMAND_ID));
		assertEquals(windowRC, windowService.executeHandler(HELP_COMMAND_ID));
		IEclipseContext dialog = createContext(appContext, "dialogContext");
		EHandlerService dialogService = (EHandlerService) dialog
				.get(EHandlerService.class.getName());
		assertEquals(HELP_COMMAND_ID, dialogService
				.executeHandler(HELP_COMMAND_ID));
	}
	private void defineCommands(IEclipseContext appContext) {
		ECommandService cmdService = (ECommandService) appContext
				.get(ECommandService.class.getName());
		Category category = cmdService.getCategory("cat." + HELP_COMMAND_ID);
		category.define("Help Category", null);
		Command command = cmdService.getCommand(HELP_COMMAND_ID);