From a29d0e7f0b6c5dc04b657a623d46614c9810d43b Mon Sep 17 00:00:00 2001 From: "nor..67" Date: Sat, 26 Jan 2013 04:31:25 +0000 Subject: [PATCH] SDK: - Make Info Window have about help page context - Disable Info Window persistence git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10176 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../com/jme3/gde/welcome/WelcomeScreenTopComponent.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/sdk/jme3-welcome-screen/src/com/jme3/gde/welcome/WelcomeScreenTopComponent.java b/sdk/jme3-welcome-screen/src/com/jme3/gde/welcome/WelcomeScreenTopComponent.java index 8e4c60f23..d88a5c9a4 100644 --- a/sdk/jme3-welcome-screen/src/com/jme3/gde/welcome/WelcomeScreenTopComponent.java +++ b/sdk/jme3-welcome-screen/src/com/jme3/gde/welcome/WelcomeScreenTopComponent.java @@ -14,6 +14,7 @@ import org.openide.awt.ActionID; import org.openide.awt.ActionReference; import org.openide.awt.HtmlBrowser.URLDisplayer; import org.openide.util.Exceptions; +import org.openide.util.HelpCtx; import org.openide.windows.TopComponent; import org.openide.util.NbBundle.Messages; import sun.swing.SwingUtilities2; @@ -27,7 +28,7 @@ autostore = false) @TopComponent.Description( preferredID = "WelcomeScreenTopComponent", //iconBase="SET/PATH/TO/ICON/HERE", -persistenceType = TopComponent.PERSISTENCE_ALWAYS) +persistenceType = TopComponent.PERSISTENCE_NEVER) @TopComponent.Registration(mode = "editor", openAtStartup = true) @ActionID(category = "Window", id = "com.jme3.gde.welcome.WelcomeScreenTopComponent") @ActionReference(path = "Menu/Window" /*, position = 333 */) @@ -40,6 +41,7 @@ preferredID = "WelcomeScreenTopComponent") "HINT_WelcomeScreenTopComponent=Shows news and information about your SDK" }) public final class WelcomeScreenTopComponent extends TopComponent implements HyperlinkListener { + private static final HelpCtx ctx = new HelpCtx("com.jme3.gde.core.about"); // private final RssFeedParser parser = new RssFeedParser(org.openide.util.NbBundle.getMessage(WelcomeScreenTopComponent.class, "WelcomeScreenTopComponent.rss.link")); @@ -143,6 +145,11 @@ public final class WelcomeScreenTopComponent extends TopComponent implements Hyp // parser.updateFeed(); } + @Override + public HelpCtx getHelpCtx() { + return ctx; + } + @Override public void componentClosed() { // TODO add custom code on component closing