Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Tip of the Day/Extending/JSonTipProvider
JSon Tip Provider
A JSon Tip provider requires a JSon file with information. The TipProvider implementation can be very simple. An accompanying JSon file is dynamically fetched from the internet or it is statically included with your bundle.
In case you pull it from the internet, make sure that you do not waste bandwidth by pulling a file that you already have (use the HTTP HEAD function).
Examples
This provider consumes a json file that is stored in its own package. It contains the provider information and an array of tips with embedded html and images.
- Link to the project folder
- The JSON Tip Provider
- The Json file with the information (The Json schema)
- The extension poin
This provider also consumes a json file with provider information and an array of tips, but each tips points to a html page on the internet. Notice that in this case we use a variable to point to a base url. This can be used for local testing purposes.