view m-toolbox/classes/@constructor/cb_selectClass.m @ 7:1e91f84a4be8 database-connection-manager

Make ltpda_up.retrieve work with java.sql.Connection objects
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Mon, 05 Dec 2011 16:20:06 +0100
parents f0afece42f48
children
line wrap: on
line source

function cb_selectClass(varargin)
  
  myh = varargin{1};
  mainfig = varargin{end};
    
  % get selected class
  h = findobj(mainfig.handle, 'Tag', 'ClassSelect');
  classes = get(h, 'String');
  cl = classes{get(h, 'Value')};
  
  % get sets
  ii = eval([cl '.getInfo']);
  
  % fill set list
  h = findobj(mainfig.handle, 'Tag', 'SetSelect');
  set(h, 'Value', 1);
  set(h, 'String', ii.sets);
  
  constructor.cb_selectSet(myh, mainfig);
  
end