Mercurial > hg > ltpda
diff m-toolbox/classes/@workspaceBrowser/cb_guiClosed.m @ 0:f0afece42f48
Import.
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Wed, 23 Nov 2011 19:22:13 +0100 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/m-toolbox/classes/@workspaceBrowser/cb_guiClosed.m Wed Nov 23 19:22:13 2011 +0100 @@ -0,0 +1,29 @@ +% CB_GUICLOSED Closes the GUI. +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% CB_GUICLOSED Closes the GUI. +% +% $Id: cb_guiClosed.m,v 1.1 2010/01/22 15:58:41 ingo Exp $ +% + +function cb_guiClosed(varargin) + wb = getappdata(0, 'WorkspaceBrowser'); + if ~isempty(wb) + delete(wb.h1); + delete(wb.h2); + delete(wb.h3); + delete(wb.h4); + delete(wb.h5); + delete(wb.h6); + delete(wb.h7); + delete(wb.h8); + delete(wb.h9); + setappdata(0, 'WorkspaceBrowser', []); + wb.hdl = []; + java.lang.System.gc(); + disp('*** Goodbye from WorkspaceBrowser'); + end + +end + +