Bug 293357 [context] Switch annotation processing to JSR 330
bundles/org.eclipse.e4.core.commands/src/org/eclipse/e4/core/commands/internal/HandlerServiceImpl.java
/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.e4.core.commands.EHandlerService#activateHandler(java.lang.String,
	 * java.lang.Object)
	 */
	public void activateHandler(String commandId, Object handler) {
		String functionId = H_ID + commandId;
		context.set(functionId + H_PREFIX, handler);
		if (context.get(functionId) == null) {
			addFunction(functionId);
		}
	}
	private void addFunction(String functionId) {
		IEclipseContext root = (IEclipseContext) context.get(IContextConstants.ROOT_CONTEXT);
		if (root != null) {
			root.set(functionId, LOOKUP_INSTANCE);
		}
	}
	/**
	 * @param command
	 */
	private void addParmsToContext(ParameterizedCommand command) {
		final Map parms = command.getParameterMap();
		Iterator i = parms.entrySet().iterator();
		while (i.hasNext()) {
			Map.Entry entry = (Map.Entry) i.next();
			context.set((String) entry.getKey(), entry.getValue());
		}
		context.set(PARM_MAP, parms);