void () { if (!isShown()) return; super.cancelEditing(); int index = myRootNode.getIndex(myNode); if (myOldNode == null && index != -1) { myRootNode.removeChildNode(myNode); } TreeUtil.selectNode(myTree, myNode); }