[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Tree item's object reference

Hello
We have an application where we have two trees (lets say, drag tree and drop tree). A link line is created when the user drag an item from drag tree and drop on to the drop tree. Since the tree can be huge (10,000 + nodes), for the performance and optimization reasons, I cached the drag and drop tree item object references (so that, on refresh, the links can be redrawn quickly). Also there is a provision to add a new (tree) item dynamically. Assume that there is a link drawn from item A to item B. The problem is, if the user adds a new item C just above the item B, then the newly added tree item is getting the object reference of item B and the existing item B is getting new object reference. Because of this, after the new item is added, the link is drawn from item A to C.


Any one has any suggestion / idea to handle this scenario in a correct way .?


Thanks

Sai