Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 152977

Summary: [compare] 'Select Next / Previous Change' in java compare selects whole string constant / line comment
Product: [Eclipse Project] JDT Reporter: Markus Keller <markus.kell.r>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert
Version: 3.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Markus Keller CLA 2006-08-07 10:44:23 EDT
I20060807-0010

'Select Next / Previous Change' in java compare selects whole string constant / line comment, even if only a single word has changed. This makes it sometimes hard to spot the difference, since you have to compare those lines 'manually'.

Example:

--- Try.java:
/**
 * Javadoc javadoc Javadoc
 * @author me and eclipse
 */
public class Try {
    //inline comment
    String getString() {
        return "a string constant";
    }
}
--------------
--- Try2.java:
/**
 * Javadoc Javadoc Javadoc
 * @author me and Eclipse
 */
public class Try2 {
    //inline Comment
    String getstring() {
        return "a String constant";
    }
}
--------------

Comparing the two as *.java files only selects the whole '//inline Comment' and '"a String constant"'. Comparing them as *.txt files selects the single words as expected.
Comment 1 Dani Megert CLA 2006-08-07 10:58:30 EDT
Looks like a dup of bug 78063, which was a 3.2 polish item with no action.
Comment 2 Markus Keller CLA 2006-08-07 11:13:16 EDT

*** This bug has been marked as a duplicate of 78063 ***