package com.opcoach.training.e4.rental.ui;

import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;

/**
 * The activator class controls the plug-in life cycle This class must be
 * registered as a LifeCycleURI to fill the context
 */
public class RentalUIActivator implements BundleActivator
{

	
	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext
	 * )
	 */
	public void start(BundleContext bcontext) throws Exception
	{

	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext
	 * )
	 */
	public void stop(BundleContext context) throws Exception
	{

	}

}

@@ -37,16 +37,128 @@
 al.ui;%0A%0A
+import org.eclipse.e4.core.contexts.EclipseContextFactory;%0Aimport org.eclipse.e4.core.contexts.IEclipseContext;%0A
 import o
@@ -618,24 +618,161 @@
 Exception%0A%09%7B
+%0A%09%09IEclipseContext ct = EclipseContextFactory.getServiceContext(bcontext);%0A%09%09ct.set(RentalUIConstants.PLUGIN_ID + %22context%22, %22My value%22);
 %0A%0A%09%7D%0A%0A%09/*%0A%09 

Add an E4 context on current plugin.