Mercurial > hg > ltpda
comparison m-toolbox/classes/@LTPDAworkbench/executeCommands.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 function executeCommands(src, cmds) | |
2 | |
3 try | |
4 for kk=1:numel(cmds) | |
5 disp(sprintf('$$$ executing: %s', cmds{kk})); | |
6 evalin('base', cmds{kk}); | |
7 if isa(src, 'LTPDAworkbench') | |
8 awtinvoke(src.mp, 'updateProgressOfCurrentDiagram'); | |
9 end | |
10 drawnow; | |
11 end | |
12 | |
13 catch err | |
14 newErr = MException('LTPDA:runPipeline', 'Can not execute: %s', cmds{kk}); | |
15 err = err.addCause(newErr); | |
16 throw(err); | |
17 end | |
18 | |
19 end |