Bug 386387 - [Custom] The TreeElements are not preserved between two calls to getElements()
Summary: [Custom] The TreeElements are not preserved between two calls to getElements()
Status: REOPENED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EMF-Facet (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P4 major (vote)
Target Milestone: ---   Edit
Assignee: Gregoire Dupe CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 477442
  Show dependency tree
 
Reported: 2012-08-01 09:20 EDT by Camille Letavernier CLA
Modified: 2020-05-01 11:27 EDT (History)
2 users (show)

See Also:
gdupe: juno+
gdupe: kepler+
gdupe: luna+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Camille Letavernier CLA 2012-08-01 09:20:09 EDT
In the CustomizedTreeContentProvider, calling twice to getElements() with the same input returns two different elements.

Consequently, TreeViewers cannot preserve the selection when they are refreshed. This also causes the tree to be collapsed after each modification.
Comment 1 Gregoire Dupe CLA 2012-08-13 18:32:14 EDT
I've committed a patch for the bug in the branch 0_2_1.

Committed revision 2641.
Comment 2 Gregoire Dupe CLA 2012-08-13 19:06:15 EDT
I've committed the same fix in the trunk.

Committed revision 2642.

The bug should be fixed. Camille, please, could you close this bug until you will be sure that the bug is fixed ?

Regards,
Grégoire
Comment 3 Camille Letavernier CLA 2012-08-20 10:18:47 EDT
This only seems to work partially.

When adding a new child B to an element A, all children of A (i.e. siblings of B) are collapsed. All other cases seem to work correctly.