Changeset 42 for trunk/src/editxml.m


Ignore:
Timestamp:
Mar 10, 2010, 7:43:51 PM (11 years ago)
Author:
sommeria
Message:

-proj_field, plot_field, civ_3D: bug repair for 3D3C velocity fields (not finished)
-check_function: introduce try/catch for function datenum (error with french systems)
-cleaning of warndlg_uvmat in different fcts (replaced by msgbox_uvmat)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/editxml.m

    r2 r42  
    311311head_element=get(t,1);
    312312if ~isfield(head_element,'name') | ~isfield(head_element,'attributes')
    313     warndlg_uvmat('root element of the .xml file not in correct format','ERROR')
     313    msgbox_uvmat('ERROR','root element of the .xml file not in correct format')
    314314end
    315315head_name=head_element.name;
     
    356356        xs=xmltree(schemapath);
    357357    else
    358         warndlg_uvmat(['The xml schema for ' CurrentFile ' is unknown, check the schema path set in the xml file PARAM'],'ERROR')
     358        msgbox_uvmat('ERROR',['The xml schema for ' CurrentFile ' is unknown, check the schema path set in the xml file PARAM'])
    359359        [FileName, PathName]=uigetfile( ...
    360360       {'*.xsd', '(*.xsd)';
     
    10211021               [path,fil,ext]=fileparts(cur_file);
    10221022               if ~exist(cur_file,'file')
    1023                    warndlg_uvmat(['non-existent link file' cur_file],'ERROR') % A FAIRE: propose to updtate the .xml file
     1023                   msgbox_uvmat('ERROR',['non-existent link file' cur_file]) % A FAIRE: propose to updtate the .xml file
    10241024                   return
    10251025               elseif isequal(ext,'.xml')
     
    12301230Value=get(hhdataview.ListXml,'Value');
    12311231if isequal(Value,1)
    1232     warndlg_uvmat('you need to select the xml files to edit','ERROR')
     1232    msgbox_uvmat('ERROR','you need to select the xml files to edit')
    12331233    return
    12341234end
     
    12571257                                [success,message]=copyfile(xmlfullname,backupfile);%make backup
    12581258                                if ~isequal(success,1)
    1259                                     warndlg_uvmat(['Error in the backup of ' xmlfullname],'ERROR')
     1259                                    msgbox_uvmat('ERROR',['Error in the backup of ' xmlfullname])
    12601260                                    return
    12611261                                end
Note: See TracChangeset for help on using the changeset viewer.