annotate m-toolbox/classes/@workspaceBrowser/cb_retrieve.m @ 30:317b5f447f3e database-connection-manager

Update workspaceBrowser
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Mon, 05 Dec 2011 16:20:06 +0100
parents f0afece42f48
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
1 % CB_RETRIEVE retrieves objects from an LTPDA repository
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
2 %
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
3 % CALL: workspaceBrowser.cb_retrieve
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
4 %
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
5 % M Hewitson 13-11-08
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
6 %
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
7 % $Id: cb_retrieve.m,v 1.8 2010/03/23 17:39:38 ingo Exp $
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
8 %
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
9 function cb_retrieve(varargin)
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
10
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
11 wb = getappdata(0, 'WorkspaceBrowser');
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
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
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
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
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
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
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
23 end
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
24
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
25 end
f0afece42f48 Import.
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff changeset
26