author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Tue, 30 Sep 2014 00:32:42 +0100 | |
changeset 31 | 00f6de198c7f |
parent 25 | e0f3744cd77d |
child 34 | cda31dfd5386 |
permissions | -rw-r--r-- |
13
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1 |
"{ Package: 'jv:vdb' }" |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
2 |
|
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
3 |
VDBAbstractApplication subclass:#VDBStackApplication |
23
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
4 |
instanceVariableNames:'selectedThreadGroupHolder selectedThreadHolder |
31
00f6de198c7f
Minor fixes in the UI - redraw stack list when execution state changes.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
25
diff
changeset
|
5 |
selectedFrameHolder internalListHolder internalListView |
00f6de198c7f
Minor fixes in the UI - redraw stack list when execution state changes.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
25
diff
changeset
|
6 |
internalSelectionHolder' |
13
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
7 |
classVariableNames:'' |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
8 |
poolDictionaries:'' |
16
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
15
diff
changeset
|
9 |
category:'VDB-UI-Others' |
13
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
10 |
! |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
11 |
|
15
7cddd476fb00
Fix in stack application: react on thread / inferior termination.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13
diff
changeset
|
12 |
|
13
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
13 |
!VDBStackApplication class methodsFor:'interface specs'! |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
14 |
|
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
15 |
windowSpec |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
16 |
"This resource specification was automatically generated |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
17 |
by the UIPainter of ST/X." |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
18 |
|
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
19 |
"Do not manually edit this!! If it is corrupted, |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
20 |
the UIPainter may not be able to read the specification." |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
21 |
|
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
22 |
" |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
23 |
UIPainter new openOnClass:VDBStackApplication andSelector:#windowSpec |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
24 |
VDBStackApplication new openInterface:#windowSpec |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
25 |
VDBStackApplication open |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
26 |
" |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
27 |
|
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
28 |
<resource: #canvas> |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
29 |
|
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
30 |
^ |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
31 |
#(FullSpec |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
32 |
name: windowSpec |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
33 |
window: |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
34 |
(WindowSpec |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
35 |
label: 'Execution Stack' |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
36 |
name: 'Execution Stack' |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
37 |
min: (Point 10 10) |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
38 |
bounds: (Rectangle 0 0 300 300) |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
39 |
) |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
40 |
component: |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
41 |
(SpecCollection |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
42 |
collection: ( |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
43 |
(HierarchicalListViewSpec |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
44 |
name: 'Stack' |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
45 |
layout: (LayoutFrame 0 0 0 0 0 1 0 1) |
17
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
46 |
model: internalSelectionHolder |
23
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
47 |
menu: contextMenu |
13
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
48 |
hasHorizontalScrollBar: true |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
49 |
hasVerticalScrollBar: true |
17
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
50 |
listModel: internalListHolder |
13
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
51 |
useIndex: false |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
52 |
highlightMode: line |
24 | 53 |
showLines: false |
23
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
54 |
useDefaultIcons: false |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
55 |
showRoot: false |
31
00f6de198c7f
Minor fixes in the UI - redraw stack list when execution state changes.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
25
diff
changeset
|
56 |
postBuildCallback: postBuildInternalListView: |
13
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
57 |
) |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
58 |
) |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
59 |
|
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
60 |
) |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
61 |
) |
23
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
62 |
! ! |
13
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
63 |
|
23
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
64 |
!VDBStackApplication class methodsFor:'menu specs'! |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
65 |
|
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
66 |
contextMenu |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
67 |
"This resource specification was automatically generated |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
68 |
by the MenuEditor of ST/X." |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
69 |
|
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
70 |
"Do not manually edit this!! If it is corrupted, |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
71 |
the MenuEditor may not be able to read the specification." |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
72 |
|
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
73 |
|
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
74 |
" |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
75 |
MenuEditor new openOnClass:VDBStackApplication andSelector:#contextMenu |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
76 |
(Menu new fromLiteralArrayEncoding:(VDBStackApplication contextMenu)) startUp |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
77 |
" |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
78 |
|
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
79 |
<resource: #menu> |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
80 |
|
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
81 |
^ |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
82 |
#(Menu |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
83 |
( |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
84 |
(MenuItem |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
85 |
enabled: hasSelection |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
86 |
label: 'Inspect Model' |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
87 |
itemValue: doInspectModel |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
88 |
) |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
89 |
(MenuItem |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
90 |
label: 'Inspect Presenter' |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
91 |
itemValue: doInspectPresenter |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
92 |
) |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
93 |
) |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
94 |
nil |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
95 |
nil |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
96 |
) |
13
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
97 |
! ! |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
98 |
|
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
99 |
!VDBStackApplication class methodsFor:'plugIn spec'! |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
100 |
|
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
101 |
aspectSelectors |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
102 |
"This resource specification was automatically generated |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
103 |
by the UIPainter of ST/X." |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
104 |
|
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
105 |
"Do not manually edit this. If it is corrupted, |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
106 |
the UIPainter may not be able to read the specification." |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
107 |
|
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
108 |
"Return a description of exported aspects; |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
109 |
these can be connected to aspects of an embedding application |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
110 |
(if this app is embedded in a subCanvas)." |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
111 |
|
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
112 |
^ #( |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
113 |
#debuggerHolder |
23
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
114 |
#selectedFrameHolder |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
115 |
#selectedThreadGroupHolder |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
116 |
#selectedThreadHolder |
13
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
117 |
). |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
118 |
|
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
119 |
! ! |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
120 |
|
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
121 |
!VDBStackApplication methodsFor:'aspects'! |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
122 |
|
23
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
123 |
selectedFrameHolder |
13
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
124 |
"return/create the 'selectionHolder' value holder (automatically generated)" |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
125 |
|
23
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
126 |
selectedFrameHolder isNil ifTrue:[ |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
127 |
selectedFrameHolder := ValueHolder new. |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
128 |
selectedFrameHolder addDependent:self. |
13
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
129 |
]. |
23
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
130 |
^ selectedFrameHolder |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
131 |
|
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
132 |
"Created: / 21-09-2014 / 23:51:08 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
17
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
133 |
! |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
134 |
|
23
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
135 |
selectedFrameHolder:aValueModel |
17
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
136 |
"set the 'selectionHolder' value holder (automatically generated)" |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
137 |
|
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
138 |
|oldValue newValue| |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
139 |
|
23
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
140 |
selectedFrameHolder notNil ifTrue:[ |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
141 |
oldValue := selectedFrameHolder value. |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
142 |
selectedFrameHolder removeDependent:self. |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
143 |
]. |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
144 |
selectedFrameHolder := aValueModel. |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
145 |
selectedFrameHolder notNil ifTrue:[ |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
146 |
selectedFrameHolder addDependent:self. |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
147 |
]. |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
148 |
newValue := selectedFrameHolder value. |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
149 |
oldValue ~~ newValue ifTrue:[ |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
150 |
self update:#value with:newValue from:selectedFrameHolder. |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
151 |
]. |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
152 |
|
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
153 |
"Created: / 21-09-2014 / 23:50:54 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
154 |
! |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
155 |
|
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
156 |
selectedThreadGroupHolder |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
157 |
"return/create the 'selectedThreadGroupHolder' value holder (automatically generated)" |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
158 |
|
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
159 |
selectedThreadGroupHolder isNil ifTrue:[ |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
160 |
selectedThreadGroupHolder := ValueHolder new. |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
161 |
selectedThreadGroupHolder addDependent:self. |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
162 |
]. |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
163 |
^ selectedThreadGroupHolder |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
164 |
! |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
165 |
|
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
166 |
selectedThreadGroupHolder:something |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
167 |
"set the 'selectedThreadGroupHolder' value holder (automatically generated)" |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
168 |
|
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
169 |
|oldValue newValue| |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
170 |
|
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
171 |
selectedThreadGroupHolder notNil ifTrue:[ |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
172 |
oldValue := selectedThreadGroupHolder value. |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
173 |
selectedThreadGroupHolder removeDependent:self. |
17
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
174 |
]. |
23
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
175 |
selectedThreadGroupHolder := something. |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
176 |
selectedThreadGroupHolder notNil ifTrue:[ |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
177 |
selectedThreadGroupHolder addDependent:self. |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
178 |
]. |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
179 |
newValue := selectedThreadGroupHolder value. |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
180 |
oldValue ~~ newValue ifTrue:[ |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
181 |
self update:#value with:newValue from:selectedThreadGroupHolder. |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
182 |
]. |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
183 |
! |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
184 |
|
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
185 |
selectedThreadHolder |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
186 |
"return/create the 'selectedThreadHolder' value holder (automatically generated)" |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
187 |
|
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
188 |
selectedThreadHolder isNil ifTrue:[ |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
189 |
selectedThreadHolder := ValueHolder new. |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
190 |
selectedThreadHolder addDependent:self. |
17
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
191 |
]. |
23
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
192 |
^ selectedThreadHolder |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
193 |
! |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
194 |
|
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
195 |
selectedThreadHolder:something |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
196 |
"set the 'selectedThreadHolder' value holder (automatically generated)" |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
197 |
|
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
198 |
|oldValue newValue| |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
199 |
|
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
200 |
selectedThreadHolder notNil ifTrue:[ |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
201 |
oldValue := selectedThreadHolder value. |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
202 |
selectedThreadHolder removeDependent:self. |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
203 |
]. |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
204 |
selectedThreadHolder := something. |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
205 |
selectedThreadHolder notNil ifTrue:[ |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
206 |
selectedThreadHolder addDependent:self. |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
207 |
]. |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
208 |
newValue := selectedThreadHolder value. |
17
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
209 |
oldValue ~~ newValue ifTrue:[ |
23
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
210 |
self update:#value with:newValue from:selectedThreadHolder. |
17
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
211 |
]. |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
212 |
! ! |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
213 |
|
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
214 |
!VDBStackApplication methodsFor:'aspects-private'! |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
215 |
|
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
216 |
internalListHolder |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
217 |
"return/create the 'listHolder' value holder (automatically generated)" |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
218 |
|
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
219 |
internalListHolder isNil ifTrue:[ |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
220 |
internalListHolder := HierarchicalList new. |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
221 |
internalListHolder showRoot: false. |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
222 |
internalListHolder root: HierarchicalItem new. |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
223 |
]. |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
224 |
^ internalListHolder |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
225 |
|
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
226 |
"Created: / 20-09-2014 / 23:03:07 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
227 |
! |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
228 |
|
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
229 |
internalSelectionHolder |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
230 |
"return/create the 'internalSelectionHolder' value holder (automatically generated)" |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
231 |
|
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
232 |
internalSelectionHolder isNil ifTrue:[ |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
233 |
internalSelectionHolder := ValueHolder new. |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
234 |
internalSelectionHolder addDependent:self. |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
235 |
]. |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
236 |
^ internalSelectionHolder |
13
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
237 |
! ! |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
238 |
|
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
239 |
!VDBStackApplication methodsFor:'change & update'! |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
240 |
|
17
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
241 |
update:aspect with:param from:sender |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
242 |
"Invoked when an object that I depend upon sends a change notification." |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
243 |
|
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
244 |
"stub code automatically generated - please change as required" |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
245 |
|
23
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
246 |
sender == selectedFrameHolder ifTrue:[ |
17
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
247 |
self updateInternalSelection. |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
248 |
^ self. |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
249 |
]. |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
250 |
sender == internalSelectionHolder ifTrue:[ |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
251 |
self updateSelection. |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
252 |
]. |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
253 |
|
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
254 |
super update:aspect with:param from:sender |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
255 |
|
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
256 |
"Modified: / 20-09-2014 / 23:10:19 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
257 |
! |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
258 |
|
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
259 |
updateInternalList |
23
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
260 |
| root list | |
13
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
261 |
|
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
262 |
debugger isNil ifTrue:[ |
17
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
263 |
self internalListHolder root children:#(). |
13
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
264 |
^ self. |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
265 |
]. |
17
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
266 |
root := self internalListHolder root. |
23
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
267 |
list := debugger inferiors collect:[ :inferior | VDBThreadGroupPresenter new setThreadGroup: inferior; parent: root ]. |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
268 |
root children: list. |
13
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
269 |
root expand. |
23
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
270 |
root children size == 1 ifTrue:[ |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
271 |
root children anElement expand. |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
272 |
root children anElement children size == 1 ifTrue:[ |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
273 |
root children anElement children anElement expand. |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
274 |
] |
17
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
275 |
]. |
31
00f6de198c7f
Minor fixes in the UI - redraw stack list when execution state changes.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
25
diff
changeset
|
276 |
internalListView notNil ifTrue:[ |
00f6de198c7f
Minor fixes in the UI - redraw stack list when execution state changes.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
25
diff
changeset
|
277 |
internalListView invalidate. |
00f6de198c7f
Minor fixes in the UI - redraw stack list when execution state changes.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
25
diff
changeset
|
278 |
] |
13
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
279 |
|
17
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
280 |
"Created: / 20-09-2014 / 23:05:48 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
31
00f6de198c7f
Minor fixes in the UI - redraw stack list when execution state changes.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
25
diff
changeset
|
281 |
"Modified: / 30-09-2014 / 00:02:57 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
17
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
282 |
! |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
283 |
|
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
284 |
updateInternalSelection |
23
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
285 |
"/ | selection internalSelection | |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
286 |
"/ |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
287 |
"/ selection := self selectionHolder value. |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
288 |
"/ internalSelection := self internalListHolder value |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
289 |
"/ detect:[:e | e value == selection ] ifNone:[ nil ]. |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
290 |
"/ self internalSelectionHolder |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
291 |
"/ value: internalSelection |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
292 |
"/ withoutNotifying: self. |
17
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
293 |
|
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
294 |
"Created: / 20-09-2014 / 23:05:57 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
23
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
295 |
"Modified: / 21-09-2014 / 23:52:41 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
17
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
296 |
! |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
297 |
|
25
e0f3744cd77d
When execution is stopped. pre-select frame of stopped thread.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
24
diff
changeset
|
298 |
updateInternalSelectionAfterThreadStopped: thread |
e0f3744cd77d
When execution is stopped. pre-select frame of stopped thread.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
24
diff
changeset
|
299 |
| threadP frameP | |
e0f3744cd77d
When execution is stopped. pre-select frame of stopped thread.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
24
diff
changeset
|
300 |
|
e0f3744cd77d
When execution is stopped. pre-select frame of stopped thread.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
24
diff
changeset
|
301 |
threadP := self internalListHolder value root |
e0f3744cd77d
When execution is stopped. pre-select frame of stopped thread.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
24
diff
changeset
|
302 |
recursiveDetect:[ :e | e isThreadPresenter and:[ e thread == thread ] ]. |
e0f3744cd77d
When execution is stopped. pre-select frame of stopped thread.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
24
diff
changeset
|
303 |
frameP := threadP children first. |
e0f3744cd77d
When execution is stopped. pre-select frame of stopped thread.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
24
diff
changeset
|
304 |
self internalSelectionHolder value: frameP |
e0f3744cd77d
When execution is stopped. pre-select frame of stopped thread.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
24
diff
changeset
|
305 |
|
e0f3744cd77d
When execution is stopped. pre-select frame of stopped thread.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
24
diff
changeset
|
306 |
"Created: / 22-09-2014 / 23:21:27 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
e0f3744cd77d
When execution is stopped. pre-select frame of stopped thread.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
24
diff
changeset
|
307 |
! |
e0f3744cd77d
When execution is stopped. pre-select frame of stopped thread.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
24
diff
changeset
|
308 |
|
17
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
309 |
updateSelection |
23
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
310 |
| internalSelection frame thread group | |
17
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
311 |
|
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
312 |
internalSelection := self internalSelectionHolder value. |
23
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
313 |
internalSelection notNil ifTrue:[ |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
314 |
internalSelection isFramePresenter ifTrue:[ |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
315 |
frame := internalSelection frame. |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
316 |
thread := frame thread. |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
317 |
group := thread group. |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
318 |
] ifFalse:[ |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
319 |
internalSelection isThreadPresenter ifTrue:[ |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
320 |
thread := internalSelection thread. |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
321 |
group := thread group. |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
322 |
] ifFalse:[ |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
323 |
group := internalSelection threadGroup. |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
324 |
] |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
325 |
]. |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
326 |
]. |
17
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
327 |
|
23
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
328 |
self selectedThreadGroupHolder value: group withoutNotifying: self. |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
329 |
self selectedThreadHolder value: thread withoutNotifying: self. |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
330 |
self selectedFrameHolder value: frame withoutNotifying: self. |
17
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
331 |
|
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
332 |
"Created: / 20-09-2014 / 23:10:19 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
23
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
333 |
"Modified: / 22-09-2014 / 00:17:58 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
13
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
334 |
! ! |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
335 |
|
25
e0f3744cd77d
When execution is stopped. pre-select frame of stopped thread.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
24
diff
changeset
|
336 |
!VDBStackApplication methodsFor:'change & update-delayed'! |
13
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
337 |
|
25
e0f3744cd77d
When execution is stopped. pre-select frame of stopped thread.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
24
diff
changeset
|
338 |
enqueueUpdateInternalList |
e0f3744cd77d
When execution is stopped. pre-select frame of stopped thread.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
24
diff
changeset
|
339 |
self window sensor pushUserEvent:#updateInternalList for:self |
13
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
340 |
|
17
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
341 |
"Created: / 20-09-2014 / 23:05:33 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
25
e0f3744cd77d
When execution is stopped. pre-select frame of stopped thread.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
24
diff
changeset
|
342 |
! |
e0f3744cd77d
When execution is stopped. pre-select frame of stopped thread.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
24
diff
changeset
|
343 |
|
e0f3744cd77d
When execution is stopped. pre-select frame of stopped thread.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
24
diff
changeset
|
344 |
enqueueUpdateInternalSelectionAfterThreadStopped: aGDBThread |
e0f3744cd77d
When execution is stopped. pre-select frame of stopped thread.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
24
diff
changeset
|
345 |
self window sensor pushUserEvent:#updateInternalSelectionAfterThreadStopped: for:self withArgument: aGDBThread |
e0f3744cd77d
When execution is stopped. pre-select frame of stopped thread.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
24
diff
changeset
|
346 |
|
e0f3744cd77d
When execution is stopped. pre-select frame of stopped thread.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
24
diff
changeset
|
347 |
"Created: / 22-09-2014 / 23:15:14 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
13
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
348 |
! ! |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
349 |
|
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
350 |
!VDBStackApplication methodsFor:'event handling'! |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
351 |
|
31
00f6de198c7f
Minor fixes in the UI - redraw stack list when execution state changes.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
25
diff
changeset
|
352 |
onRunningEvent: event |
00f6de198c7f
Minor fixes in the UI - redraw stack list when execution state changes.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
25
diff
changeset
|
353 |
self enqueueUpdateInternalList. |
00f6de198c7f
Minor fixes in the UI - redraw stack list when execution state changes.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
25
diff
changeset
|
354 |
|
00f6de198c7f
Minor fixes in the UI - redraw stack list when execution state changes.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
25
diff
changeset
|
355 |
"Created: / 30-09-2014 / 00:02:23 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
00f6de198c7f
Minor fixes in the UI - redraw stack list when execution state changes.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
25
diff
changeset
|
356 |
! |
00f6de198c7f
Minor fixes in the UI - redraw stack list when execution state changes.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
25
diff
changeset
|
357 |
|
13
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
358 |
onStoppedEvent: event |
25
e0f3744cd77d
When execution is stopped. pre-select frame of stopped thread.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
24
diff
changeset
|
359 |
self enqueueUpdateInternalList. |
e0f3744cd77d
When execution is stopped. pre-select frame of stopped thread.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
24
diff
changeset
|
360 |
self enqueueUpdateInternalSelectionAfterThreadStopped:event stoppedThread. |
13
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
361 |
|
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
362 |
"Created: / 17-09-2014 / 23:04:24 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
25
e0f3744cd77d
When execution is stopped. pre-select frame of stopped thread.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
24
diff
changeset
|
363 |
"Modified: / 22-09-2014 / 23:26:52 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
15
7cddd476fb00
Fix in stack application: react on thread / inferior termination.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13
diff
changeset
|
364 |
! |
7cddd476fb00
Fix in stack application: react on thread / inferior termination.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13
diff
changeset
|
365 |
|
7cddd476fb00
Fix in stack application: react on thread / inferior termination.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13
diff
changeset
|
366 |
onThreadExitedEvent: event |
25
e0f3744cd77d
When execution is stopped. pre-select frame of stopped thread.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
24
diff
changeset
|
367 |
self enqueueUpdateInternalList. |
15
7cddd476fb00
Fix in stack application: react on thread / inferior termination.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13
diff
changeset
|
368 |
|
7cddd476fb00
Fix in stack application: react on thread / inferior termination.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13
diff
changeset
|
369 |
"Created: / 18-09-2014 / 23:30:28 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
17
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
370 |
"Modified: / 20-09-2014 / 23:08:19 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
15
7cddd476fb00
Fix in stack application: react on thread / inferior termination.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13
diff
changeset
|
371 |
! |
7cddd476fb00
Fix in stack application: react on thread / inferior termination.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13
diff
changeset
|
372 |
|
7cddd476fb00
Fix in stack application: react on thread / inferior termination.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13
diff
changeset
|
373 |
onThreadGroupExitedEvent: event |
25
e0f3744cd77d
When execution is stopped. pre-select frame of stopped thread.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
24
diff
changeset
|
374 |
self enqueueUpdateInternalList. |
15
7cddd476fb00
Fix in stack application: react on thread / inferior termination.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13
diff
changeset
|
375 |
|
7cddd476fb00
Fix in stack application: react on thread / inferior termination.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13
diff
changeset
|
376 |
"Created: / 18-09-2014 / 23:30:32 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
17
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
377 |
"Modified: / 20-09-2014 / 23:08:22 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
13
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
378 |
! ! |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
379 |
|
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
380 |
!VDBStackApplication methodsFor:'hooks'! |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
381 |
|
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
382 |
commonPostOpen |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
383 |
"a common hook for postOpenWith:, postOpenAsSubcanvasWith: and postOpenAsDialogWith:." |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
384 |
|
25
e0f3744cd77d
When execution is stopped. pre-select frame of stopped thread.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
24
diff
changeset
|
385 |
self enqueueUpdateInternalList |
13
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
386 |
|
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
387 |
"Created: / 18-09-2014 / 00:29:21 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
17
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
388 |
"Modified: / 20-09-2014 / 23:50:11 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
31
00f6de198c7f
Minor fixes in the UI - redraw stack list when execution state changes.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
25
diff
changeset
|
389 |
! |
00f6de198c7f
Minor fixes in the UI - redraw stack list when execution state changes.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
25
diff
changeset
|
390 |
|
00f6de198c7f
Minor fixes in the UI - redraw stack list when execution state changes.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
25
diff
changeset
|
391 |
postBuildInternalListView: aView |
00f6de198c7f
Minor fixes in the UI - redraw stack list when execution state changes.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
25
diff
changeset
|
392 |
internalListView := aView |
00f6de198c7f
Minor fixes in the UI - redraw stack list when execution state changes.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
25
diff
changeset
|
393 |
|
00f6de198c7f
Minor fixes in the UI - redraw stack list when execution state changes.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
25
diff
changeset
|
394 |
"Modified: / 30-09-2014 / 00:00:28 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
13
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
395 |
! ! |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
396 |
|
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
397 |
!VDBStackApplication methodsFor:'initialization & release'! |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
398 |
|
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
399 |
subscribe |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
400 |
"Register for debugger events. To be overrided by subclasses" |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
401 |
|
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
402 |
debugger announcer |
31
00f6de198c7f
Minor fixes in the UI - redraw stack list when execution state changes.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
25
diff
changeset
|
403 |
when: GDBRunningEvent send: #onRunningEvent: to: self; |
15
7cddd476fb00
Fix in stack application: react on thread / inferior termination.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13
diff
changeset
|
404 |
when: GDBStoppedEvent send: #onStoppedEvent: to: self; |
7cddd476fb00
Fix in stack application: react on thread / inferior termination.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13
diff
changeset
|
405 |
when: GDBThreadExitedEvent send: #onThreadExitedEvent: to: self; |
7cddd476fb00
Fix in stack application: react on thread / inferior termination.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13
diff
changeset
|
406 |
when: GDBThreadGroupExitedEvent send: #onThreadGroupExitedEvent: to: self |
13
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
407 |
|
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
408 |
"Created: / 07-06-2014 / 14:33:16 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
31
00f6de198c7f
Minor fixes in the UI - redraw stack list when execution state changes.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
25
diff
changeset
|
409 |
"Modified: / 30-09-2014 / 00:02:03 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
13
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
410 |
! ! |
d06924d8ca0a
Minor fixes in UI - allow to open stack window as floating tool window.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
411 |
|
23
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
412 |
!VDBStackApplication methodsFor:'menu actions'! |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
413 |
|
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
414 |
doInspectModel |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
415 |
| selection | |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
416 |
|
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
417 |
selection := self internalSelectionHolder value. |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
418 |
selection notEmptyOrNil ifTrue:[ |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
419 |
selection isThreadGroupPresenter ifTrue: [ selection threadGroup inspect ]. |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
420 |
selection isThreadPresenter ifTrue: [ selection thread inspect ]. |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
421 |
selection isFramePresenter ifTrue: [ selection frame inspect ]. |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
422 |
]. |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
423 |
|
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
424 |
"Modified: / 22-09-2014 / 01:17:23 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
425 |
! |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
426 |
|
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
427 |
doInspectPresenter |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
428 |
self internalSelectionHolder value inspect |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
429 |
|
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
430 |
"Modified: / 22-09-2014 / 01:17:52 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
431 |
! ! |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
432 |
|
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
433 |
!VDBStackApplication methodsFor:'queries'! |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
434 |
|
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
435 |
hasSelection |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
436 |
^ self internalSelectionHolder value notEmptyOrNil |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
437 |
|
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
438 |
"Modified: / 22-09-2014 / 01:13:39 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
439 |
! ! |
ed5f4b55cee5
Added toolbar and icons. Show all thread groups and threads in stack view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17
diff
changeset
|
440 |
|
15
7cddd476fb00
Fix in stack application: react on thread / inferior termination.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13
diff
changeset
|
441 |
!VDBStackApplication class methodsFor:'documentation'! |
7cddd476fb00
Fix in stack application: react on thread / inferior termination.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13
diff
changeset
|
442 |
|
7cddd476fb00
Fix in stack application: react on thread / inferior termination.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13
diff
changeset
|
443 |
version_HG |
7cddd476fb00
Fix in stack application: react on thread / inferior termination.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13
diff
changeset
|
444 |
|
7cddd476fb00
Fix in stack application: react on thread / inferior termination.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13
diff
changeset
|
445 |
^ '$Changeset: <not expanded> $' |
7cddd476fb00
Fix in stack application: react on thread / inferior termination.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13
diff
changeset
|
446 |
! ! |
7cddd476fb00
Fix in stack application: react on thread / inferior termination.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13
diff
changeset
|
447 |