void () { List<EnumerationChildrenRenderer.ChildInfo> children = getRendererChildren(); TextWithImports newText = TextWithImportsImpl.fromXExpression(myExpressionEditor.getExpression()); if (myDescriptor == null) { children.add(0, new EnumerationChildrenRenderer.ChildInfo("", newText, false)); } else { int index = myDescriptor.getEnumerationIndex(); EnumerationChildrenRenderer.ChildInfo old = children.get(index); children.set(index, new EnumerationChildrenRenderer.ChildInfo(old.myName, newText, old.myOnDemand)); } myTree.putClientProperty(XDebuggerTreeRestorer.SELECTION_PATH_PROPERTY, createDummySelectionTreePath(newText.getText(), (XDebuggerTreeNode)myNode.getParent())); XDebuggerUtilImpl.rebuildTreeAndViews(myTree); super.doOKAction(); }