Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Faceted Project Framework » LibraryProviderFrameworkUi API question
LibraryProviderFrameworkUi API question [message #572510] Tue, 06 April 2010 09:28 Go to next message
Eric Peters is currently offline Eric Peters
Messages: 27
Registered: July 2009
Junior Member
Hi,

I am using API org.eclipse.jst.common.project.facet.ui.libprov.LibraryProvi derFrameworkUi.createInstallLibraryPanel(Composite, LibraryInstallDelegate, String) to create Library Install panel on a facet wizard page, and getting ClassCastException when 1 of the library providers has an install operation AND a conguration class that does not extend org.eclipse.jst.common.project.facet.core.libprov.user.UserL ibraryProviderInstallOperationConfig. The install operation extends org.eclipse.jst.common.project.facet.core.libprov.LibraryPro viderOperation.

I dug into the LibraryProviderFrameworkUi code where the exception was coming from and indeed somewhere along the line I saw a cast to UserLibraryProviderInstallOperationConfig. Was able to work around the exception by extending UserLibraryProviderInstallOperationConfig but over-riding the validation (as was giving me validation error that a user library must be selected). Indeed one of the libraries being provided to the facet was a user library.

Expect this is a defect and can open a bug with steps to recreate?

Thanks,
Re: LibraryProviderFrameworkUi API question [message #572531 is a reply to message #572510] Tue, 06 April 2010 12:46 Go to previous message
Konstantin Komissarchik is currently offline Konstantin Komissarchik
Messages: 940
Registered: July 2009
Senior Member
It doesn't seem likely that this is a framework bug as there are many cases like the one that you describe and there haven't been any similar problems reported.

A more likely cause is that somewhere in your library provider implementation you've crossed the wires with user library provider components. If you post the stack trace for the ClassCastException that shows where the cast is being made, I will help you narrow down the problem.

- Konstantin
Previous Topic:LibraryProviderFrameworkUi API question
Next Topic:library providers enablement expressions
Goto Forum:
  


Current Time: Fri Aug 22 19:53:45 EDT 2014

Powered by FUDForum. Page generated in 0.01542 seconds