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

Bug 323775

Summary: LibraryFacetPropertyPage doesn't commit changes on OK after trip to facets page
Product: [WebTools] WTP Common Tools Reporter: Paul Fullbright <paul.fullbright>
Component: Faceted Project FrameworkAssignee: Konstantin Komissarchik <konstantin>
Status: RESOLVED WORKSFORME QA Contact: Konstantin Komissarchik <konstantin>
Severity: normal    
Priority: P3    
Version: 3.2.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows Vista   
Whiteboard:

Description Paul Fullbright CLA 2010-08-26 20:46:16 EDT
This can best be seen on the JPA properties page.  
- Open the properties on a JPA project that uses a User Library provider.
- Go to the facets page and change the facets (using 'Apply').
- Go back to the JPA properties page.
- Change the particular library used.
- Commit with 'OK'
- The library is not actually changed.

This does not happen when skipping the side trip to the facets page, it does not happen without first populating the JPA properties page, and it does not happen when 'Apply' is used to commit the library change.

It seems there is an extra refresh() done on the LibraryInstallDelegate which ends up re-init()-ing the library install config, and throwing away the UI changes.
Comment 1 Konstantin Komissarchik CLA 2010-09-01 18:47:24 EDT
Will take a look at this scenario.
Comment 2 Konstantin Komissarchik CLA 2010-09-02 11:34:34 EDT
I am not reproducing what you are seeing. I am able to apply facet changes then go to jpa page change the library and have the changes stick after ok.
Comment 3 Paul Fullbright CLA 2010-09-02 14:05:45 EDT
Are you populating the JPA facets page, THEN changing the facets, THEN going back and changing the library configuration?