Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] Selecting a register/bit field under a collapsed node in the Registers View?

I'm working on a fix for Bug 340891 (Find dialog doesn't show registers under collapsed nodes).  After the user chooses a register/bit field in the Find dialog, I want to show and select the register/bit field under a collapsed node in the Registers View. 

Is there a way to show and select an item under a collapsed node?  It looks like it's not possible because the collapsed node has to be expanded first with a call to AbstractTreeViewer.expandToLevel(), which updates the node's children asynchronously and doesn't notify the caller when it's done.  After I call expandToLevel(), I try looking at the child nodes under the newly expanded node and there are no child nodes because it hasn't expanded the node yet.



      


Back to the top