0001 function vb_batch_list_update_build_part(fig)
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014 if ~exist('fig', 'var') || isempty(fig) || ~ishandle(fig)
0015 error('invalid figure handle is specified.');
0016 end
0017
0018
0019
0020
0021 data = guidata(fig);
0022
0023
0024
0025 Ncreated = vb_batch_mgr_get_num_of_parm_set(data.bmgr);
0026 on_off = 'on';
0027 if Ncreated == 0
0028 on_off = 'off';
0029 end
0030 set(data.H.choose_id_list_push, 'Enable', on_off);
0031
0032
0033
0034 [id_list_str] = vb_batch_mgr_get_output_id_string(data.bmgr);
0035 on_off = 'on';
0036 if isempty(id_list_str)
0037 on_off = 'off';
0038 end
0039 set(data.H.batch_output_listbox, 'String', id_list_str);
0040 set(data.H.build_batch_push, 'Enable', on_off);