Bug 319043 [Compatibility] Rendering a new toolbar doesn't cause a layout
When a part goes active and toolitems disappear (like switching from the Java editor gets rid of Toggle Mark Occurrences) the space is not reclaimed. Worse, if there was no space the newly visible items (switching to the Java editor) don't appear. Eric, is their something we should put in the ToolItemRenderer and possible the ToolBarRenderer so they basically say: toolbar.layout(item) or parentShell.layout(toolbar)? PW
bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/ToolBarRenderer.java
private MApplication application;
	HashMap<MToolBar, ArrayList<ArrayList<MToolBarElement>>> pendingCleanup = new HashMap<MToolBar, ArrayList<ArrayList<MToolBarElement>>>();
	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer#init(org.eclipse
	 * .e4.core.contexts.IEclipseContext)
	 */
	@Override
	public void init(IEclipseContext context) {
		super.init(context);
		application = context.get(MApplication.class);
	}
	public Object createWidget(final MUIElement element, Object parent) {
		if (!(element instanceof MToolBar) || !(parent instanceof Composite))
			return null;
		int orientation = SWT.HORIZONTAL;
		MUIElement theParent = element.getParent();
		if (theParent instanceof MTrimBar) {
			MTrimBar trimContainer = (MTrimBar) theParent;
			SideValue side = trimContainer.getSide();
			if (side.getValue() == SideValue.LEFT_VALUE
					|| side.getValue() == SideValue.RIGHT_VALUE)
				orientation = SWT.VERTICAL;
		}
		
		ToolBar tb = null;