- Hide SceneComposer Toolbar on startup git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10284 75d07b2b-3a1a-0410-a2c5-0572b91ccdca3.0
parent
02e2e66873
commit
0798afb0dd
@ -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…
Reference in new issue