Community
Participate
Working Groups
Created attachment 201114 [details] Proposed fix tested locally org.eclipse.cdt.dsf.ui.viewmodel.VMDelta overrides base class getIndex() method to return its member variable. It does not override setIndex(int) and that call sets member variable from a base class. As a result code as follows: delta.addNode(original, replacement, IModelDelta.REPLACED).setIndex(5) will not insert new node as expected as the index returned by getIndex will still be 0.
Thanks for the patch. Could you attach it again to bug 309908? *** This bug has been marked as a duplicate of bug 309908 ***