Bug 264256 [CSS] Need margins
Build ID: M1 Steps To Reproduce: This code is a problem because it expects there to be a FillLayout on the parent if(property.equals("border-width")) { ((FillLayout) parent.getLayout()).marginWidth = pixelValue; }
bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/workbench/ui/renderers/swt/SWTPartFactory.java
} else if (widget instanceof Control) {
			swtMenu = new Menu((Control) widget);
			
		} else {
			throw new IllegalArgumentException(
					"The widget must be MenuItem, Decorations, or Control but is: " 
							+ widgetObject);
		}
		for (MMenuItem menuItem : menu.getItems()) {
			createMenuItem(part, swtMenu, menuItem);
		}
		return swtMenu;
	}
	public Object createToolBar(MPart<?> part, Object widgetObject,
			MToolBar toolbar) {
		int orientation = SWT.HORIZONTAL;
		Composite composite = (Composite) widgetObject;
		if (composite.getLayout() instanceof RowLayout) {
			RowLayout rl = (RowLayout) composite.getLayout();
			orientation = rl.type;
		}
		ToolBar swtToolBar = new ToolBar(composite, SWT.FLAT | orientation);
		swtToolBar.setData(PartFactory.OWNING_ME, toolbar);
		EList<MToolBarItem> items = toolbar.getItems();
		if (items != null && items.size() > 0) {
			for (MToolBarItem toolBarItem : toolbar.getItems()) {
				createToolBarItem(part, swtToolBar, toolBarItem);
			}
		}
		return swtToolBar;