Bug 18060 Last character of Property Compare is clipped.
I was comparing the loaded version of one of our plugin.properities files with one in the repository. The files are typed as binary. The first version of the file had one line: pluginName = Standard Widget Toolkit The second file had two lines: pluginName = Standard Widget Toolkit providerName = Eclipse.org When I select the files in the text comparison browser, I correctly see "one line changed to two lines". However, when I pick the two properties individually, in the Property Compare view, the last character of the file is clipped off. So, if I pick "pluginName" I see pluginName = Standard Widget Toolki displayed in the left pane, and if I pick "providerName" I see providerName = Eclipse.or displayed in the right pane.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/PropertiesStructureCreator.java
if (valuePos < len)
        		if (SEPARATORS.indexOf(line.charAt(valuePos)) != -1)
            		valuePos++;
     		while (valuePos < len) {
        		if (WHITESPACE.indexOf(line.charAt(valuePos)) == -1)
            		break;
        		valuePos++;
    		}
    
    		String key= convert(line.substring(keyPos, separatorPos));
    		if (key.length() > 0) {
    					
 				if (start < 0)
					start= lineStart;
    			
	    		String value= ""; 
				if (separatorPos < len)
					value= convert(line.substring(valuePos, len));
						    		
	    		int length= (args[1]-1) - start;
	     		new PropertyNode(root, 0, key, value, doc, start, length);
 				start= -1;
   			}
		}
	}
	private boolean needNextLine(String line) {
		int slashes= 0;
		int ix= line.length() - 1;
		while ((ix >= 0) && (line.charAt(ix--) == '\\'))
			slashes++;