www.gusucode.com > mbcview 工具箱matlab源码程序 > mbcview/@cgtradeoffgui/@mmTableSelectionView/pUpdateList.m
function pUpdateList(obj) %PUPDATELIST Update list of tables to be created % % PUPDATELIST(OBJ) refreshes the list and its selection. % Copyright 2000-2004 The MathWorks, Inc. and Ford Global Technologies, Inc. if ~isempty(obj.MessageService) tables = obj.MessageService.TableNames; if ~isempty(tables) set(obj.hList, 'String', tables, ... 'Value', find(obj.MessageService.TableWillBeCreated), ... 'Enable', 'on'); else set(obj.hList, 'String', {''}, 'Value', [], 'Enable', 'off'); end else set(obj.hList, 'String', {''}, 'Value', [], 'Enable', 'off'); end