Quintiq file version 2.0
#parent: #root
Method CanImport (
  output String feedback_o
) as Boolean id:Method_DialogEDIImport_CanImport
{
  #keys: '[132894.0.208439711]'
  Body:
  [*
    // check if at least one object group is included
    feedbacks := construct( Strings );      
    
    result := true;  
                
    if ( not exists( this.Data(), ImportObjectGroupInDefaultProfile, e, e.IsIncludeInImportExport() ) )
    {
      result := false;
      feedbacks.Add( Translations::MP_Designer_ImportPathAndCheckBoxes() );
    }
    
    directory := DataHolderDirectoryFileItem.Data();
    if( guard( not directory.CanRead(), false ) ) // null fileItem handled in Dialog.GetIsPathValid
    {
      result := false;
      feedbacks.Add( Translations::MP_Designer_DialogImportExport_CanReadFileItem( directory.Name() ) );
    }
    
    feedback_o := feedbacks.ToString( String::NewLine() );
    
    return result;
  *]
}
