Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsLibrary provider framework- library deprecation
https://www.eclipse.org/forums/index.php/mv/msg/199845/637751/#msg_637751
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!
]]>Eric Peters2010-11-08T17:06:25-00:00Re: Library provider framework- library deprecation
https://www.eclipse.org/forums/index.php/mv/msg/199845/638324/#msg_638324
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.