| Library provider framework- library deprecation [message #637751] |
Mon, 08 November 2010 12:06  |
Eric D. Peters Messages: 27 Registered: July 2009 |
Junior Member |
|
|
Hi,
I have been successful in using extension points below to transition existing projects using a legacy method to configure libraries. I've also used the message parameter for the legacy-library-provider in order to display additional explanatory information.
Now I'd like to know how to deprecate a library that has been defined using Library Provider Framework in a previous release. My detector is not triggered when already on the new framework so seems not an option. I can define the deprecated library as hidden but would like to also display additional explanatory information (e.g. "You are using a deprecated library, switch to another one"), but the message parameter seems only to have effect when used in the context of legacy-library-provider.
Please help me find the best approach to use- thanks in advance!
<extension point=" org.eclipse.jst.common.project.facet.core.legacyLibraryProvi derDetectors ">
<extension point="org.eclipse.jst.common.project.facet.core.libraryProviders ">
<provider id="mytech-legacy-library-provider" extends="legacy-library-provider" hidden="true">
...
[Updated on: Mon, 08 November 2010 12:07] Report message to a moderator
|
|
|
| Re: Library provider framework- library deprecation [message #638324 is a reply to message #637751] |
Wed, 10 November 2010 15:47  |
Konstantin Komissarchik Messages: 845 Registered: July 2009 |
Senior Member |
|
|
The legacy library provider and the accompanying detectors extension point is only relevant when transitioning a facet to library provider framework. It is not a way to deal with deprecating library providers.
Each library provider defines which parameters (if any) they have. You can only specify a message parameter if the library provider supports showing a message.
You do have the flexibility to override any aspect of the library provider that you are extending, including the UI... So you could take the library provider that you are trying to deprecate and extend its install panel to show your deprecation message.
Another thing that I would recommend is to add a facet validator that detects the presence of deprecated library provider in the project and posts a message into the problems view. You can even attach a quick fix to the problem marker. The faceted project framework includes a very simple validation framework that you can contribute to.
- Konstantin
|
|
|
Powered by
FUDForum. Page generated in 0.01682 seconds