Mercurial > hg > ltpda
comparison 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 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:f0afece42f48 |
---|---|
1 % CB_GUICLOSED Callback method which destroys the workbench object. | |
2 % | |
3 % CALL: wb.cb_guiClosed | |
4 % | |
5 % VERSION: $Id: cb_guiClosed.m,v 1.1 2010/08/06 19:10:49 ingo Exp $ | |
6 % | |
7 function cb_guiClosed(varargin) | |
8 disp('$$$ closing LTPDAworkbench'); | |
9 wb = varargin{1}; | |
10 | |
11 | |
12 % % Delete workbench handle | |
13 % h = handle(wb.mp, 'callbackproperties'); | |
14 % set(h, 'WindowClosedCallback', []); | |
15 % | |
16 % javaMethod('setRepositoryManager', wb.mp, []); | |
17 % javaMethod('setLibrary', wb.mp, []); | |
18 % | |
19 % h.dispose | |
20 % delete(h); | |
21 % wb.mp = []; | |
22 | |
23 delete(wb); | |
24 | |
25 % clear(); | |
26 % evalin('base', 'clear ans'); | |
27 % java.lang.System.gc(); | |
28 % | |
29 % pause(2); | |
30 % | |
31 % jDesktop = com.mathworks.mde.desk.MLDesktop.getInstance; | |
32 % jMainFrame = jDesktop.getMainFrame; | |
33 % jAllFrames = jMainFrame.getFrames | |
34 | |
35 java.lang.System.gc | |
36 | |
37 clear(); | |
38 setappdata(0, 'LTPDAworkbench', []); | |
39 disp('*** Goodbye from LTPDAworkbench'); | |
40 | |
41 end |