Mercurial > hg > ltpda
view m-toolbox/classes/@LTPDAworkbench/cb_guiClosed.m @ 29:54f14716c721 database-connection-manager
Update Java code
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Mon, 05 Dec 2011 16:20:06 +0100 |
parents | f0afece42f48 |
children |
line wrap: on
line source
% 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