Community
Participate
Working Groups
I20080325-0100 Compare e.g. contents of the tree in the Properties dialog for org.eclipse.core.expressions from CVS in I20080318-0800 (OK) and I20080325-0100 (multiple child pages shown as top-level pages).
The most likely candidate for this is the fix for bug 219273
I will have a look at this.
Created attachment 93482 [details] Fix Problem happened because the RegistryPageContributor and PropertyPageManager assumed the contributions were in such an order that the parent contributions were before all children. This is not necessarily true. Changed the code to work regardless of the order. Also cleaned up a method name to be less misleading. Maybe even completely leading.
Oh and ran UI and RCP tests against 0325-0100 as well as testing properties and preferences by hand.
I think the only issue I have is the existence of fixPageParent in the IPropertyPageContributor. It seems like there is only one sensible implementation of this method and given that there's only one caller we can probably safely inline the call in PropertyPageContributor.contribute().
Created attachment 93513 [details] Revised per suggestion The reason I did not do this initially was I thought there was some sort of Grand Architecture that had the PropertyPageContributor not be aware of the class of the property pages. And I wanted to be respectful of said G.A. I made the PropertyPageContributor assume the pages were PreferenceNodes. Retested everything.
Looks good to me. It's going into HEAD. I did add one thing, however - you neglected to add your copyright notice to one of the files you changed. I just copied it from another one you modified.
Verified in I20080327-0100
See 224653 for the refactoring opportunity here.