comparison m-toolbox/classes/@repogui2/setWorkspaceObjsList.m @ 0:f0afece42f48

Import.
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Wed, 23 Nov 2011 19:22:13 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:f0afece42f48
1 % Fill the workspace object list
2 %
3 % M Hewitson
4 %
5 % $Id: setWorkspaceObjsList.m,v 1.3 2011/04/08 08:56:37 hewitson Exp $
6 %
7 function setWorkspaceObjsList(mainfig, objs)
8
9 id = findobj(mainfig.handle, 'Tag', 'RepoguiWorkspaceObjsList');
10
11 objlist = [];
12 for j=1:length(objs)
13 obj = objs(j);
14 str = sprintf('%s\t\t(%s)', obj.name, obj.class);
15 objlist = [objlist cellstr(str)];
16 end
17
18 set(id, 'Value', 1);
19 set(id, 'String', objlist);
20 end