Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-ui-dev] How to fire tree node expand event?

Hello All,

Greetings. I am having an eclipse view containing a tree viewer. I want to
persist the state of the view between the sessions. For this, I record all
the expanded nodes and serialize them as a hashMap. When next session is
started, I build the model of the tree. The tree view is loaded with only
top level elements visible. I want to fire node expand event from setFocus()
function in my view class. I have tried to call setExpanded(),
setExpandedState(), ExpandtoLevel() functions of the tree viewer. But none
of them seem to triger handleTreeExpand() handler of the tree viewer. 

Would anybody has an idea how to do this?

Thanks
Surya


Back to the top