Bug 61273 RTF-styles no longer copied in java editor
I20040506-0200 Copying text from the java editor used to copy the selected source range also in RTF format. This no longer works - the only type in the clipboard is text.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/ClipboardOperationAction.java
dataIn.close();
		}
		
		public String[] getImports() {
			return fImports;
		}
		
		public boolean isFromSame(IJavaElement elem) {
			return fOriginHandle.equals(elem.getHandleIdentifier());
		}
		
		public byte[] serialize() throws IOException {
			ByteArrayOutputStream out = new ByteArrayOutputStream();
			DataOutputStream dataOut = new DataOutputStream(out);
			
			dataOut.writeUTF(fOriginHandle);
			dataOut.writeInt(fImports.length);
			for (int i = 0; i < fImports.length; i++) {
				dataOut.writeUTF(fImports[i]);
			}
			
			dataOut.close();
			out.close();
			
			return out.toByteArray();
		}
	}
	
	
	private static class ClipboardTransfer extends ByteArrayTransfer {