- add and use local page for WelcomeScreen

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10275 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
nor..67 12 years ago
parent 9df89c56a0
commit 8df1b7e1fa
  1. 52
      sdk/jme3-documentation/src/com/jme3/gde/docs/sdk/welcome/local.html
  2. 2
      sdk/jme3-welcome-screen/src/com/jme3/gde/welcome/Bundle.properties
  3. 7
      sdk/jme3-welcome-screen/src/com/jme3/gde/welcome/WelcomeScreenTopComponent.java

@ -0,0 +1,52 @@
<h1><a>Welcome to the jMonkeyEngine SDK</a></h1>
<div>
<p>
This place will be updated with the latest news about your <acronym title="Software Development Kit">SDK</acronym>.
</p>
</div>
<!-- EDIT1 SECTION "Welcome to the jMonkeyEngine SDK" [1-251] -->
<h3><a>Getting Started</a></h3>
<div>
<p>
Press the &quot;New Project&quot; button to create a new Project. Press the &quot;New File&quot; button to create new java files, materials, scenes, fonts and other files.
</p>
<p>
<img src="nbdocs:/com/jme3/gde/docs/sdk/welcome/new_project.png" class="media" alt=""/>
</p>
</div>
<!-- EDIT2 SECTION "Getting Started" [252-471] -->
<h3><a>Tutorials / Manual</a></h3>
<div>
<p>
By pressing &quot;F1&quot; you can open the manual which contains up to date tutorials, documentation and more to help you get started. You can search the manual contents via the search field up right.
</p>
<p>
<img src="nbdocs:/com/jme3/gde/docs/sdk/welcome/search_field.png" class="media" alt=""/>
</p>
</div>
<!-- EDIT3 SECTION "Tutorials / Manual" [472-735] -->
<h3><a>Updates</a></h3>
<div>
<p>
You can check for incremental updates to the application via the Help menu:
</p>
<p>
<img src="nbdocs:/com/jme3/gde/docs/sdk/welcome/help_update.png" class="media" alt=""/>
</p>
</div>
<!-- EDIT4 SECTION "Updates" [736-] -->
<p><em><a href="http://jmonkeyengine.org/wiki/doku.php/sdk:welcome:3_0rc3?do=export_xhtmlbody">view online version</a></em></p>

@ -5,4 +5,4 @@ OpenIDE-Module-Name=Welcome Screen
OpenIDE-Module-Short-Description=The jMonkeyEngine GDE Welcome Screen
WelcomeScreenTopComponent.http.link=http://jmonkeyengine.org/wiki/doku.php/sdk:welcome:3_0rc3?do=export_xhtmlbody
WelcomeScreenTopComponent.rss.link=http://jmonkeyengine.org/feed/rdf/
WelcomeScreenTopComponent.local.link=nbres:/com/jme3/gde/docs/sdk/welcome/3_0rc3.html
WelcomeScreenTopComponent.local.link=nbres:/com/jme3/gde/docs/sdk/welcome/local.html

@ -65,7 +65,7 @@ public final class WelcomeScreenTopComponent extends TopComponent implements Hyp
try {
jEditorPane1.setPage(he.getURL());
} catch (IOException ex) {
logger.log(Level.INFO, "Loading page failed", ex);
logger.log(Level.FINE, "Loading page failed", ex);
try {
logger.log(Level.WARNING, "Could not open web page!");
URL startUrl = new URL(org.openide.util.NbBundle.getMessage(WelcomeScreenTopComponent.class, "WelcomeScreenTopComponent.local.link"));
@ -87,7 +87,7 @@ public final class WelcomeScreenTopComponent extends TopComponent implements Hyp
NbPreferences.forModule(getClass()).putLong("LAST_PAGE_UPDATE", lastMod);
jEditorPane1.setPage(startUrl);
} catch (IOException ex) {
logger.log(Level.INFO, "Loading page failed", ex);
logger.log(Level.FINE, "Loading page failed", ex);
try {
jEditorPane1.setPage(new URL(org.openide.util.NbBundle.getMessage(WelcomeScreenTopComponent.class, "WelcomeScreenTopComponent.local.link")));
} catch (IOException ex1) {
@ -102,11 +102,14 @@ public final class WelcomeScreenTopComponent extends TopComponent implements Hyp
URL startUrl = new URL(org.openide.util.NbBundle.getMessage(WelcomeScreenTopComponent.class, "WelcomeScreenTopComponent.http.link"));
URLConnection conn = startUrl.openConnection();
long lastMod = conn.getLastModified();
logger.log(Level.FINE, "Checking page time {0} vs stored time {1}", new Object[]{lastMod, lastCheck});
if (lastCheck != lastMod) {
WelcomeScreenTopComponent tc = (WelcomeScreenTopComponent) WindowManager.getDefault().findTopComponent("WelcomeScreenTopComponent");
if (tc != null) {
tc.open();
tc.requestActive();
} else {
logger.log(Level.WARNING, "Did not find Welcome Screen window");
}
}
} catch (IOException ex) {

Loading…
Cancel
Save