Bug 27530 [Properties view] CopyPropertyAction does not dispose clipboard
build I20021127 CopyPropertyAction allocates a Clipboard but does not dipose it. Should add a dispose method here, and call it from PropertySheetPage.dispose().
bundles/org.eclipse.ui.views/src/org/eclipse/ui/views/properties/CopyPropertyAction.java
IPropertySheetEntry entry = (IPropertySheetEntry)selection.getFirstElement();
		
		StringBuffer buffer = new StringBuffer();
		buffer.append(entry.getDisplayName());
		buffer.append("\t"); 
		buffer.append(entry.getValueAsString());
		
		setClipboard(buffer.toString());
	}
	/** 
	 * Updates enablement based on the current selection
	 */
	public void selectionChanged(IStructuredSelection sel) {
		setEnabled(!sel.isEmpty());
	}
	private void setClipboard(String text) {
		try {
			Object[] data = new Object[] {text};				
			Transfer[] transferTypes = new Transfer[] {TextTransfer.getInstance()};
			clipboard.setContents(data, transferTypes);
		} catch (SWTError e){
			if (e.code != DND.ERROR_CANNOT_SET_CLIPBOARD)
				throw e;
			if (MessageDialog.openQuestion(getPropertySheet().getControl().getShell(), WorkbenchMessages.getString("CopyToClipboardProblemDialog.title"), WorkbenchMessages.getString("CopyToClipboardProblemDialog.message"))) 
				setClipboard(text);
		}	
	}
}