view m-toolbox/classes/@constructor/cb_selectSet.m @ 35:4be5f7a5316f database-connection-manager

Suppress output messages on preferences loading and saving
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_selectSet(varargin)
  
  myh = varargin{1};
  mainfig = varargin{end};

  % get class
  h = findobj(mainfig.handle, 'Tag', 'ClassSelect');
  classes = get(h, 'String');
  cl = classes{get(h, 'Value')};
    
  % get set
  h = findobj(mainfig.handle, 'Tag', 'SetSelect');
  sets = get(h, 'String');
  sset = sets{get(h, 'Value')};

  % get plist 
  cmdstr = [cl '.getInfo(''' cl ''', ''' sset ''')' ];
  ii = eval(cmdstr);
  pl = ii.plists;
  
  % make command
  cmd = [cl '(' string(pl) ')'];
  
  ch = findobj(mainfig.handle, 'Tag', 'ConstructorDisplay');
  set(ch, 'String', cmd);
  
end