0001 function [data, name] = project_mgr_builder_remove(data)
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 if ~exist('data', 'var')
0018 error('data is a required parameter.');
0019 end
0020
0021
0022
0023
0024 H = data.H;
0025
0026
0027 idx = get(H.builder_popup, 'Value');
0028 rbuilder = data.batch_builders{idx};
0029 name = vb_batch_mgr_get_name(rbuilder);
0030
0031 data.batch_builders(idx) = [];
0032 if isempty(data.batch_builders)
0033 data.batch_builders{1} = vb_batch_mgr_new('batch builder1');
0034 end
0035
0036
0037 batch_builders = data.batch_builders;
0038 result = vb_save(data.project_file, 'batch_builders');
0039
0040
0041
0042
0043 if nargout < 1
0044 error('function caller should receive this object.');
0045 end