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/JavaCompareUtilities.java
char[] part= new char[2048];
			int read= 0;
			reader= new BufferedReader(new InputStreamReader(is));
			while ((read= reader.read(part)) != -1)
				buffer.append(part, 0, read);
			
			return buffer.toString();
			
		} catch (IOException ex) {
		} finally {
			if (reader != null) {
				try {
					reader.close();
				} catch (IOException ex) {
					JavaPlugin.log(ex);
				}
			}
		}
		return null;
	}
	
	/**
	 * Breaks the given string into lines and strips off the line terminator.
	 */
	static String[] readLines(InputStream is) {
		
		String[] lines= null;
		try {
			StringBuffer sb= null;
			List list= new ArrayList();