Danny Shevitz | 17 Jul 22:22

in TreeNode, what is the difference between add and move traits

I've been looking at the source and I can't figure out what the difference
is between the 'add' and 'move' traits in a TreeNode. I am aware the the
'move' trait can be a list of tuples to convert type, but if you just gave 
it a singleton, it seems identical in all respects to 'add'.

Can someone please enlighten me?

thanks,
D
David C. Morrill | 18 Jul 17:41

Re: in TreeNode, what is the difference between add and move traits

Danny Shevitz wrote:
> I've been looking at the source and I can't figure out what the difference
> is between the 'add' and 'move' traits in a TreeNode. I am aware the the
> 'move' trait can be a list of tuples to convert type, but if you just gave 
> it a singleton, it seems identical in all respects to 'add'.
>
> Can someone please enlighten me?
>
>   

You are correct that they are almost identical. As I recall, the 
difference is that the items in the 'add' list can be added by the user 
by right clicking on the node and adding them from the context menu. 
Whereas the 'move' items must already exist somewhere in the tree and 
can be moved to be children of the node. Of course 'add' items can also 
be 'moved', so they are a superset of 'move' items functionally.

Hope that helps...

Dave Morrill

Gmane