Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Tree item's object reference
Tree item's object reference [message #457908] Wed, 06 July 2005 15:04
Sai [Srinivasan Sairam] is currently offline Sai [Srinivasan Sairam]Friend
Messages: 36
Registered: July 2009
Member
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
Previous Topic:Grid color of a table
Next Topic:Need browser functionality without using system's default browser (swt.browser.*)
Goto Forum:
  


Current Time: Thu Apr 25 09:43:15 GMT 2024

Powered by FUDForum. Page generated in 0.02212 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top