Bug 330389 Prevent recursive focus requests in ContributedPartRenderer
bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/ContributedPartRenderer.java
/*
			 * (non-Javadoc)
			 * 
			 * @see org.eclipse.swt.widgets.Composite#setFocus()
			 */
			@Override
			public boolean setFocus() {
				
				
				MPart part = (MPart) element;
				Object object = part.getObject();
				if (object != null) {
					ContextInjectionFactory.invoke(object, Focus.class,
							part.getContext(), null);
					return true;
				}
				return super.setFocus();
			}
		};
		newComposite.setLayout(new FillLayout(SWT.VERTICAL));
		newWidget = newComposite;
		bindWidget(element, newWidget);
		final MPart part = (MPart) element;
		
		IEclipseContext localContext = part.getContext();
		localContext.set(Composite.class.getName(), newComposite);
		IContributionFactory contributionFactory = (IContributionFactory) localContext
				.get(IContributionFactory.class.getName());
		Object newPart = contributionFactory.create(part.getContributionURI(),
				localContext);