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.
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 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 and 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/swttip/SwtTipImpl.java and implementation of an SWT tip] |
Revision as of 08:42, 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
- and implementation of an SWT tip
- Declaration of a Wiki tip
A provider that fetches new tips whenever it runs out of tips.