|
|
@ -54,8 +54,6 @@ autostore = false) |
|
|
|
public final class SceneViewerTopComponent extends TopComponent { |
|
|
|
public final class SceneViewerTopComponent extends TopComponent { |
|
|
|
|
|
|
|
|
|
|
|
private static SceneViewerTopComponent instance; |
|
|
|
private static SceneViewerTopComponent instance; |
|
|
|
private static boolean browserOpened = false; |
|
|
|
|
|
|
|
// private AtomicBoolean errorMessageOpen = new AtomicBoolean(false);
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* path to the icon used by the component and its open action |
|
|
|
* path to the icon used by the component and its open action |
|
|
|
*/ |
|
|
|
*/ |
|
|
@ -63,7 +61,6 @@ public final class SceneViewerTopComponent extends TopComponent { |
|
|
|
private static final String PREFERRED_ID = "SceneViewerTopComponent"; |
|
|
|
private static final String PREFERRED_ID = "SceneViewerTopComponent"; |
|
|
|
private SceneApplication app; |
|
|
|
private SceneApplication app; |
|
|
|
private HelpCtx helpContext = new HelpCtx("com.jme3.gde.core.sceneviewer"); |
|
|
|
private HelpCtx helpContext = new HelpCtx("com.jme3.gde.core.sceneviewer"); |
|
|
|
// private Canvas oglCanvas;
|
|
|
|
|
|
|
|
private Component oglCanvas; |
|
|
|
private Component oglCanvas; |
|
|
|
|
|
|
|
|
|
|
|
public SceneViewerTopComponent() { |
|
|
|
public SceneViewerTopComponent() { |
|
|
@ -75,7 +72,6 @@ public final class SceneViewerTopComponent extends TopComponent { |
|
|
|
setIcon(ImageUtilities.loadImage(ICON_PATH, true)); |
|
|
|
setIcon(ImageUtilities.loadImage(ICON_PATH, true)); |
|
|
|
try { |
|
|
|
try { |
|
|
|
app = SceneApplication.getApplication(); |
|
|
|
app = SceneApplication.getApplication(); |
|
|
|
// oglCanvas = ((JmeCanvasContext) app.getContext()).getCanvas();
|
|
|
|
|
|
|
|
oglCanvas = app.getMainPanel(); |
|
|
|
oglCanvas = app.getMainPanel(); |
|
|
|
oglCanvas.setFocusable(false); |
|
|
|
oglCanvas.setFocusable(false); |
|
|
|
oGLPanel.add(oglCanvas); |
|
|
|
oGLPanel.add(oglCanvas); |
|
|
@ -292,7 +288,7 @@ public final class SceneViewerTopComponent extends TopComponent { |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public int getPersistenceType() { |
|
|
|
public int getPersistenceType() { |
|
|
|
return TopComponent.PERSISTENCE_ALWAYS; |
|
|
|
return TopComponent.PERSISTENCE_NEVER; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
@ -309,16 +305,6 @@ public final class SceneViewerTopComponent extends TopComponent { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void componentOpened() { |
|
|
|
public void componentOpened() { |
|
|
|
super.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);
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|