comparison m-toolbox/classes/@LTPDAworkbench/uploadPlist.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 % UPLOADPLIST uploads the given plist to the given block.
2 %
3 % CALL: wb.uploadPlist(blockname, pl)
4 %
5 % M Hewitsion 13-11-08
6 %
7 % $Id: uploadPlist.m,v 1.2 2010/08/06 19:10:49 ingo Exp $
8 %
9 function uploadPlist(wb, blockname, pl)
10
11 % get the block with this name
12 b = awtinvoke(wb.mp, 'getBlockByName', blockname);
13
14 % Convert the plist to a java plist
15 jpl = LTPDAworkbench.mpl2jpl(pl);
16
17 % set the plist
18 awtinvoke(b, 'setPlist', jpl);
19
20 end