Mercurial > hg > ltpda
comparison m-toolbox/classes/@workspaceBrowser/cb_retrieve.m @ 0:f0afece42f48
Import.
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Wed, 23 Nov 2011 19:22:13 +0100 |
parents | |
children | 317b5f447f3e |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:f0afece42f48 |
---|---|
1 % CB_RETRIEVE retrieves objects from an LTPDA repository | |
2 % | |
3 % CALL: workspaceBrowser.cb_retrieve | |
4 % | |
5 % M Hewitson 13-11-08 | |
6 % | |
7 % $Id: cb_retrieve.m,v 1.8 2010/03/23 17:39:38 ingo Exp $ | |
8 % | |
9 function cb_retrieve(varargin) | |
10 | |
11 wb = getappdata(0, 'WorkspaceBrowser'); | |
12 | |
13 % Get a connection from the repository manager | |
14 rm = LTPDARepositoryManager; | |
15 conn = rm.manager.selectConnection([]); | |
16 | |
17 if ~isempty(conn) && conn.isConnected | |
18 try | |
19 % Get submission info from the user | |
20 | |
21 warning('off', 'MATLAB:JavaEDTAutoDelegation'); | |
22 qb = mpipeline.repository.RepositoryRetrieveDialog([], true); | |
23 qb.setVisible(true); | |
24 warning('on', 'MATLAB:JavaEDTAutoDelegation'); | |
25 | |
26 if ~qb.isCancelled | |
27 | |
28 workspaceBrowser.retrieveObjectsFromDialog(qb, conn); | |
29 | |
30 end | |
31 | |
32 catch err | |
33 fprintf(2, [err.message, '\n']); | |
34 end | |
35 end | |
36 | |
37 end | |
38 |