Mercurial > hg > ltpda
annotate m-toolbox/classes/@workspaceBrowser/cb_retrieve.m @ 49:0bcdf74587d1 database-connection-manager
Cleanup
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Wed, 07 Dec 2011 17:24:36 +0100 |
parents | 317b5f447f3e |
children |
rev | line source |
---|---|
0 | 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 | |
30
317b5f447f3e
Update workspaceBrowser
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
0
diff
changeset
|
13 % Get a connection from the database connection manager |
317b5f447f3e
Update workspaceBrowser
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
0
diff
changeset
|
14 conn = LTPDADatabaseConnectionManager().connect(); |
0 | 15 |
30
317b5f447f3e
Update workspaceBrowser
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
0
diff
changeset
|
16 warning('off', 'MATLAB:JavaEDTAutoDelegation'); |
317b5f447f3e
Update workspaceBrowser
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
0
diff
changeset
|
17 qb = mpipeline.repository.RepositoryRetrieveDialog([], true); |
317b5f447f3e
Update workspaceBrowser
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
0
diff
changeset
|
18 qb.setVisible(true); |
317b5f447f3e
Update workspaceBrowser
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
0
diff
changeset
|
19 warning('on', 'MATLAB:JavaEDTAutoDelegation'); |
0 | 20 |
30
317b5f447f3e
Update workspaceBrowser
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
0
diff
changeset
|
21 if ~qb.isCancelled |
317b5f447f3e
Update workspaceBrowser
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
0
diff
changeset
|
22 workspaceBrowser.retrieveObjectsFromDialog(qb, conn); |
0 | 23 end |
24 | |
25 end | |
26 |