On 6/23/05, Anitha <[EMAIL PROTECTED]> wrote: > > The implementation is very similar to the tacos file tree demo. However, the > condition "node==selectedNode" always evaluates to false. I have also tried > the "node.equals(selectedNode)", but that doesn't work either. Any pointers, > suggestions would be greatly appreciated.
first of all i see that in your implementation you have a TreeNode class.. do you really need this? the idea is that your ContentProvider implementation should directly expose your domain objects (so you dont have to create a TreeNode class)... regardless, how does your domain object (TreeNode in this case) implement the equals() method? since you're creating a new instance in your select() listener, you must ensure that the equals(..) is overriden and will return true for a different object instance that's identical... viktor --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
