Bug 46469 [Contributions] widgets: Tooltips for menu/toolbar items should include all key bindings
Tooltips can include short-cut key information. - For example tooltip for resume button can be 'Resume (F8)'. - Short-cut key information can be displayed at a newline, for example Resume F8 - This feature can be configurable so that it can be turned off by experienced users. It can be configured to show 1) nothing 2) 'Resume' 3) 'Resume (F8)' 4) 'F8' 5) 'Resume' F8
bundles/org.eclipse.jface/src/org/eclipse/jface/action/ActionContributionItem.java
((Item) widget).setImage(image == null ? null : localManager
						.createImageWithDefault(image));
			} else if (widget instanceof Button) {
				((Button) widget).setImage(image == null ? null : localManager
						.createImageWithDefault(image));
			}
			
			
			disposeOldImages();
			imageManager = localManager;
			return image != null;
		}
		return false;
	}
	/**
	 * Dispose any images allocated for this contribution item
	 */
	private void disposeOldImages() {
		if (imageManager != null) {
			imageManager.dispose();
			imageManager = null;
		}
	}
	/**
	 * Shorten the given text <code>t</code> so that its length doesn't exceed
	 * the width of the given ToolItem.The default implementation replaces
	 * characters in the center of the original string with an ellipsis ("...").
	 * Override if you need a different strategy.
	 * 
	 * @param textValue