Bug 36526 ErrorDialog leaks a clipboard
Build: 2.1 The JFace ErrorDialog leaks a clipboard instance in the copyToClipboard method: private void copyToClipboard(){ StringBuffer statusBuffer = new StringBuffer(); populateCopyBuffer(status,statusBuffer,0); Clipboard clipboard = new Clipboard(list.getDisplay()); clipboard.setContents( new Object[] {statusBuffer.toString()}, new Transfer[] {TextTransfer.getInstance()} ); } clipboard.dispose() should be called at the end of this method.
bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/ErrorDialog.java
*/
	protected void createButtonsForButtonBar(Composite parent) {
		
		createButton(
			parent,
			IDialogConstants.OK_ID,
			IDialogConstants.OK_LABEL,
			true);
		if (status.isMultiStatus()) {
			detailsButton =
				createButton(
					parent,
					IDialogConstants.DETAILS_ID,
					IDialogConstants.SHOW_DETAILS_LABEL,
					false);
		}
	}
	/**
	 * This implementation of the <code>Dialog</code> framework 
	 * method creates and lays out a composite and calls 
	 * <code>createMessageArea</code> and <code>createCustomArea</code>
	 * to populate it. Subclasses should override <code>createCustomArea</code>
	 * to add contents below the message.
	 */
	protected Control createDialogArea(Composite parent) {
		createMessageArea(parent);
		
		Composite composite = new Composite(parent, SWT.NONE);
		GridLayout layout = new GridLayout();
		layout.marginHeight =