Now, in the TreeStore the onModelChange will execute, and the ChangeEventSource.Add will be chosen. The add method will insert the new child using as index the number of children under the given parent instead of the index from ChangeEvent:

Code:

insert(parent, item, getChildCount(parent), addChildren);

(TreeStore, line 186).

My question is what is the solution to insert a new treeItem at a specific position? Should the TreeStore be modified so that it takes into consideration the index set in the ChangeEvent?