view m-toolbox/m/gui/ltpdv/callbacks/ltpdv_build_buildobject.m @ 24:056f8e1e995e
database-connection-manager
Properly record history in fromRepository constructors
author |
Daniele Nicolodi <nicolodi@science.unitn.it> |
date |
Mon, 05 Dec 2011 16:20:06 +0100 (2011-12-05) |
parents |
f0afece42f48 |
children |
|
line source
% LTPDV_BUILD_BUILDOBJECT callback for the build object button on the build
% panel.
%
% M Hewitson 26-08-08
%
% $Id: ltpdv_build_buildobject.m,v 1.1 2008/09/02 07:51:47 hewitson Exp $
%
function ltpdv_build_buildobject(varargin)
% Handles
myh = varargin{1};
mainfig = varargin{end};
parampanh = findobj(mainfig, 'Tag', 'LTPDVbuildParamsPanel');
% Get class
cl = ltpdv_build_get_selected_class(mainfig);
% Get parameters
pl = ltpdv_get_params_from_panel(parampanh);
% Build this object
obj = feval(cl, pl);
% Import object
objs = getappdata(mainfig, 'LTPDAobjects');
setappdata(mainfig, 'LTPDAobjects', [objs {obj}]);
% Refresh object list
ltpdv_refresh_object_list(mainfig);
end