Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 323251

Summary: [PropertiesView] Feature Request for PropertySheetViewer - Categories Do Not Remember The Collapsed/Expanded Tree State When Switching Between Elements Which Have A Set of Varying Categories
Product: [Eclipse Project] Platform Reporter: Andrei Costache <andreicostache1986>
Component: UIAssignee: Platform UI Triaged <platform-ui-triaged>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3    
Version: 4.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows Vista   
Whiteboard:
Attachments:
Description Flags
Proposed Patch none

Description Andrei Costache CLA 2010-08-20 09:51:09 EDT
Build Identifier: M20100211-1343

When switching between different elements which have corresponding categories (PropertySheetCategory) in the PropertySheetViewer, the collapsed/expanded tree state of categories is not remembered. 

For instance, if element X has categories A,B (expanded by default on creation) and we collapse category A, then switch to element Y, which has category B,C, when we switch back to element X, the collapsed behavior of its category A will not be remembered (as the category will be recreated and expanded by default) and therefore the tree of category A will be expanded (although we want it to remember the fact that we formerly collapsed it).

We are based on and have used:
Eclipse 3.5.2, build ID: M20100211-1343
Eclipse UI Library used: org.eclipse.ui.views_3.4.1.M20090826-0800.
OS: Windows Vista SP2.

We have also created a patch for the requested behavior.

Regards,
Andrei Costache

Reproducible: Always
Comment 1 Andrei Costache CLA 2010-08-20 09:52:53 EDT
Created attachment 177097 [details]
Proposed Patch

Created and used a Map to remember the state of the PropertySheetCategory (categories) when expanding or collapsing state and then switching between elements with varying sets of categories.
Comment 2 Eclipse Webmaster CLA 2019-09-06 15:32:50 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.