Bug 261037 bindWidget calls
bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/workbench/ui/renderers/swt/CompositePartFactory.java
package org.eclipse.e4.workbench.ui.renderers.swt;
import org.eclipse.e4.ui.model.application.Part;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.ToolBar;
import org.eclipse.swt.widgets.Widget;
/**
 * Factory for <code>org.eclipse.e4.workbench.emf.workbench.Composite</code>
 */
public class CompositePartFactory extends SWTPartFactory {
	
	public CompositePartFactory() {
		super();
	}
	public Object createWidget(Part part) {
		final Widget parentWidget = getParentWidget(part);
		
		Widget newWidget = null;
		if (part instanceof Part<?>) {
			Part<?> compositeModel = (Part<?>) part;
			String policy = compositeModel.getPolicy();
			if (policy!=null && (policy.equals("HorizontalComposite")
					|| policy.equals("VerticalComposite"))) {
				Composite composite = new Composite((Composite) parentWidget,
						SWT.NONE);