SDK :
- Fixed focus issue in the sdk (part 2) git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9608 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
737b765cb0
commit
96b7355347
@ -22,13 +22,9 @@ import com.jme3.gde.scenecomposer.tools.MoveTool;
|
||||
import com.jme3.gde.scenecomposer.tools.RotateTool;
|
||||
import com.jme3.gde.scenecomposer.tools.ScaleTool;
|
||||
import com.jme3.gde.scenecomposer.tools.SelectTool;
|
||||
import com.jme3.input.awt.AwtKeyInput;
|
||||
import com.jme3.input.event.KeyInputEvent;
|
||||
import com.jme3.math.Vector3f;
|
||||
import com.jme3.scene.Node;
|
||||
import com.jme3.scene.Spatial;
|
||||
import java.awt.event.KeyEvent;
|
||||
import java.awt.event.KeyListener;
|
||||
import java.io.IOException;
|
||||
import java.util.Collection;
|
||||
import java.util.concurrent.Callable;
|
||||
@ -910,11 +906,11 @@ private void scaleButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-F
|
||||
}
|
||||
Collection<JmeSpatial> items = (Collection<JmeSpatial>) result.allInstances();
|
||||
for (JmeSpatial spatial : items) {
|
||||
selectSpatial(spatial);
|
||||
selectSpatial(spatial);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private void selectSpatial(JmeSpatial spatial) {
|
||||
if (editorController != null) {
|
||||
editorController.setSelectedSpat(spatial);
|
||||
@ -935,6 +931,7 @@ private void scaleButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-F
|
||||
} else {
|
||||
setSelectedObjectText(null);
|
||||
}
|
||||
SceneViewerTopComponent.findInstance().setActivatedNodes(new org.openide.nodes.Node[]{spatial});
|
||||
SceneExplorerTopComponent.findInstance().setSelectedNode(spatial);
|
||||
}
|
||||
|
||||
|
@ -467,13 +467,14 @@ public class SelectTool extends SceneEditTool {
|
||||
@Override
|
||||
public void run() {
|
||||
if (selec != null) {
|
||||
SceneViewerTopComponent.findInstance().setActivatedNodes(new org.openide.nodes.Node[]{rootNode.getChild(selec)});
|
||||
SceneExplorerTopComponent.findInstance().setSelectedNode(rootNode.getChild(selec));
|
||||
} else {
|
||||
SceneViewerTopComponent.findInstance().setActivatedNodes(new org.openide.nodes.Node[]{rootNode});
|
||||
SceneExplorerTopComponent.findInstance().setSelectedNode(rootNode);
|
||||
doSelect();
|
||||
}
|
||||
}
|
||||
|
||||
private void doSelect() {
|
||||
SceneViewerTopComponent.findInstance().setActivatedNodes(new org.openide.nodes.Node[]{rootNode.getChild(selec)});
|
||||
SceneExplorerTopComponent.findInstance().setSelectedNode(rootNode.getChild(selec));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@ -641,9 +642,6 @@ public class SelectTool extends SceneEditTool {
|
||||
if (cloned != null) {
|
||||
SceneViewerTopComponent.findInstance().setActivatedNodes(new org.openide.nodes.Node[]{rootNode.getChild(cloned)});
|
||||
SceneExplorerTopComponent.findInstance().setSelectedNode(rootNode.getChild(cloned));
|
||||
} else {
|
||||
SceneViewerTopComponent.findInstance().setActivatedNodes(new org.openide.nodes.Node[]{rootNode});
|
||||
SceneExplorerTopComponent.findInstance().setSelectedNode(rootNode);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user