Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "Tip of the Day/Extending/JavaTipProvider"
< Tip of the Day | Extending
(→Examples) |
(→Examples) |
||
Line 12: | Line 12: | ||
* [https://git.eclipse.org/c/platform/eclipse.platform.ua.git/tree/org.eclipse.tips.ide/src/org/eclipse/tips/ide/internal/provider/Tip1_Welcome.java An exampe of a Java Tip with embedded HTML] | * [https://git.eclipse.org/c/platform/eclipse.platform.ua.git/tree/org.eclipse.tips.ide/src/org/eclipse/tips/ide/internal/provider/Tip1_Welcome.java An exampe of a Java Tip with embedded HTML] | ||
* [https://git.eclipse.org/c/platform/eclipse.platform.ua.git/tree/org.eclipse.tips.examples/src/org/eclipse/tips/examples/eclipsetips/TwitterTip.java Example of a Tip embedding a tweet (ugly, but does not require a lot of code)] | * [https://git.eclipse.org/c/platform/eclipse.platform.ua.git/tree/org.eclipse.tips.examples/src/org/eclipse/tips/examples/eclipsetips/TwitterTip.java Example of a Tip embedding a tweet (ugly, but does not require a lot of code)] | ||
− | ** [https://twitter.com/EclipseJavaIDE/status/949238007051235328 | + | ** [https://twitter.com/EclipseJavaIDE/status/949238007051235328 Link to that tweet] |
* [https://git.eclipse.org/c/platform/eclipse.platform.ua.git/tree/org.eclipse.tips.examples/src/org/eclipse/tips/examples/tipsframework/Navigate1Tip.java Example of a Tip with Actions] | * [https://git.eclipse.org/c/platform/eclipse.platform.ua.git/tree/org.eclipse.tips.examples/src/org/eclipse/tips/examples/tipsframework/Navigate1Tip.java Example of a Tip with Actions] | ||
− | * [https://git.eclipse.org/c/platform/eclipse.platform.ua.git/tree/org.eclipse.tips.examples/src/org/eclipse/tips/examples/swttip/SwtTipImpl.java | + | * [https://git.eclipse.org/c/platform/eclipse.platform.ua.git/tree/org.eclipse.tips.examples/src/org/eclipse/tips/examples/swttip/SwtTipImpl.java An implementation of an SWT tip] |
* [https://git.eclipse.org/c/platform/eclipse.platform.ua.git/tree/org.eclipse.tips.examples/src/org/eclipse/tips/examples/eclipsetips/EclipseTipsProvider.java#n46 Declaration of a Wiki tip] | * [https://git.eclipse.org/c/platform/eclipse.platform.ua.git/tree/org.eclipse.tips.examples/src/org/eclipse/tips/examples/eclipsetips/EclipseTipsProvider.java#n46 Declaration of a Wiki tip] | ||
** [https://wiki.eclipse.org/Tip_of_the_Day/Eclipse_Tips/Now_where_was_I the page that contains that tip] | ** [https://wiki.eclipse.org/Tip_of_the_Day/Eclipse_Tips/Now_where_was_I the page that contains that tip] |
Latest revision as of 08:43, 3 June 2018
Java Tip Provider
A Java Tip provider will provide all information about the provider and Tips from normal java classes. Tip objects may be declared statically or be created dynamically.
Examples
This provider is the "Tips about Tips" provider.
Various incarnations of tips
- An exampe of a Java Tip with embedded HTML
- Example of a Tip embedding a tweet (ugly, but does not require a lot of code)
- Example of a Tip with Actions
- An implementation of an SWT tip
- Declaration of a Wiki tip
A provider that fetches new tips whenever it runs out of tips.