Bug 75711 AstProvider should not create AST if requested by SelectionListenerWithASTManager
3.1 M2 If SelectionListenerWithASTManager waits for an AST and the editor closes we should not create an AST for that one but return null instead.
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 {