Bug 300173 Reorder of items in ToolBar and Menu doesn't reflect in Renderer
When we DnD of ToolItem or MenuItem in outline of e4 Designer, the designer refreshes with a wrong result. For example, if we have two items: Open and Save in order. When we change the order to Save and Open by moving Save, in Renderer we have only Open.
bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/workbench/ui/renderers/swt/ToolBarRenderer.java
public Object createWidget(final MUIElement element, Object parent) {
		if (!(element instanceof MToolBar) || !(parent instanceof Composite))
			return null;
		int orientation = SWT.HORIZONTAL;
		if (element.getParent() instanceof MTrimContainer<?>) {
			MTrimContainer<?> trimContainer = (MTrimContainer<?>) element
					.getParent();
			SideValue side = trimContainer.getSide();
			if (side.getValue() == SideValue.LEFT_VALUE
					|| side.getValue() == SideValue.RIGHT_VALUE)
				orientation = SWT.VERTICAL;
		}
		ToolBar tb = new ToolBar((Composite) parent, orientation | SWT.WRAP
				| SWT.FLAT | SWT.RIGHT);
		return tb;
	}
}