Bug 279452 [Compatibility] Parameterized command mechanism support
Parameterized commands like showView need to be able to access their parameters (like the view ID) PW
bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/workbench/ui/renderers/swt/HandledContributionItem.java
/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.jface.action.ContributionItem#update(java.lang.String)
	 */
	@Override
	public void update(String id) {
		if (widget instanceof MenuItem) {
			updateMenuItem();
		} else if (widget instanceof ToolItem) {
			updateToolItem();
		}
	}
	private void updateMenuItem() {
		MenuItem item = (MenuItem) widget;
		item.setText(model.getName());
		item.setEnabled(canExecuteItem(widget.getDisplay()));
	}
	private void updateToolItem() {
		ToolItem item = (ToolItem) widget;
		final String text = model.getName();
		if (text != null) {
			item.setText(text);
		}
		final String tooltip = model.getTooltip();
		if (tooltip != null) {
			item.setToolTipText(tooltip);
		}
		item.setEnabled(canExecuteItem(widget.getDisplay()));
	}