(KeyEvent e)
| 114 | } |
| 115 | |
| 116 | public void keyTyped(KeyEvent e) { |
| 117 | if (e.getKeyChar() == KeyEvent.VK_ENTER) { |
| 118 | DefaultMutableTreeNode node = |
| 119 | (DefaultMutableTreeNode) tree.getLastSelectedPathComponent(); |
| 120 | if (node != null && node.isLeaf()) { |
| 121 | SketchReference sketch = (SketchReference) node.getUserObject(); |
| 122 | base.handleOpen(sketch.getPath()); |
| 123 | } |
| 124 | } |
| 125 | } |
| 126 | }); |
| 127 | |
| 128 | final int border = Toolkit.zoom(5); |
nothing calls this directly
no test coverage detected