- Hide SceneComposer Toolbar on startup

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10284 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
nor..67 12 years ago
parent 02e2e66873
commit 0798afb0dd
  1. 25
      sdk/jme3-scenecomposer/src/com/jme3/gde/scenecomposer/Installer.java

@ -0,0 +1,25 @@
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.jme3.gde.scenecomposer;
import org.openide.awt.Toolbar;
import org.openide.awt.ToolbarPool;
import org.openide.modules.ModuleInstall;
import org.openide.windows.WindowManager;
public class Installer extends ModuleInstall {
@Override
public void restored() {
WindowManager.getDefault().invokeWhenUIReady(new Runnable() {
public void run() {
Toolbar tb = ToolbarPool.getDefault().findToolbar("SceneComposer-Tools");
if (tb != null) {
tb.setVisible(false);
}
}
});
}
}
Loading…
Cancel
Save