Bug 278369 [ui] ExitHandler fails on dependency injection
Simple Example: Until yesterday, I could specify a Handler (that was bound to a command using the workbench model) like this: public class ExitHandler { public void execute(IWorkbench workbench) { workbench.close(); } } Today, I get the exception: java.lang.RuntimeException: could not find satisfiable method execute in class class org.eclipse.e4.demo.contacts.handlers.ExitHandler PW
bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/workbench/ui/internal/Workbench.java
});
	}
	/**
	 * Create the context chain. It both creates the chain for the current
	 * model, and adds eAdapters so it can add new contexts when new model items
	 * are added.
	 * 
	 * @param parentContext
	 *            The parent context
	 * @param part
	 *            needs a context created
	 */
	public static void initializeContext(IEclipseContext parentContext,
			MPart<?> part) {
		final IEclipseContext context;
		if (part.getContext() != null) {
			context = part.getContext();
		} else {
			context = EclipseContextFactory.create(parentContext,
					UISchedulerStrategy.getInstance());
		}
		
		
		final Class[] interfaces = part.getClass().getInterfaces();
		for (Class intf : interfaces) {
			System.err.println("add intf: " + intf.getName()); 
			context.set(intf.getName(), part);
		}
		part.setContext(context);