Skip to main content

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


You should post your question on the eclipse.platform newsgroup. This mailing list is reserved for discussing the current development of the eclipse ui.

Simon :-)



Surya Tripathi <Surya.Tripathi@xxxxxxxxxxxxx>
Sent by: platform-ui-dev-admin@xxxxxxxxxxx

07/24/03 07:01 PM
Please respond to platform-ui-dev

       
        To:        "'platform-ui-dev@xxxxxxxxxxx'" <platform-ui-dev@xxxxxxxxxxx>
        cc:        
        Subject:        [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
_______________________________________________
platform-ui-dev mailing list
platform-ui-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-ui-dev



Back to the top