view m-toolbox/m/gui/ltpdv/callbacks/ltpdv_build_get_selected_class.m @ 46:ca0b8d4dcdb6 database-connection-manager

Fix
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Tue, 06 Dec 2011 19:07:27 +0100
parents f0afece42f48
children
line wrap: on
line source

% LTPDV_BUILD_GET_SELECTED_CLASS returns the currently selected class on
% the build panel.
% 
% M Hewitson 26-08-08
% 
% $Id: ltpdv_build_get_selected_class.m,v 1.1 2008/09/02 07:51:47 hewitson Exp $
% 

function cl = ltpdv_build_get_selected_class(mainfig)
  
  % Fill in the set selector list
  sh = findobj(mainfig, 'Tag', 'LTPDVbuildObjectClass');
 
  % Get the selected class
  strs = get(sh, 'String');
  idx  = get(sh, 'Value');  
  cl = strs{idx};
  
end