Bug 64105 Cannot set data in clipboard [ccp]
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/ClipboardOperationAction.java
Object textData= clipboard.getContents(TextTransfer.getInstance());
			Object rtfData= clipboard.getContents(RTFTransfer.getInstance());
			
			ArrayList datas= new ArrayList(3);
			ArrayList transfers= new ArrayList(3);
			if (textData != null) {
				datas.add(textData);
				transfers.add(TextTransfer.getInstance());
			}
			if (rtfData != null) {
				datas.add(rtfData);
				transfers.add(RTFTransfer.getInstance());
			}
			datas.add(clipboardData);
			transfers.add(fgTransferInstance);
			Transfer[] dataTypes= (Transfer[]) transfers.toArray(new Transfer[transfers.size()]);
			Object[] data= datas.toArray();
			clipboard.setContents(data, dataTypes);
		}
	}
	
	private boolean isNonTrivialSelection(ITextSelection selection) {
		if (selection.getLength() < 30) {
			String text= selection.getText();
			for (int i= 0; i < text.length(); i++) {
				if (!Character.isJavaIdentifierPart(text.charAt(i))) {
					return true;
				}
			}