void (final CompoundReferenceRenderer renderer) { // label LabelRenderer labelRenderer = null; renderer.setShowType(myShowTypeCheckBox.isSelected()); if (myRbExpressionLabel.isSelected()) { labelRenderer = new LabelRenderer(); labelRenderer.setLabelExpression(TextWithImportsImpl.fromXExpression(myLabelEditor.getExpression())); labelRenderer.setOnDemand(myOnDemandCheckBox.isSelected()); } renderer.setLabelRenderer(labelRenderer); // children ChildrenRenderer childrenRenderer = null; if (myRbExpressionChildrenRenderer.isSelected()) { childrenRenderer = new ExpressionChildrenRenderer(); ((ExpressionChildrenRenderer)childrenRenderer).setChildrenExpression(TextWithImportsImpl.fromXExpression(myChildrenEditor.getExpression())); ((ExpressionChildrenRenderer)childrenRenderer).setChildrenExpandable(TextWithImportsImpl.fromXExpression(myChildrenExpandedEditor.getExpression())); } else if (myRbListChildrenRenderer.isSelected()) { EnumerationChildrenRenderer enumerationChildrenRenderer = new EnumerationChildrenRenderer(getTableModel().getExpressions()); enumerationChildrenRenderer.setAppendDefaultChildren(myAppendDefaultChildren.isSelected()); childrenRenderer = enumerationChildrenRenderer; } renderer.setChildrenRenderer(childrenRenderer); // classname renderer.setClassName(myClassNameField.getText()); }