private void addCustomFields ( MpxjTreeNode parentNode , ProjectFile file ) { for ( CustomField field : file . getCustomFields ( ) ) { final CustomField c = field ; MpxjTreeNode childNode = new MpxjTreeNode ( field ) { @ Override public String toString ( ) { FieldType type = c . getFieldType ( ) ; return type == null ? "(unknown)" : type . getFieldTypeClass ( ) + "." + type . toString ( ) ; } } ; parentNode . add ( childNode ) ; } }
Add custom fields to the tree .