// Path: ECF14/com.opcoach.ecf2014.engine.core/src/com/opcoach/ecf2014/engine/core/impl/DefaultEngineLogger.java
// public class DefaultEngineLogger implements IEngineLogger
// {
// 	
// 	private SimpleDateFormat sdf;
// 	
// 	@Inject
// 	public DefaultEngineLogger() {
// 		sdf = new SimpleDateFormat("HH:mm:ss");
// 	}
// 
// 	@Override
// 	public void logMessage(String message)
// 	{
// 
// 		System.out.println("-> Engine Logger : " + sdf.format(new Date()) + "   " + message);
// 	}
// 
// }


import org.eclipse.e4.core.contexts.ContextFunction;
import org.eclipse.e4.core.contexts.ContextInjectionFactory;
import org.eclipse.e4.core.contexts.IEclipseContext;
import org.eclipse.e4.ui.model.application.MApplication;
import com.opcoach.ecf2014.engine.core.impl.DefaultEngineLogger;
package com.opcoach.ecf2014.engine.core;



public class EngineContextFunction extends ContextFunction
{

	@Override
	public Object compute(IEclipseContext context, String contextKey)
	{
		System.out.println("---> Enter in EngineContextFunction");
// Path: ECF14/com.opcoach.ecf2014.engine.core/src/com/opcoach/ecf2014/engine/core/impl/DefaultEngineLogger.java
// public class DefaultEngineLogger implements IEngineLogger
// {
// 	
// 	private SimpleDateFormat sdf;
// 	
// 	@Inject
// 	public DefaultEngineLogger() {
// 		sdf = new SimpleDateFormat("HH:mm:ss");
// 	}
// 
// 	@Override
// 	public void logMessage(String message)
// 	{
// 
// 		System.out.println("-> Engine Logger : " + sdf.format(new Date()) + "   " + message);
// 	}
// 
// }


// Path: ECF14/com.opcoach.ecf2014.engine.core/src/com/opcoach/ecf2014/engine/core/EngineContextFunction.java
import org.eclipse.e4.core.contexts.ContextFunction;
import org.eclipse.e4.core.contexts.ContextInjectionFactory;
import org.eclipse.e4.core.contexts.IEclipseContext;
import org.eclipse.e4.ui.model.application.MApplication;
import com.opcoach.ecf2014.engine.core.impl.DefaultEngineLogger;

package com.opcoach.ecf2014.engine.core;



public class EngineContextFunction extends ContextFunction
{

	@Override
	public Object compute(IEclipseContext context, String contextKey)
	{
		System.out.println("---> Enter in EngineContextFunction");
		IEngineLogger result = ContextInjectionFactory.make(DefaultEngineLogger.class, context);