Mercurial > hg > ltpda
view m-toolbox/classes/@workspaceBrowser/cb_retrieve.m @ 39:11e3ed9d2115 database-connection-manager
Implement databases listing in database connection dialog
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Mon, 05 Dec 2011 16:20:06 +0100 |
parents | 317b5f447f3e |
children |
line wrap: on
line source
% CB_RETRIEVE retrieves objects from an LTPDA repository % % CALL: workspaceBrowser.cb_retrieve % % M Hewitson 13-11-08 % % $Id: cb_retrieve.m,v 1.8 2010/03/23 17:39:38 ingo Exp $ % function cb_retrieve(varargin) wb = getappdata(0, 'WorkspaceBrowser'); % Get a connection from the database connection manager conn = LTPDADatabaseConnectionManager().connect(); warning('off', 'MATLAB:JavaEDTAutoDelegation'); qb = mpipeline.repository.RepositoryRetrieveDialog([], true); qb.setVisible(true); warning('on', 'MATLAB:JavaEDTAutoDelegation'); if ~qb.isCancelled workspaceBrowser.retrieveObjectsFromDialog(qb, conn); end end