Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 338293 - delete inconsistency between outline and table
Summary: delete inconsistency between outline and table
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Sapphire (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Konstantin Komissarchik CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-25 20:24 EST by Raj Alagumalai CLA
Modified: 2021-11-19 09:22 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Raj Alagumalai CLA 2011-02-25 20:24:16 EST
Build Identifier: 0.2.1.201102251334

delete inconsistency between outline and table

open contacts.xml
add 4 contacts
place cursor on third contact and hit delete
cursor moves to previous element

switch to web sites node and add 4 URLs
place cursor on third URL and hit delete
cursor moves to the next element


Reproducible: Always
Comment 1 Konstantin Komissarchik CLA 2011-03-01 17:26:50 EST
Not going to try to fix this for 0.2.1 release.
Comment 2 Konstantin Komissarchik CLA 2011-04-27 21:55:24 EDT
Fixed. Both places now use the same algorithm, which is formally defined as follows:

Try to select the item following the last to-be-deleted item.
Failing that, try to select the last item not on the to-be-deleted list.

I have also added a unit test for the algorithm.
Comment 3 Ram Venkataswamy CLA 2011-06-01 14:03:38 EDT
verified with build 0.3.0.201105261624
Comment 4 Konstantin Komissarchik CLA 2011-06-03 13:11:46 EDT
Closing.