0001 function [data] = project_mgr_builder_open(data)
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 if ~exist('data', 'var')
0017 error('data is a required parameter.');
0018 end
0019
0020
0021
0022
0023 H = data.H;
0024
0025 if ishandle(data.batch_fig)
0026 figure(data.batch_fig);
0027 else
0028 proj_root = get(H.project_root_edit, 'String');
0029 proj_name = get(H.project_name_edit, 'String');
0030 proj_file = data.project_file;
0031
0032
0033 idx = get(H.builder_popup, 'Value');
0034
0035 data.batch_fig = vb_batch_list_new(proj_root, proj_name, proj_file, ...
0036 data.batch_builders{idx});
0037 end
0038
0039
0040 set(H.builder_popup, 'Enable', 'off');
0041 set(H.open_builder_push, 'Enable', 'off');
0042
0043
0044
0045
0046 if nargout < 1
0047 error('function caller should receive data.');
0048 end