{
return this;
}
final ReportFieldNode fieldNode = (ReportFieldNode) value;
final ReportDataSchemaModel model = fieldNode.getDataSchemaModel();
final DataAttributes attributes = model.getDataSchema().getAttributes(fieldNode.getFieldName());
setToolTipText(fieldNode.getFieldClass().getSimpleName());
if (attributes == null)
{
setText(fieldNode.toString());
setIcon(IconLoader.getInstance().getBlankDocumentIcon());
}
else
{
final String displayName = (String) attributes.getMetaAttribute
(MetaAttributeNames.Formatting.NAMESPACE, MetaAttributeNames.Formatting.LABEL,
String.class, model.getDataAttributeContext());
setText(formatFieldType(displayName, fieldNode.getFieldName(), fieldNode.getFieldClass()));
final Object source = attributes.getMetaAttribute
(MetaAttributeNames.Core.NAMESPACE, MetaAttributeNames.Core.SOURCE, String.class,
model.getDataAttributeContext());
if (MetaAttributeNames.Core.SOURCE_VALUE_ENVIRONMENT.equals(source))
{
setIcon(IconLoader.getInstance().getPropertiesDataSetIcon());