0001 function fillClassMethodsList(h)
0002
0003
0004 id = findobj('Tag', 'workspaceObjsListQL');
0005 ostr = get(id, 'String');
0006 oidx = get(id, 'Value');
0007
0008 objStrs = ostr(oidx);
0009
0010 if ~isempty(objStrs)
0011
0012 type = getClassFromString(objStrs{1});
0013 diff = 0;
0014 for j=2:length(objStrs)
0015 if ~strcmp(type, getClassFromString(objStrs{j}))
0016 diff = 1;
0017 end
0018 end
0019
0020 mths = {};
0021 if ~diff
0022 tmps = methods(type);
0023
0024 for j=1:length(tmps)
0025 if ~strcmp(tmps{j}, 'Contents')
0026
0027
0028 mths = [mths tmps(j)];
0029 end
0030 end
0031 end
0032
0033
0034 id = findobj('Tag', 'classMethodList');
0035 set(id, 'Value', 1);
0036 set(id, 'String', mths);
0037
0038 end
0039
0040 function type = getClassFromString(str)
0041
0042 [s,r] = strtok(str, '(');
0043 type = r(2:end-1);