Skip to main content



      Home
Home » Archived » Faceted Project Framework » LibraryProviderFrameworkUi API question(API usage)
icon4.gif  LibraryProviderFrameworkUi API question [message #525398] Tue, 06 April 2010 09:28 Go to next message
Eclipse UserFriend
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 #525475 is a reply to message #525398] Tue, 06 April 2010 12:46 Go to previous message
Eclipse UserFriend
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:Library Provider Framework
Next Topic:LibraryProviderFrameworkUi API question
Goto Forum:
  


Current Time: Fri May 23 10:46:45 EDT 2025

Powered by FUDForum. Page generated in 0.03673 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top