|
|
@ -266,15 +266,20 @@ public final class SceneExplorerTopComponent extends TopComponent implements Exp |
|
|
|
|
|
|
|
|
|
|
|
public void sceneRequested(SceneRequest request) { |
|
|
|
public void sceneRequested(SceneRequest request) { |
|
|
|
this.request = request; |
|
|
|
this.request = request; |
|
|
|
JmeNode node = request.getJmeNode(); |
|
|
|
final JmeNode node = request.getJmeNode(); |
|
|
|
for (Iterator it = materialChangeProviders.values().iterator(); it.hasNext();) { |
|
|
|
for (Iterator it = materialChangeProviders.values().iterator(); it.hasNext();) { |
|
|
|
MaterialChangeProvider provider = (MaterialChangeProvider) it.next(); |
|
|
|
MaterialChangeProvider provider = (MaterialChangeProvider) it.next(); |
|
|
|
provider.clearMaterialChangeListeners(); |
|
|
|
provider.clearMaterialChangeListeners(); |
|
|
|
} |
|
|
|
} |
|
|
|
if (node != null) { |
|
|
|
if (node != null) { |
|
|
|
explorerManager.setRootContext(node); |
|
|
|
java.awt.EventQueue.invokeLater(new Runnable() { |
|
|
|
explorerManager.getRootContext().setDisplayName(node.getName()); |
|
|
|
|
|
|
|
requestVisible(); |
|
|
|
public void run() { |
|
|
|
|
|
|
|
explorerManager.setRootContext(node); |
|
|
|
|
|
|
|
explorerManager.getRootContext().setDisplayName(node.getName()); |
|
|
|
|
|
|
|
requestVisible(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|