|TreeViewer setSelection does not work properly [message #652774]
||Sun, 06 February 2011 16:36
Registered: February 2011
I have problems with treeViewer.setSelection method.
My domain model:
When a new component, e.g. "B", is added, the selection of the new component works fine with the following code:
Now I select A to add myList1 after A and execute the same code for the selection. Works fine.
When a new myList2 is added after let's say myListX, the same code is executed:
The selection is not at the desired position of myList2 (indexofMyListX+1), but on myList1.
When I add myList3 after myList2, then myList1 is selected again.
When I add myList4 before myList1, then myList4 is selected (as desired).
When I add myList5 after myList2, then myList4 is selected instead of myList5.
Do you have any advice?
Powered by FUDForum
. Page generated in 0.01830 seconds