Community
Participate
Working Groups
Build ID: I20080613-2000 Steps To Reproduce: Our rcp application has an IProductProvider to create IProduct dynamically. In our product, IProduct.getDefiningBundle() returns different result per window. Problem: Once about.mapping is loaded, that mapping is always used, and never updated, even if IProdut.getDefiningBundle() returns a different bundle later.
Created attachment 105019 [details] Proposed fix This is a proposed fix for ProductProperties.java in org.eclipse.ui.workbench plugin.
I'd be interested in how you rig all of this up at your end. It'd be useful to know for a testcase. Given that this introduces some pretty interesting new behavior I think we need a testcase for this...
(In reply to comment #2) > I'd be interested in how you rig all of this up at your end. Kim, Our RCP app displays different contents per window, like email client shows up on window A, wordprocessor shows up on window B. To switch product per window, we created a dynamic product by declaring <provider> in <org.eclipse.core.runtime.products> in our plugin.xml. This product maintains multiple products internally, and switches product per window, so that the about box displays different contents in each window. That's our use case.
That's pretty clever, but it almost seems a shame that you had to go that route. Did you ever open any bugs with us asking for multiple products?
Created attachment 107089 [details] Test case A test case (requiring four plugins!) that verifies this fix and that this fix doesn't interfere with the latest code for bug 172692
Fix in HEAD. Your patch didn't apply cleanly against HEAD because of bug 172692 but it wasn't too bad.
Verified in I20080915-1800.
Is it possible for you to incorporate this fix in 3.4.2 stream?