Bug 4381 Replace from local histroy - workspace element included
- modify a CU in the workspace - select the CU - activate "Replace from local history" - the workspace element is included in the local histroy, but a histroy never includes the actual element. I was really suprised seeing the element.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/TextBufferNode.java
private TextBuffer fBuffer;
	private String fName;
	
	JavaTextBufferNode(TextBuffer buffer, String name) {
		fBuffer= buffer;
	}
	
	public String getName() {
		return fName;
	}
	
	public String getType() {
		return "java";
	}
	
	public Image getImage() {
		return null;
	}
	
	public InputStream getContents() {
		return new ByteArrayInputStream(fBuffer.getContent().getBytes());
	}
}