Avoid Tree Collapsing [message #175058] |
Mon, 03 March 2008 07:18 |
Eclipse User |
|
|
|
Originally posted by: kamesh.sampath.gmail.com
Hi ,
I was trying the "Integrating EMF and GMF Generated Editors by Volker
Wegert and Alex Shatalin"
I successfully integrated the editor and things are working fine.
I have a small doubt on the same ,
Whenever i save the changes, the tree in the TreeViewer is automatically
collapsed .
Can anyone let me know how to avoid that so that my tree remains in the
last node selected when i clicked "save"
~Kamesh
|
|
|
Re: Avoid Tree Collapsing [message #175110 is a reply to message #175058] |
Mon, 03 March 2008 12:30 |
Eclipse User |
|
|
|
Originally posted by: Shwetha.V.in.bosch.com
Hi Kamesh,
In your xxxDiagramEditor resourceChanged is invoked on save.Here you can
call your treeViewer.refresh(object) to maintain the tree state instead of
treeViewer.setInput(object).This will help you maitain the tree state.
Hope this will of help.
Regards,
Shwetha
|
|
|
|
Powered by
FUDForum. Page generated in 0.02608 seconds