diff options
Diffstat (limited to 'org.eclipse.tips.ide/src/org/eclipse/tips/ide/internal/provider/Tip3_StartingTips.java')
-rw-r--r-- | org.eclipse.tips.ide/src/org/eclipse/tips/ide/internal/provider/Tip3_StartingTips.java | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/org.eclipse.tips.ide/src/org/eclipse/tips/ide/internal/provider/Tip3_StartingTips.java b/org.eclipse.tips.ide/src/org/eclipse/tips/ide/internal/provider/Tip3_StartingTips.java new file mode 100644 index 000000000..8566a98cf --- /dev/null +++ b/org.eclipse.tips.ide/src/org/eclipse/tips/ide/internal/provider/Tip3_StartingTips.java @@ -0,0 +1,57 @@ +/******************************************************************************* + * Copyright (c) 2018 Remain Software + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * wim.jongman@remainsoftware.com - initial API and implementation + *******************************************************************************/ +package org.eclipse.tips.ide.internal.provider; + +import java.util.Date; + +import org.eclipse.tips.core.IHtmlTip; +import org.eclipse.tips.core.Tip; +import org.eclipse.tips.core.TipImage; +import org.osgi.framework.Bundle; +import org.osgi.framework.FrameworkUtil; + +public class Tip3_StartingTips extends Tip implements IHtmlTip { + + public Tip3_StartingTips(String providerId) { + super(providerId); + } + + @Override + public Date getCreationDate() { + return TipsTipProvider.getDateFromYYMMDD("09/01/2019"); + } + + @Override + public String getSubject() { + return "Opening the Tips Dialog"; + } + + @Override + public String getHTML() { + return "<h2>Tips Available?</h2>In case you do not want to start tips at startup, you can still see if there are tips available. " + + "Check the bottom right corner to see a little lightbulb. This lightbulb only appears if there is something to read." + + "<br><br>" + "Press <b><i>Next Tip</i></b> to see how to navigate Tips.<br><br>"; + } + + private TipImage fImage; + + @Override + public TipImage getImage() { + if (fImage == null) { + try { + Bundle bundle = FrameworkUtil.getBundle(getClass()); + fImage = new TipImage(bundle.getEntry("images/tips/starttip2.png")).setAspectRatio(968, 741, true); + } catch (Exception e) { + } + } + return fImage; + } +}
\ No newline at end of file |