Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Retain the expanded state of CNF TreeViewer using AdapterFactoryContentProvider
Retain the expanded state of CNF TreeViewer using AdapterFactoryContentProvider [message #734661] Sun, 09 October 2011 05:17 Go to next message
Nidhi  is currently offline Nidhi Friend
Messages: 92
Registered: December 2009
Member

Hi,

I had posted this before also but with no luck. Any pointers would be really helpful:

I am using CNF, and reusing the content provider from AdapterFactoryContentProvider. However adding or removing an element from the tree collapse the tree to the container of the node.
How can I retain the expanded state of the tree viewer.

Thanks a lot,
Best Regards,
Nidhi
Re: Retain the expanded state of CNF TreeViewer using AdapterFactoryContentProvider [message #734833 is a reply to message #734661] Mon, 10 October 2011 06:34 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33141
Registered: July 2009
Senior Member
Nidhi,

I don't know much about CNF. Is it the loading and unloading of
resources that's causing it to collapse?


On 09/10/2011 7:17 AM, Nidhi wrote:
> Hi,
>
> I had posted this before also but with no luck. Any pointers would be
> really helpful:
>
> I am using CNF, and reusing the content provider from
> AdapterFactoryContentProvider. However adding or removing an element
> from the tree collapse the tree to the container of the node. How can
> I retain the expanded state of the tree viewer.
>
> Thanks a lot,
> Best Regards,
> Nidhi


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Retain the expanded state of CNF TreeViewer using AdapterFactoryContentProvider [message #734887 is a reply to message #734833] Mon, 10 October 2011 09:55 Go to previous message
saurav sarkar is currently offline saurav sarkarFriend
Messages: 428
Registered: July 2009
Senior Member
Nidhi,

Generally in the case of tree viewers if the object ids dont match then the collapse happens.
For e.g. you call set expand on an object and then that object is actually not in the content provider's children list
then the tree will actually collapse.

Do you use some wrapper nodes ?

cheers,
Saurav


Previous Topic:Missing resource for XSDWildCard
Next Topic:Can I change the persisted xml format?
Goto Forum:
  


Current Time: Thu Apr 25 16:22:56 GMT 2024

Powered by FUDForum. Page generated in 0.03866 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top