}
if (userValue instanceof ArgumentValue) {
ArgumentValue argumentValue = (ArgumentValue) userValue;
DBArgument argument = argumentValue.getArgument();
DBTypeAttribute attribute = argumentValue.getAttribute();
Object originalValue = argumentValue.getValue();
String displayValue = originalValue instanceof ResultSet ? "" : "" + originalValue;
if (attribute == null) {
setIcon(argument.getIcon());
append(argument.getName(), SimpleTextAttributes.REGULAR_ATTRIBUTES);
append(" = ", SimpleTextAttributes.REGULAR_ATTRIBUTES);
DBDataType dataType = argument.getDataType();
if (dataType != null) {
append("{" + dataType.getName().toLowerCase() + "} " , SimpleTextAttributes.GRAY_ATTRIBUTES);
}
append(displayValue, SimpleTextAttributes.REGULAR_BOLD_ATTRIBUTES);
} else {
setIcon(attribute.getIcon());
append(attribute.getName(), SimpleTextAttributes.REGULAR_ATTRIBUTES);
append(" = ", SimpleTextAttributes.REGULAR_ATTRIBUTES);
DBDataType dataType = attribute.getDataType();
if (dataType != null) {
append("{" + dataType.getName() + "}" , SimpleTextAttributes.GRAY_ATTRIBUTES);
}
append(displayValue, SimpleTextAttributes.REGULAR_BOLD_ATTRIBUTES);
}