- show help on first start of SDK

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9807 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
nor..67 12 years ago
parent 25e93782e6
commit bb74e6b3bc
  1. 23
      sdk/jme3-core/nbproject/project.xml
  2. 15
      sdk/jme3-core/src/com/jme3/gde/core/sceneviewer/SceneViewerTopComponent.java

@ -31,29 +31,29 @@
</run-dependency>
</dependency>
<dependency>
<code-name-base>org.netbeans.api.java.classpath</code-name-base>
<code-name-base>org.apache.commons.logging</code-name-base>
<build-prerequisite/>
<compile-dependency/>
<run-dependency>
<release-version>1</release-version>
<specification-version>1.29</specification-version>
<specification-version>1.1.0</specification-version>
</run-dependency>
</dependency>
<dependency>
<code-name-base>org.apache.commons.logging</code-name-base>
<code-name-base>org.netbeans.api.java</code-name-base>
<build-prerequisite/>
<compile-dependency/>
<run-dependency>
<specification-version>1.1.0</specification-version>
<release-version>1</release-version>
<specification-version>1.37</specification-version>
</run-dependency>
</dependency>
<dependency>
<code-name-base>org.netbeans.api.java</code-name-base>
<code-name-base>org.netbeans.api.java.classpath</code-name-base>
<build-prerequisite/>
<compile-dependency/>
<run-dependency>
<release-version>1</release-version>
<specification-version>1.37</specification-version>
<specification-version>1.29</specification-version>
</run-dependency>
</dependency>
<dependency>
@ -114,6 +114,15 @@
<specification-version>0.52.2.8.8.2</specification-version>
</run-dependency>
</dependency>
<dependency>
<code-name-base>org.netbeans.modules.javahelp</code-name-base>
<build-prerequisite/>
<compile-dependency/>
<run-dependency>
<release-version>1</release-version>
<specification-version>2.27.1</specification-version>
</run-dependency>
</dependency>
<dependency>
<code-name-base>org.netbeans.modules.options.api</code-name-base>
<build-prerequisite/>

@ -34,11 +34,9 @@ import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.awt.event.MouseWheelEvent;
import java.awt.event.MouseWheelListener;
import java.util.Collection;
import java.util.Iterator;
import java.util.concurrent.Callable;
import java.util.logging.Logger;
import javax.swing.Action;
import org.netbeans.api.javahelp.Help;
import org.openide.util.NbBundle;
import org.openide.windows.TopComponent;
import org.openide.windows.WindowManager;
@ -51,7 +49,7 @@ import org.openide.awt.UndoRedo;
import org.openide.util.Exceptions;
import org.openide.util.HelpCtx;
import org.openide.util.Lookup;
import org.openide.util.lookup.Lookups;
import org.openide.util.NbPreferences;
/**
* Top component which displays something.
@ -327,6 +325,15 @@ public final class SceneViewerTopComponent extends TopComponent {
@Override
public void componentOpened() {
super.componentOpened();
if(!NbPreferences.forModule(SceneViewerTopComponent.class).getBoolean("HELP_SHOWN", false)){
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
Lookup.getDefault().lookup(Help.class).showHelp(new HelpCtx("com.jme3.gde.core.about"));
}
});
NbPreferences.forModule(SceneViewerTopComponent.class).put("HELP_SHOWN", "true");
}
// oglCanvas.setActiveUpdates(true);
}

Loading…
Cancel
Save