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

Bug 376224

Summary: [Compare]Add annotations to zero length WORD deletion.
Product: [ECD] Orion Reporter: libing wang <libingw>
Component: ClientAssignee: libing wang <libingw>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: Silenio_Quarti, susan
Version: 0.4   
Target Milestone: 0.5 M1   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description libing wang CLA 2012-04-05 17:42:02 EDT
In char/word level compare, if you are changing a word we always highlight the pair of word annotation in both editors.
But if you are adding or deleting a word there is no way yet to distinguish the pair of the change because one side of the editors has a zero length annotation.

We need a special kind of vertical bar (4 pixel wide), green or red on each side, to present the deletion of a word. This special annotation only appears when you are using "next/previous change" action, or, when you click on a word on one side. This way we are not making multiple bars in the editor.
Comment 1 libing wang CLA 2012-04-05 17:53:41 EDT
fixed with http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=ec8bc3db759c5020f5f7c452b3460a8bfa96fa74.

I found it is really handy when you try to view complicated changes.
Basically you know where you are inserting or deleting a word.
It is not really introducing additional noise because we are only showing this tiny bar when the CURRENT pair of change has an empty word.