author | Jan Vrany <jan.vrany@labware.com> |
Tue, 26 Jul 2022 15:01:33 +0100 | |
changeset 265 | f2470f0dd9cd |
parent 264 | 23960fcb9dac |
permissions | -rw-r--r-- |
49
2ec7f7ed9242
License this package under 'Creative Commons Attribution-NonCommercial 4.0 International License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
44
diff
changeset
|
1 |
" |
264
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
241
diff
changeset
|
2 |
jv:libgdbs - GNU Debugger Interface Library |
49
2ec7f7ed9242
License this package under 'Creative Commons Attribution-NonCommercial 4.0 International License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
44
diff
changeset
|
3 |
Copyright (C) 2015-now Jan Vrany |
264
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
241
diff
changeset
|
4 |
Copyright (C) 2020-2022 LabWare |
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
241
diff
changeset
|
5 |
|
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
241
diff
changeset
|
6 |
Permission is hereby granted, free of charge, to any person obtaining a copy |
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
241
diff
changeset
|
7 |
of this software and associated documentation files (the 'Software'), to deal |
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
241
diff
changeset
|
8 |
in the Software without restriction, including without limitation the rights |
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
241
diff
changeset
|
9 |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
241
diff
changeset
|
10 |
copies of the Software, and to permit persons to whom the Software is |
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
241
diff
changeset
|
11 |
furnished to do so, subject to the following conditions: |
49
2ec7f7ed9242
License this package under 'Creative Commons Attribution-NonCommercial 4.0 International License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
44
diff
changeset
|
12 |
|
264
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
241
diff
changeset
|
13 |
The above copyright notice and this permission notice shall be included in all |
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
241
diff
changeset
|
14 |
copies or substantial portions of the Software. |
49
2ec7f7ed9242
License this package under 'Creative Commons Attribution-NonCommercial 4.0 International License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
44
diff
changeset
|
15 |
|
264
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
241
diff
changeset
|
16 |
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
241
diff
changeset
|
17 |
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
241
diff
changeset
|
18 |
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
241
diff
changeset
|
19 |
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
241
diff
changeset
|
20 |
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
241
diff
changeset
|
21 |
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
241
diff
changeset
|
22 |
SOFTWARE. |
49
2ec7f7ed9242
License this package under 'Creative Commons Attribution-NonCommercial 4.0 International License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
44
diff
changeset
|
23 |
" |
16
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
24 |
"{ Package: 'jv:vdb' }" |
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
25 |
|
40
d766d4c854a2
Cleanup in debugger and inferior console applications to catch up changes in `jv:libgdbs`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
20
diff
changeset
|
26 |
"{ NameSpace: Smalltalk }" |
d766d4c854a2
Cleanup in debugger and inferior console applications to catch up changes in `jv:libgdbs`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
20
diff
changeset
|
27 |
|
16
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
28 |
VDBAbstractApplication subclass:#VDBSourceApplication |
17
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
29 |
instanceVariableNames:'frameHolder sourceFileHolder sourceStringHolder sourceView' |
16
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
30 |
classVariableNames:'' |
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
31 |
poolDictionaries:'' |
17
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
32 |
category:'VDB-UI-Source' |
16
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
33 |
! |
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
34 |
|
49
2ec7f7ed9242
License this package under 'Creative Commons Attribution-NonCommercial 4.0 International License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
44
diff
changeset
|
35 |
!VDBSourceApplication class methodsFor:'documentation'! |
2ec7f7ed9242
License this package under 'Creative Commons Attribution-NonCommercial 4.0 International License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
44
diff
changeset
|
36 |
|
2ec7f7ed9242
License this package under 'Creative Commons Attribution-NonCommercial 4.0 International License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
44
diff
changeset
|
37 |
copyright |
2ec7f7ed9242
License this package under 'Creative Commons Attribution-NonCommercial 4.0 International License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
44
diff
changeset
|
38 |
" |
264
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
241
diff
changeset
|
39 |
jv:libgdbs - GNU Debugger Interface Library |
49
2ec7f7ed9242
License this package under 'Creative Commons Attribution-NonCommercial 4.0 International License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
44
diff
changeset
|
40 |
Copyright (C) 2015-now Jan Vrany |
264
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
241
diff
changeset
|
41 |
Copyright (C) 2020-2022 LabWare |
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
241
diff
changeset
|
42 |
|
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
241
diff
changeset
|
43 |
Permission is hereby granted, free of charge, to any person obtaining a copy |
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
241
diff
changeset
|
44 |
of this software and associated documentation files (the 'Software'), to deal |
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
241
diff
changeset
|
45 |
in the Software without restriction, including without limitation the rights |
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
241
diff
changeset
|
46 |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
241
diff
changeset
|
47 |
copies of the Software, and to permit persons to whom the Software is |
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
241
diff
changeset
|
48 |
furnished to do so, subject to the following conditions: |
49
2ec7f7ed9242
License this package under 'Creative Commons Attribution-NonCommercial 4.0 International License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
44
diff
changeset
|
49 |
|
264
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
241
diff
changeset
|
50 |
The above copyright notice and this permission notice shall be included in all |
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
241
diff
changeset
|
51 |
copies or substantial portions of the Software. |
49
2ec7f7ed9242
License this package under 'Creative Commons Attribution-NonCommercial 4.0 International License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
44
diff
changeset
|
52 |
|
264
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
241
diff
changeset
|
53 |
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
241
diff
changeset
|
54 |
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
241
diff
changeset
|
55 |
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
241
diff
changeset
|
56 |
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
241
diff
changeset
|
57 |
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
241
diff
changeset
|
58 |
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
241
diff
changeset
|
59 |
SOFTWARE. |
49
2ec7f7ed9242
License this package under 'Creative Commons Attribution-NonCommercial 4.0 International License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
44
diff
changeset
|
60 |
" |
2ec7f7ed9242
License this package under 'Creative Commons Attribution-NonCommercial 4.0 International License'
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
44
diff
changeset
|
61 |
! ! |
20 | 62 |
|
16
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
63 |
!VDBSourceApplication class methodsFor:'interface specs'! |
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
64 |
|
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
65 |
windowSpec |
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
66 |
"This resource specification was automatically generated |
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
67 |
by the UIPainter of ST/X." |
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
68 |
|
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
69 |
"Do not manually edit this!! If it is corrupted, |
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
70 |
the UIPainter may not be able to read the specification." |
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
71 |
|
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
72 |
" |
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
73 |
UIPainter new openOnClass:VDBSourceApplication andSelector:#windowSpec |
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
74 |
VDBSourceApplication new openInterface:#windowSpec |
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
75 |
VDBSourceApplication open |
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
76 |
" |
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
77 |
|
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
78 |
<resource: #canvas> |
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
79 |
|
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
80 |
^ |
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
81 |
#(FullSpec |
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
82 |
name: windowSpec |
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
83 |
window: |
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
84 |
(WindowSpec |
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
85 |
label: 'Source View' |
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
86 |
name: 'Source View' |
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
87 |
min: (Point 10 10) |
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
88 |
bounds: (Rectangle 0 0 300 300) |
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
89 |
) |
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
90 |
component: |
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
91 |
(SpecCollection |
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
92 |
collection: ( |
20 | 93 |
(NonScrollableArbitraryComponentSpec |
16
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
94 |
name: 'SourceView' |
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
95 |
layout: (LayoutFrame 0 0 0 0 0 1 0 1) |
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
96 |
model: sourceStringHolder |
20 | 97 |
component: sourceView |
16
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
98 |
) |
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
99 |
) |
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
100 |
|
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
101 |
) |
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
102 |
) |
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
103 |
! ! |
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
104 |
|
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
105 |
!VDBSourceApplication class methodsFor:'plugIn spec'! |
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
106 |
|
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
107 |
aspectSelectors |
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
108 |
"This resource specification was automatically generated |
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
109 |
by the UIPainter of ST/X." |
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
110 |
|
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
111 |
"Do not manually edit this. If it is corrupted, |
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
112 |
the UIPainter may not be able to read the specification." |
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
113 |
|
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
114 |
"Return a description of exported aspects; |
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
115 |
these can be connected to aspects of an embedding application |
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
116 |
(if this app is embedded in a subCanvas)." |
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
117 |
|
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
118 |
^ #( |
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
119 |
#debuggerHolder |
17
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
120 |
#frameHolder |
16
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
121 |
). |
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
122 |
|
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
123 |
! ! |
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
124 |
|
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
125 |
!VDBSourceApplication methodsFor:'aspects'! |
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
126 |
|
17
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
127 |
frameHolder |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
128 |
"return/create the 'frameHolder' value holder (automatically generated)" |
16
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
129 |
|
17
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
130 |
frameHolder isNil ifTrue:[ |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
131 |
frameHolder := ValueHolder new. |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
132 |
frameHolder addDependent:self. |
16
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
133 |
]. |
17
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
134 |
^ frameHolder |
16
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
135 |
! |
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
136 |
|
17
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
137 |
frameHolder:something |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
138 |
"set the 'frameHolder' value holder (automatically generated)" |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
139 |
|
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
140 |
|oldValue newValue| |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
141 |
|
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
142 |
frameHolder notNil ifTrue:[ |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
143 |
oldValue := frameHolder value. |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
144 |
frameHolder removeDependent:self. |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
145 |
]. |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
146 |
frameHolder := something. |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
147 |
frameHolder notNil ifTrue:[ |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
148 |
frameHolder addDependent:self. |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
149 |
]. |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
150 |
newValue := frameHolder value. |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
151 |
oldValue ~~ newValue ifTrue:[ |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
152 |
self update:#value with:newValue from:frameHolder. |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
153 |
]. |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
154 |
! |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
155 |
|
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
156 |
sourceFileHolder |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
157 |
"return/create the 'sourceFileHolder' value holder (automatically generated)" |
16
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
158 |
|
17
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
159 |
sourceFileHolder isNil ifTrue:[ |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
160 |
sourceFileHolder := ValueHolder new. |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
161 |
sourceFileHolder addDependent:self. |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
162 |
]. |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
163 |
^ sourceFileHolder |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
164 |
! |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
165 |
|
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
166 |
sourceFileHolder:something |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
167 |
"set the 'sourceFileHolder' value holder (automatically generated)" |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
168 |
|
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
169 |
|oldValue newValue| |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
170 |
|
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
171 |
sourceFileHolder notNil ifTrue:[ |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
172 |
oldValue := sourceFileHolder value. |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
173 |
sourceFileHolder removeDependent:self. |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
174 |
]. |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
175 |
sourceFileHolder := something. |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
176 |
sourceFileHolder notNil ifTrue:[ |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
177 |
sourceFileHolder addDependent:self. |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
178 |
]. |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
179 |
newValue := sourceFileHolder value. |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
180 |
oldValue ~~ newValue ifTrue:[ |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
181 |
self update:#value with:newValue from:sourceFileHolder. |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
182 |
]. |
16
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
183 |
! |
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
184 |
|
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
185 |
sourceStringHolder |
17
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
186 |
"return/create the 'sourceStringHolder' value holder (automatically generated)" |
16
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
187 |
|
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
188 |
sourceStringHolder isNil ifTrue:[ |
17
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
189 |
sourceStringHolder := ValueHolder new. |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
190 |
sourceStringHolder addDependent:self. |
16
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
191 |
]. |
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
192 |
^ sourceStringHolder |
17
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
193 |
! |
16
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
194 |
|
17
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
195 |
sourceStringHolder:something |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
196 |
"set the 'sourceStringHolder' value holder (automatically generated)" |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
197 |
|
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
198 |
|oldValue newValue| |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
199 |
|
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
200 |
sourceStringHolder notNil ifTrue:[ |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
201 |
oldValue := sourceStringHolder value. |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
202 |
sourceStringHolder removeDependent:self. |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
203 |
]. |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
204 |
sourceStringHolder := something. |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
205 |
sourceStringHolder notNil ifTrue:[ |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
206 |
sourceStringHolder addDependent:self. |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
207 |
]. |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
208 |
newValue := sourceStringHolder value. |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
209 |
oldValue ~~ newValue ifTrue:[ |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
210 |
self update:#value with:newValue from:sourceStringHolder. |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
211 |
]. |
20 | 212 |
! |
213 |
||
214 |
sourceView |
|
215 |
sourceView isNil ifTrue:[ |
|
216 |
sourceView := Tools::CodeView2 new. |
|
94
e76206d071fc
UX: Allow to set a font for text, list views and pinned menus
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
68
diff
changeset
|
217 |
sourceView font: self textFont. |
68
6caeb5d7c92b
Added support for inspecting expression result in source view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
58
diff
changeset
|
218 |
sourceView compilerClass: (VDBEvaluator new setDebugger: debugger). |
20 | 219 |
sourceView readOnly: true. |
220 |
sourceView services: #() |
|
221 |
]. |
|
222 |
^ sourceView |
|
223 |
||
224 |
"Created: / 21-09-2014 / 01:42:25 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
94
e76206d071fc
UX: Allow to set a font for text, list views and pinned menus
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
68
diff
changeset
|
225 |
"Modified: / 20-08-2018 / 11:03:09 / 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
|
226 |
! ! |
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 |
!VDBSourceApplication methodsFor:'change & update'! |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
229 |
|
122
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
230 |
update:aspect with:param from:sender |
17
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
231 |
"Invoked when an object that I depend upon sends a change notification." |
122
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
232 |
|
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
233 |
sender == frameHolder ifTrue:[ |
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
234 |
self updateSourceFile. |
17
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
235 |
^ self. |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
236 |
]. |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
237 |
sender == sourceFileHolder ifTrue:[ |
122
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
238 |
self updateSourceString. |
17
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
239 |
^ self. |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
240 |
]. |
c5ee4ea44165
Some more work on source displaying
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
241 |
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
|
242 |
|
122
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
243 |
"Modified: / 02-10-2018 / 10:50:19 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
58
df46b9c82b38
Variable objects: highlight values that have changed since last "view"
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
49
diff
changeset
|
244 |
! |
df46b9c82b38
Variable objects: highlight values that have changed since last "view"
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
49
diff
changeset
|
245 |
|
122
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
246 |
updateCurrentLine |
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
247 |
| frame file | |
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
248 |
|
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
249 |
frame := frameHolder value. |
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
250 |
file := sourceFileHolder value. |
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
251 |
(frame notNil and:[file notNil]) ifTrue:[ |
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
252 |
| line | |
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
253 |
line := frame line. |
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
254 |
line notNil ifTrue:[ |
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
255 |
sourceView selectLine:line. |
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
256 |
sourceView makeSelectionVisible. |
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
257 |
^ self. |
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
258 |
] |
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
259 |
]. |
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
260 |
sourceView unselect |
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
261 |
|
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
262 |
"Created: / 02-10-2018 / 11:03:17 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
263 |
! |
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
264 |
|
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
265 |
updateSourceFile |
58
df46b9c82b38
Variable objects: highlight values that have changed since last "view"
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
49
diff
changeset
|
266 |
| frame | |
df46b9c82b38
Variable objects: highlight values that have changed since last "view"
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
49
diff
changeset
|
267 |
|
df46b9c82b38
Variable objects: highlight values that have changed since last "view"
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
49
diff
changeset
|
268 |
frame := frameHolder value. |
122
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
269 |
frame notNil ifTrue:[ |
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
270 |
| file | |
58
df46b9c82b38
Variable objects: highlight values that have changed since last "view"
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
49
diff
changeset
|
271 |
|
122
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
272 |
file := frame file. |
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
273 |
file notNil ifTrue:[ file := file asFilename ]. |
133
16a1f7a5eed0
Fix display of "no source code available" message in source view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
122
diff
changeset
|
274 |
file notNil ifTrue:[ |
16a1f7a5eed0
Fix display of "no source code available" message in source view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
122
diff
changeset
|
275 |
self sourceFileHolder value: file. |
16a1f7a5eed0
Fix display of "no source code available" message in source view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
122
diff
changeset
|
276 |
] ifFalse:[ |
16a1f7a5eed0
Fix display of "no source code available" message in source view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
122
diff
changeset
|
277 |
"/ If file is nil, this means that it is either unknown (no |
16a1f7a5eed0
Fix display of "no source code available" message in source view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
122
diff
changeset
|
278 |
"/ debug info) or it cannot be resolved. If the latter, a |
16a1f7a5eed0
Fix display of "no source code available" message in source view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
122
diff
changeset
|
279 |
"/ help text is shown, see #updateSourceString. |
16a1f7a5eed0
Fix display of "no source code available" message in source view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
122
diff
changeset
|
280 |
"/ |
16a1f7a5eed0
Fix display of "no source code available" message in source view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
122
diff
changeset
|
281 |
"/ Therefore, here we force an update to make sure that |
16a1f7a5eed0
Fix display of "no source code available" message in source view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
122
diff
changeset
|
282 |
"/ help text is regenerated. |
16a1f7a5eed0
Fix display of "no source code available" message in source view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
122
diff
changeset
|
283 |
self sourceFileHolder |
16a1f7a5eed0
Fix display of "no source code available" message in source view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
122
diff
changeset
|
284 |
setValue: file; |
16a1f7a5eed0
Fix display of "no source code available" message in source view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
122
diff
changeset
|
285 |
changed: #value |
16a1f7a5eed0
Fix display of "no source code available" message in source view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
122
diff
changeset
|
286 |
] |
58
df46b9c82b38
Variable objects: highlight values that have changed since last "view"
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
49
diff
changeset
|
287 |
]. |
df46b9c82b38
Variable objects: highlight values that have changed since last "view"
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
49
diff
changeset
|
288 |
|
df46b9c82b38
Variable objects: highlight values that have changed since last "view"
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
49
diff
changeset
|
289 |
"Created: / 01-02-2018 / 15:16:24 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
133
16a1f7a5eed0
Fix display of "no source code available" message in source view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
122
diff
changeset
|
290 |
"Modified: / 16-01-2019 / 23:55:47 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
122
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
291 |
! |
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
292 |
|
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
293 |
updateSourceString |
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
294 |
| source file | |
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
295 |
|
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
296 |
source := nil. |
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
297 |
file := sourceFileHolder value. |
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
298 |
(file notNil and:[file exists]) ifTrue:[ |
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
299 |
source := file contents asString. |
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
300 |
] ifFalse:[ |
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
301 |
"/ We have no source. As a courtesy to the user, display some info |
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
302 |
"/ on what's the problem and |
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
303 |
| frame | |
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
304 |
|
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
305 |
frame := self frameHolder value. |
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
306 |
source := Text streamContents:[ :info | |
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
307 |
| frameFile frameFullname | |
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
308 |
info emphasis: #color -> (UserPreferences current codeViewTheme ? UserPreferences current) commentColor. |
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
309 |
info nextPutAll: '//' ; cr. |
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
310 |
info nextPutAll: '// '; nextPutAll: (resources string: 'No source available :-('); cr. |
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
311 |
info nextPutAll: '//' ; cr. |
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
312 |
frameFile := frame propertyAt: #file. |
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
313 |
frameFullname := frame propertyAt: #fullname. |
157
e08810465090
UX: fix skip in user message when there's no reference to a source file
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
154
diff
changeset
|
314 |
(frameFile isNil and:[ frameFullname isNil ]) ifTrue:[ |
122
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
315 |
info nextPutAll: '// '; nextPutLine: (resources string: 'Source file reference missing (no debug info?)'). |
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
316 |
] ifFalse:[ |
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
317 |
info nextPutAll: '// '; nextPutLine: (resources string: 'Source file cannot be resolved:'). |
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
318 |
info nextPutAll: '// '; cr. |
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
319 |
frameFile notNil ifTrue:[ |
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
320 |
info nextPutAll: '// '; nextPutLine: frameFile. |
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
321 |
]. |
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
322 |
frameFullname notNil ifTrue:[ |
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
323 |
info nextPutAll: '// '; nextPutLine: frameFullname. |
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
324 |
]. |
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
325 |
info nextPutAll: '// '; cr. |
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
326 |
info nextPutAll: '// '; nextPutLine: (resources string: 'Configured source directories:'). |
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
327 |
debugger directories do:[:each | |
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
328 |
info nextPutAll: '// '; nextPutLine: each. |
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
329 |
]. |
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
330 |
info nextPutAll: '// '; cr. |
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
331 |
info nextPutAll: '// '; nextPutLine: (resources string: 'See also:'). |
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
332 |
info nextPutAll: '// [1]: https://sourceware.org/gdb/onlinedocs/gdb/Source-Path.html'. |
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
333 |
]. |
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
334 |
|
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
335 |
] |
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
336 |
|
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
337 |
]. |
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
338 |
self sourceStringHolder value:source. |
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
339 |
self updateCurrentLine. |
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
340 |
^ self. |
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
341 |
|
157
e08810465090
UX: fix skip in user message when there's no reference to a source file
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
154
diff
changeset
|
342 |
"Modified: / 08-05-2019 / 12:53:25 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
58
df46b9c82b38
Variable objects: highlight values that have changed since last "view"
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
49
diff
changeset
|
343 |
! ! |
df46b9c82b38
Variable objects: highlight values that have changed since last "view"
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
49
diff
changeset
|
344 |
|
df46b9c82b38
Variable objects: highlight values that have changed since last "view"
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
49
diff
changeset
|
345 |
!VDBSourceApplication methodsFor:'change & update-delayed'! |
df46b9c82b38
Variable objects: highlight values that have changed since last "view"
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
49
diff
changeset
|
346 |
|
122
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
347 |
delayedUpdateCurrentLine |
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
348 |
self updateCurrentLine |
58
df46b9c82b38
Variable objects: highlight values that have changed since last "view"
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
49
diff
changeset
|
349 |
|
122
c992f32875bf
UX: show user some usefull message when source code is not available
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
94
diff
changeset
|
350 |
"Created: / 02-10-2018 / 11:04:10 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
58
df46b9c82b38
Variable objects: highlight values that have changed since last "view"
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
49
diff
changeset
|
351 |
! ! |
df46b9c82b38
Variable objects: highlight values that have changed since last "view"
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
49
diff
changeset
|
352 |
|
df46b9c82b38
Variable objects: highlight values that have changed since last "view"
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
49
diff
changeset
|
353 |
!VDBSourceApplication methodsFor:'event handling'! |
df46b9c82b38
Variable objects: highlight values that have changed since last "view"
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
49
diff
changeset
|
354 |
|
195
810dc642ceb1
Automatically reload source when source directories change
Jan Vrany <jan.vrany@labware.com>
parents:
157
diff
changeset
|
355 |
onCmdParamChangedEvent: aGDBCmdParamChangedEvent |
810dc642ceb1
Automatically reload source when source directories change
Jan Vrany <jan.vrany@labware.com>
parents:
157
diff
changeset
|
356 |
(aGDBCmdParamChangedEvent name = 'directories') ifTrue:[ |
810dc642ceb1
Automatically reload source when source directories change
Jan Vrany <jan.vrany@labware.com>
parents:
157
diff
changeset
|
357 |
self enqueueDelayedAction: [ self updateSourceFile ] |
810dc642ceb1
Automatically reload source when source directories change
Jan Vrany <jan.vrany@labware.com>
parents:
157
diff
changeset
|
358 |
]. |
810dc642ceb1
Automatically reload source when source directories change
Jan Vrany <jan.vrany@labware.com>
parents:
157
diff
changeset
|
359 |
|
810dc642ceb1
Automatically reload source when source directories change
Jan Vrany <jan.vrany@labware.com>
parents:
157
diff
changeset
|
360 |
"Created: / 05-08-2020 / 13:38:02 / Jan Vrany <jan.vrany@labware.com>" |
810dc642ceb1
Automatically reload source when source directories change
Jan Vrany <jan.vrany@labware.com>
parents:
157
diff
changeset
|
361 |
! |
810dc642ceb1
Automatically reload source when source directories change
Jan Vrany <jan.vrany@labware.com>
parents:
157
diff
changeset
|
362 |
|
58
df46b9c82b38
Variable objects: highlight values that have changed since last "view"
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
49
diff
changeset
|
363 |
onStoppedEvent: aGDBStoppedEvent |
154
26937faa5a97
Use standard `#enqueueMessage:` mechanism to enqueue delayed updates
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
133
diff
changeset
|
364 |
self enqueueMessage: #delayedUpdateCurrentLine |
58
df46b9c82b38
Variable objects: highlight values that have changed since last "view"
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
49
diff
changeset
|
365 |
|
df46b9c82b38
Variable objects: highlight values that have changed since last "view"
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
49
diff
changeset
|
366 |
"Created: / 01-02-2018 / 15:23:46 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
154
26937faa5a97
Use standard `#enqueueMessage:` mechanism to enqueue delayed updates
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
133
diff
changeset
|
367 |
"Modified: / 18-02-2019 / 10:23:51 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
58
df46b9c82b38
Variable objects: highlight values that have changed since last "view"
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
49
diff
changeset
|
368 |
! ! |
df46b9c82b38
Variable objects: highlight values that have changed since last "view"
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
49
diff
changeset
|
369 |
|
df46b9c82b38
Variable objects: highlight values that have changed since last "view"
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
49
diff
changeset
|
370 |
!VDBSourceApplication methodsFor:'initialization & release'! |
df46b9c82b38
Variable objects: highlight values that have changed since last "view"
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
49
diff
changeset
|
371 |
|
df46b9c82b38
Variable objects: highlight values that have changed since last "view"
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
49
diff
changeset
|
372 |
subscribe |
241
9996050286c5
Always call `super subscribe` when overriding
Jan Vrany <jan.vrany@labware.com>
parents:
195
diff
changeset
|
373 |
super subscribe. |
58
df46b9c82b38
Variable objects: highlight values that have changed since last "view"
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
49
diff
changeset
|
374 |
|
df46b9c82b38
Variable objects: highlight values that have changed since last "view"
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
49
diff
changeset
|
375 |
debugger announcer |
195
810dc642ceb1
Automatically reload source when source directories change
Jan Vrany <jan.vrany@labware.com>
parents:
157
diff
changeset
|
376 |
when: GDBStoppedEvent send: #onStoppedEvent: to: self; |
810dc642ceb1
Automatically reload source when source directories change
Jan Vrany <jan.vrany@labware.com>
parents:
157
diff
changeset
|
377 |
when: GDBCmdParamChangedEvent send: #onCmdParamChangedEvent: to: self. |
68
6caeb5d7c92b
Added support for inspecting expression result in source view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
58
diff
changeset
|
378 |
|
6caeb5d7c92b
Added support for inspecting expression result in source view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
58
diff
changeset
|
379 |
sourceView notNil ifTrue:[ |
6caeb5d7c92b
Added support for inspecting expression result in source view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
58
diff
changeset
|
380 |
sourceView compilerClass setDebugger: debugger. |
6caeb5d7c92b
Added support for inspecting expression result in source view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
58
diff
changeset
|
381 |
]. |
58
df46b9c82b38
Variable objects: highlight values that have changed since last "view"
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
49
diff
changeset
|
382 |
|
df46b9c82b38
Variable objects: highlight values that have changed since last "view"
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
49
diff
changeset
|
383 |
"Created: / 01-02-2018 / 15:18:23 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
68
6caeb5d7c92b
Added support for inspecting expression result in source view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
58
diff
changeset
|
384 |
"Modified: / 21-03-2018 / 22:18:07 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
241
9996050286c5
Always call `super subscribe` when overriding
Jan Vrany <jan.vrany@labware.com>
parents:
195
diff
changeset
|
385 |
"Modified: / 17-11-2021 / 16:39:23 / Jan Vrany <jan.vrany@labware.com>" |
9996050286c5
Always call `super subscribe` when overriding
Jan Vrany <jan.vrany@labware.com>
parents:
195
diff
changeset
|
386 |
"Modified (comment): / 18-11-2021 / 16:24:50 / Jan Vrany <jan.vrany@labware.com>" |
16
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
387 |
! ! |
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
388 |
|
20 | 389 |
!VDBSourceApplication class methodsFor:'documentation'! |
16
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
390 |
|
20 | 391 |
version_HG |
16
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
392 |
|
20 | 393 |
^ '$Changeset: <not expanded> $' |
16
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
394 |
! ! |
fc1898815ab6
Temporary commit: some more work on displaying source code.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
395 |