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/ToolItemRenderer.java
} else {
			if (text == null) {
				text = ""; 
			}
			item.setText(text);
		}
	}
	public Object createWidget(final MUIElement element, Object parent) {
		if (!(element instanceof MToolItem) || !(parent instanceof ToolBar))
			return null;
		ToolBar tb = (ToolBar) parent;
		MToolItem itemModel = (MToolItem) element;
		if (itemModel.getType() == ItemType.SEPARATOR) {
			return new ToolItem(tb, SWT.SEPARATOR);
		}
		
		int flags = itemModel.getChildren().size() > 0 ? SWT.DROP_DOWN : 0;
		if (itemModel.getType() == ItemType.PUSH)
			flags |= SWT.PUSH;
		else if (itemModel.getType() == ItemType.CHECK)
			flags |= SWT.CHECK;
		else if (itemModel.getType() == ItemType.RADIO)
			flags |= SWT.RADIO;
		ToolItem newItem = new ToolItem((ToolBar) parent, flags);
		if (itemModel.getLabel() != null)
			newItem.setText(itemModel.getLabel());
		if (itemModel.getTooltip() != null)
			newItem.setToolTipText(itemModel.getTooltip());
		newItem.setImage(getImage((MUILabel) element));
		newItem.setEnabled(itemModel.isEnabled());