} else if (treeNode.getUserObject() instanceof Gem.PartInput) {
Gem.PartInput input = (Gem.PartInput) treeNode.getUserObject();
ValueNode valueNode = tableTopExplorerOwner.getValueNode(input);
ArgumentMetadata metadata = input.getDesignMetadata();
if (tableTopExplorerOwner.highlightInput(input)) {
// TODO: instead of hardcoding the highlighted font style, perhaps the renderer
// should be passed to the highlight fn and let it set whatever is appropriate...
setTextNonSelectionColor(Color.RED);
setFont(tree.getFont().deriveFont(Font.ITALIC));
}
if (tableTopExplorerOwner.canEditInputsAsValues() && valueNode != null && !input.isBurnt()) {
customText = input.getArgumentName().getCompositeName() + ": " + valueNode.getTextValue();
} else {
customIcon = partInputIcon;
if (input.isBurnt()) {
setTextNonSelectionColor(Color.RED.darker());
setTextSelectionColor(Color.WHITE);
setBackgroundSelectionColor(Color.RED.darker());
customIcon = burnIcon;
}
if (metadata.getShortDescription() != null) {
customText = input.getArgumentName().getCompositeName() + " - " + metadata.getShortDescription();
} else {
customText = input.getArgumentName().getCompositeName();
}
}
}