dialog.setText( property.definition().getLabel( true, CapitalizationType.FIRST_WORD_ONLY, false ) );
final Value<?> value = (Value<?>) property;
final Path path = (Path) value.content();
if( path != null && path.segmentCount() > 1 )
{
dialog.setFilterPath( path.removeLastSegments( 1 ).toOSString() );
dialog.setFileName( path.lastSegment() );
}
else if( roots.size() > 0 )