|
|
|
@ -2,9 +2,9 @@ |
|
|
|
|
* To change this template, choose Tools | Templates |
|
|
|
|
* and open the template in the editor. |
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
package com.jme3.gde.materials.multiview; |
|
|
|
|
|
|
|
|
|
import com.jme3.gde.core.sceneviewer.SceneViewerTopComponent; |
|
|
|
|
import com.jme3.gde.materials.JMEMaterialDataObject; |
|
|
|
|
import org.openide.cookies.CloseCookie; |
|
|
|
|
import org.openide.cookies.OpenCookie; |
|
|
|
@ -22,9 +22,11 @@ public class MaterialOpenSupport extends OpenSupport implements OpenCookie, Clos |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected CloneableTopComponent createCloneableTopComponent() { |
|
|
|
|
if (!SceneViewerTopComponent.findInstance().isOpened()) { |
|
|
|
|
SceneViewerTopComponent.findInstance().open(); |
|
|
|
|
} |
|
|
|
|
JMEMaterialDataObject dobj = (JMEMaterialDataObject) entry.getDataObject(); |
|
|
|
|
MaterialEditorTopComponent tc = new MaterialEditorTopComponent(dobj); |
|
|
|
|
return tc; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |