Mercurial > hg > ltpda
diff m-toolbox/classes/@LTPDAworkbench/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/@LTPDAworkbench/cb_guiClosed.m Wed Nov 23 19:22:13 2011 +0100 @@ -0,0 +1,41 @@ +% CB_GUICLOSED Callback method which destroys the workbench object. +% +% CALL: wb.cb_guiClosed +% +% VERSION: $Id: cb_guiClosed.m,v 1.1 2010/08/06 19:10:49 ingo Exp $ +% +function cb_guiClosed(varargin) + disp('$$$ closing LTPDAworkbench'); + wb = varargin{1}; + + +% % Delete workbench handle +% h = handle(wb.mp, 'callbackproperties'); +% set(h, 'WindowClosedCallback', []); +% +% javaMethod('setRepositoryManager', wb.mp, []); +% javaMethod('setLibrary', wb.mp, []); +% +% h.dispose +% delete(h); +% wb.mp = []; + + delete(wb); + +% clear(); +% evalin('base', 'clear ans'); +% java.lang.System.gc(); +% +% pause(2); +% +% jDesktop = com.mathworks.mde.desk.MLDesktop.getInstance; +% jMainFrame = jDesktop.getMainFrame; +% jAllFrames = jMainFrame.getFrames + + java.lang.System.gc + + clear(); + setappdata(0, 'LTPDAworkbench', []); + disp('*** Goodbye from LTPDAworkbench'); + +end