Beautiful. Thank you!
On Mon, 2008-03-31 at 10:25 +0200, Thomas Kappler wrote: > Hi, > > first of all, in the first line of the loop, shouldn't node be nextNode? > > Then, you're directly calling listener methods, which are supposed to > be callbacks, i.e., they are called by the framework when, and after, > a selection or expansion happens. You should use the methods offered > by ITreeState, such as expandNode(node) (as you do with selectNode). > Your listener methods will be called, if you added your listener to > the tree. > > Cheers, > Thomas > > > > final ITreeState treeState = getTreeState(); > > final TreeNode[] path = node.getPath(); > > for( final TreeNode nextNode : path ) > > { > > treeState.selectNode( node, true ); > > nodeExpanded( nextNode ); > > nodeSelected( nextNode ); > > } > > > > invalidateAll(); > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]