Bug 305707 add a way to contribute object providers to dependency injection
tests/org.eclipse.e4.ui.tests/src/org/eclipse/e4/ui/tests/application/Bug299755Test.java
@Inject
		private IEclipseContext context;
		public void setSelection(Object selection) {
			context.modify(IServiceConstants.SELECTION, selection);
		}
	}
	static class In {
		
		@Inject
		InjectionObject object;
		private Object selection;
		@Inject
		@Optional
		void setSelection(@Named(IServiceConstants.SELECTION) Object selection) {
			this.selection = selection;
		}
		public Object getSelection() {
			return selection;
		}
	}
	public void testBug299755() throws Exception {
		
		IEclipseContext windowContext = EclipseContextFactory.create();
		
		windowContext.set(InjectionObject.class.getName(),
				new ContextFunction() {
					@Override
					public Object compute(IEclipseContext context,
							Object[] arguments) {