author | Claus Gittinger <cg@exept.de> |
Tue, 11 May 2004 14:49:21 +0200 | |
changeset 1838 | 170a0f24260b |
parent 1371 | 1753f2293bce |
child 2076 | 66d858959276 |
permissions | -rw-r--r-- |
1227 | 1 |
" |
2 |
COPYRIGHT (c) 1999 by eXept Software AG |
|
1371 | 3 |
All Rights Reserved |
1227 | 4 |
|
5 |
This software is furnished under a license and may be used |
|
6 |
only in accordance with the terms of that license and with the |
|
7 |
inclusion of the above copyright notice. This software may not |
|
8 |
be provided or otherwise made available to, or used by, any |
|
9 |
other person. No title to or ownership of the software is |
|
10 |
hereby transferred. |
|
11 |
" |
|
12 |
||
13 |
||
14 |
||
15 |
||
1037 | 16 |
ToolApplicationModel subclass:#ProjectBrowser |
1251 | 17 |
instanceVariableNames:'projectTree modifiedChannel selectedTreeNodeHolder |
18 |
lastMoveToProject' |
|
1147 | 19 |
classVariableNames:'AlreadCheckedExistingModulesAndPackages' |
1025 | 20 |
poolDictionaries:'' |
21 |
category:'Interface-Smalltalk' |
|
22 |
! |
|
23 |
||
1079 | 24 |
TreeItemWithImage subclass:#ProjectTreeItem |
1109 | 25 |
instanceVariableNames:'action spec info' |
1025 | 26 |
classVariableNames:'' |
27 |
poolDictionaries:'' |
|
28 |
privateIn:ProjectBrowser |
|
29 |
! |
|
30 |
||
1026 | 31 |
ProjectBrowser::ProjectTreeItem subclass:#ProjectNode |
32 |
instanceVariableNames:'' |
|
33 |
classVariableNames:'' |
|
34 |
poolDictionaries:'' |
|
35 |
privateIn:ProjectBrowser |
|
36 |
! |
|
37 |
||
1227 | 38 |
!ProjectBrowser class methodsFor:'documentation'! |
39 |
||
40 |
copyright |
|
41 |
" |
|
42 |
COPYRIGHT (c) 1999 by eXept Software AG |
|
1371 | 43 |
All Rights Reserved |
1227 | 44 |
|
45 |
This software is furnished under a license and may be used |
|
46 |
only in accordance with the terms of that license and with the |
|
47 |
inclusion of the above copyright notice. This software may not |
|
48 |
be provided or otherwise made available to, or used by, any |
|
49 |
other person. No title to or ownership of the software is |
|
50 |
hereby transferred. |
|
51 |
" |
|
52 |
||
53 |
||
54 |
||
55 |
! |
|
56 |
||
57 |
documentation |
|
58 |
" |
|
59 |
The new project browser & builder. |
|
60 |
This one will (eventually) make packaging of classLibraries and |
|
61 |
applications easier. |
|
62 |
||
63 |
EXPERIMENTAL: not finished. |
|
64 |
||
65 |
[start with:] |
|
1371 | 66 |
ProjectBrowser open |
1227 | 67 |
|
68 |
[see also:] |
|
1371 | 69 |
Project |
1227 | 70 |
|
71 |
[author:] |
|
1371 | 72 |
Claus Gittinger, eXept Software AG |
1227 | 73 |
" |
74 |
||
75 |
||
76 |
! ! |
|
1025 | 77 |
|
1236 | 78 |
!ProjectBrowser class methodsFor:'class initialization'! |
79 |
||
80 |
initialize |
|
81 |
"add myself to the launchers tool menu" |
|
82 |
||
83 |
NewLauncher allInstancesDo:[:l | |
|
1371 | 84 |
l addUserTool:'Project Builder' |
85 |
action:[ProjectBrowser open] |
|
86 |
in:#menu |
|
87 |
after:'Changes Browser' |
|
88 |
icon:self projectBrowserIcon |
|
89 |
space:false |
|
1236 | 90 |
]. |
91 |
||
92 |
" |
|
93 |
self initialize |
|
94 |
" |
|
1237 | 95 |
" |
96 |
NewLauncher allInstancesDo:[:l | |
|
1371 | 97 |
l removeUserTool:'Project Builder' |
1237 | 98 |
] |
99 |
" |
|
1236 | 100 |
! ! |
101 |
||
1147 | 102 |
!ProjectBrowser class methodsFor:'help specs'! |
103 |
||
104 |
helpSpec |
|
105 |
"This resource specification was automatically generated |
|
106 |
by the UIHelpTool of ST/X." |
|
107 |
||
108 |
"Do not manually edit this!! If it is corrupted, |
|
109 |
the UIHelpTool may not be able to read the specification." |
|
110 |
||
111 |
" |
|
112 |
UIHelpTool openOnClass:ProjectBrowser |
|
113 |
" |
|
114 |
||
115 |
<resource: #help> |
|
116 |
||
117 |
^super helpSpec addPairsFrom:#( |
|
118 |
||
119 |
#accept |
|
120 |
'Accept modifications made here.' |
|
121 |
||
122 |
#appType |
|
123 |
'An application - ie an executable program (and support files if any).' |
|
124 |
||
125 |
#cancel |
|
126 |
'Undo modifications made here.' |
|
127 |
||
128 |
#defaultNamespace |
|
129 |
'Namespace for new classes when created in the Browser.' |
|
130 |
||
1231 | 131 |
#deliverGZipArchive |
1147 | 132 |
'Package delivery into a gzip archive (for unix)' |
133 |
||
1231 | 134 |
#deliverTarArchive |
1147 | 135 |
'Package delivery into a tar archive (for unix)' |
136 |
||
1231 | 137 |
#deliverZipArchive |
1147 | 138 |
'Package delivery into a zip archive (for win32)' |
139 |
||
1231 | 140 |
#deliverCompiledBinary |
1229 | 141 |
'Create and deliver as compiled binary (classLibrary) - will only execute on the running systems architecture.' |
142 |
||
143 |
#deliverByteCode |
|
144 |
'Create and deliver as bytecode - portable across architectures.' |
|
1147 | 145 |
|
146 |
#deliverLoadAll |
|
147 |
'Deliver a loadAll script file, which files-In the other files.' |
|
148 |
||
1231 | 149 |
#deliverSources |
1147 | 150 |
'Include smalltalk sourceCode in the delivery.' |
151 |
||
1231 | 152 |
#deliverMakefiles |
153 |
'Include makefiles in the delivery.' |
|
154 |
||
1147 | 155 |
#includeSource |
156 |
'Include smalltalk sourceCode in the delivery.' |
|
157 |
||
158 |
#installDirMacOS |
|
159 |
'The final install directory for MacOS deliveries.' |
|
160 |
||
161 |
#installDirUnix |
|
162 |
'The final install directory for UNIX deliveries.' |
|
163 |
||
164 |
#installDirVMS |
|
165 |
'The final install directory for VMS deliveries.' |
|
166 |
||
167 |
#installDirWin32 |
|
168 |
'The final install directory for Win32 deliveries.' |
|
169 |
||
170 |
#libType |
|
171 |
'A classLibrary addOn (and support files if any)' |
|
172 |
||
1303 | 173 |
loadProjectCode |
174 |
'Load projects classes from the project directory' |
|
175 |
||
1223 | 176 |
#methodsFile |
177 |
'Patches & Extensions are stored in this file.' |
|
178 |
||
1147 | 179 |
#packageID |
180 |
'Package ID used to associate classes & methods to this project.' |
|
181 |
||
182 |
#projectDir |
|
183 |
'The projects directory.' |
|
184 |
||
185 |
#repositoryDirectory |
|
186 |
'The directory path below the module in the source-repository.' |
|
187 |
||
188 |
#repositoryModule |
|
189 |
'The module (top directory) in the source-repository.' |
|
190 |
||
1303 | 191 |
#saveProjectFile |
192 |
'Write a new .prj file.' |
|
193 |
||
1147 | 194 |
) |
195 |
! ! |
|
196 |
||
1079 | 197 |
!ProjectBrowser class methodsFor:'image specs'! |
198 |
||
1239 | 199 |
bigProjectBrowserIcon |
200 |
"This resource specification was automatically generated |
|
201 |
by the ImageEditor of ST/X." |
|
202 |
||
203 |
"Do not manually edit this!! If it is corrupted, |
|
204 |
the ImageEditor may not be able to read the specification." |
|
205 |
||
206 |
" |
|
207 |
self bigProjectBrowserIcon inspect |
|
208 |
ImageEditor openOnClass:self andSelector:#bigProjectBrowserIcon |
|
209 |
" |
|
210 |
||
211 |
<resource: #image> |
|
212 |
||
213 |
^Icon |
|
1371 | 214 |
constantNamed:#'ProjectBrowser bigProjectBrowserIcon' |
215 |
ifAbsentPut:[(Depth2Image new) width: 48; height: 48; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
1287 | 216 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@U@@EUP@@@@@@@@@@U@@EUP@@@@@@@@@UUP |
217 |
@UUU@@@@@@@@EUEPEP@U@@@@@@@@EUEPEP@U@@@@@@@@U@EPEP@U@@@@@@@@U@EPEP@U@@@@@@@@U@EPEP@U@@@@@@@@U@EPEPUU@@@@@@@@EU%Z%UU*(@@@ |
|
218 |
@@@@EU%Z%UU*"@@@@@@@EUUZUUZ*J@@@@@@@EUUUUUUU*@@@@@@@EUUUUUUU*@@@@@@@J**UU**E*@@@@@@@**%UZ*(%*@@@@@@B**%UZ*"%*@@@@@@@@@UU |
|
219 |
@@J%*@@@@@@J**UZ**J%*@@@@@@J**UZ**J%*@@@@@@J**UZ**J%*@@@@@@J**UZ**J%*@@@@@@J**UZ**J%*@@@@@@J**UZ**J%*@@@@@@J**UZ**J%*@@@ |
|
220 |
@@@J**UZ**J%*@@@@@@J**UZ**J%*@@@@@@J**UZ**J%(@@@@@@J**UZ**J% @@@@@@J**UZ**J%@@@@@@@J**UZ**J%@@@@@@@J**UZ**J%@@@@@@@J**UZ |
|
221 |
**J@@@@@@@@J**UZ**H@@@@@@@@J**UZ**@@@@@@@@@@@@UP@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
|
222 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@') ; colorMapFromArray:#[0 0 0 132 0 132 255 255 0]; mask:((Depth1Image new) width: 48; height: 48; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
223 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@8C<@@@@@8C<@@@@G<G?@@@@_\\G@@@@_\\G@@@@8\\G@@@@8\\G@@@@8\\G@@@@8???<@@@_???<@ |
|
224 |
@@_???<@@@_???<@@@_???<@@@_???<@@@????<@@A????<@@C????<@@G????<@@G????<@@G????<@@G????<@@G????<@@G????<@@G????<@@G????<@ |
|
225 |
@G????<@@G????<@@G????8@@G????0@@G???? @@G????@@@G????@@@G???<@@@G???8@@@G???0@@@G??? @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
|
226 |
@@@@@@@@@@@@@@@@@@@@@@@@') ; yourself); yourself]! |
|
227 |
||
228 |
bigProjectBrowserIcon2 |
|
229 |
"This resource specification was automatically generated |
|
230 |
by the ImageEditor of ST/X." |
|
231 |
||
232 |
"Do not manually edit this!! If it is corrupted, |
|
233 |
the ImageEditor may not be able to read the specification." |
|
234 |
||
235 |
" |
|
236 |
self bigProjectBrowserIcon2 inspect |
|
237 |
ImageEditor openOnClass:self andSelector:#bigProjectBrowserIcon2 |
|
238 |
" |
|
239 |
||
240 |
<resource: #image> |
|
241 |
||
242 |
^Icon |
|
1371 | 243 |
constantNamed:#'ProjectBrowser bigProjectBrowserIcon2' |
244 |
ifAbsentPut:[(Depth2Image new) width: 48; height: 48; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
1287 | 245 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@U@@EUP@@@@@@@@@@U@@EUP@@@@@@@@@UUP |
246 |
@UUU@@@@@@@@EUEPEP@U@@@@@@@@EUEPEP@U@@@@@@@@U@EPEP@U@@@@@@@@U@EPEP@U@@@@@@@@U@EPEP@U@@@@@@@@U@EPEPUU@@@@@@@@EU%Z%UU*(@@@ |
|
247 |
@@@@EU%Z%UU*"@@@@@@@EUUZUUZ*J@@@@@@@EUUUUUUU*@@@@@@@EUUUUUUU*@@@@@@@J**UU**E*@@@@@@@**%UZ*(%*@@@@@@B**%UZ*"%*@@@@@@@@@UU |
|
248 |
@@J%*@@@@@@J**UZ**J%*@@@@@@J**UZ**J%*@@@@@@J**UZ**J%*@@@@@@J**UZ**J%*@@@@@@J**UZ**J%*@@@@@@J**UZ**J%*@@@@@@J**UZ**J%*@@@ |
|
249 |
@@@J**UZ**J%*@@@@@@J**UZ**J%*@@@@@@J**UZ**J%(@@@@@@J**UZ**J% @@@@@@J**UZ**J%@@@@@@@J**UZ**J%@@@@@@@J**UZ**J%@@@@@@@J**UZ |
|
250 |
**J@@@@@@@@J**UZ**H@@@@@@@@J**UZ**@@@@@@@@@@@@UP@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
|
251 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@') ; colorMapFromArray:#[0 0 0 132 0 132 255 255 0]; mask:((Depth1Image new) width: 48; height: 48; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
252 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@8C<@@@@@8C<@@@@G<G?@@@@_\\G@@@@_\\G@@@@8\\G@@@@8\\G@@@@8\\G@@@@8???<@@@_???<@ |
|
253 |
@@_???<@@@_???<@@@_???<@@@_???<@@@????<@@A????<@@C????<@@G????<@@G????<@@G????<@@G????<@@G????<@@G????<@@G????<@@G????<@ |
|
254 |
@G????<@@G????<@@G????8@@G????0@@G???? @@G????@@@G????@@@G???<@@@G???8@@@G???0@@@G??? @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
|
255 |
@@@@@@@@@@@@@@@@@@@@@@@@') ; yourself); yourself]! |
|
1239 | 256 |
|
1234 | 257 |
buildOptionsIcon |
258 |
"This resource specification was automatically generated |
|
259 |
by the ImageEditor of ST/X." |
|
260 |
||
261 |
"Do not manually edit this!! If it is corrupted, |
|
262 |
the ImageEditor may not be able to read the specification." |
|
263 |
||
264 |
" |
|
1287 | 265 |
self buildOptionsIcon inspect |
266 |
ImageEditor openOnClass:self andSelector:#buildOptionsIcon |
|
1234 | 267 |
" |
268 |
||
269 |
<resource: #image> |
|
270 |
||
271 |
^Icon |
|
1371 | 272 |
constantNamed:#'ProjectBrowser buildOptionsIcon' |
273 |
ifAbsentPut:[(Depth2Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@ATET@AUEE@APQAP@TDQT@AY%Z@@UUUX@J%*F@@E@I B)Z"X@*V(&@J%*I B)Z"X@*V($@J%*I@B)Z @@@T@@@@a') ; colorMapFromArray:#[0 0 0 132 0 132 255 255 0]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'A30O[A%LF?<O?0??G?<??3??O?<??3??O?8??C?8O?@b') ; yourself); yourself]! |
|
1234 | 274 |
|
1097 | 275 |
classIcon |
276 |
"This resource specification was automatically generated |
|
277 |
by the ImageEditor of ST/X." |
|
278 |
||
279 |
"Do not manually edit this!! If it is corrupted, |
|
280 |
the ImageEditor may not be able to read the specification." |
|
281 |
||
282 |
" |
|
283 |
self classIcon inspect |
|
284 |
ImageEditor openOnClass:self andSelector:#classIcon |
|
285 |
" |
|
286 |
||
287 |
<resource: #image> |
|
288 |
||
289 |
^Icon |
|
1371 | 290 |
constantNamed:#'ProjectBrowser classIcon' |
291 |
ifAbsentPut:[(Depth2Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'UUUUUEUUUUQP@@@TTV*%EE@@@AQQUUTTTZ*)@@@@@@@AUUT@@Z*)@@EUUQQQ**$TTUUUEE@@@@AQUUUUTUUUUP@a') ; colorMapFromArray:#[0 0 0 255 255 255 132 130 132]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@C?8O? ?>C?8O? ?>C?8O? ?>C?8O? ?>@@@@@@b') ; yourself); yourself]! |
|
1097 | 292 |
|
1079 | 293 |
classesIcon |
294 |
"This resource specification was automatically generated |
|
295 |
by the ImageEditor of ST/X." |
|
296 |
||
297 |
"Do not manually edit this!! If it is corrupted, |
|
298 |
the ImageEditor may not be able to read the specification." |
|
299 |
||
300 |
" |
|
301 |
self classesIcon inspect |
|
302 |
ImageEditor openOnClass:self andSelector:#classesIcon |
|
303 |
" |
|
304 |
||
305 |
<resource: #image> |
|
306 |
||
307 |
^Icon |
|
1371 | 308 |
constantNamed:#'ProjectBrowser classesIcon' |
309 |
ifAbsentPut:[(Depth2Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@B"B%U(( @@@@HJ**"BBUUX @***H @@@BHB**("@)UZH J**"HB**("@@@@H (***HJ@@@BB*J** * @@@@@a') ; colorMapFromArray:#[0 0 0 132 130 132 255 255 255]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'?>C?8O?8??#??/?>??;??/?>??;??/?>O?8?? ?>C?8b') ; yourself); yourself]! |
|
1079 | 310 |
|
311 |
commentIcon |
|
312 |
"This resource specification was automatically generated |
|
313 |
by the ImageEditor of ST/X." |
|
314 |
||
315 |
"Do not manually edit this!! If it is corrupted, |
|
316 |
the ImageEditor may not be able to read the specification." |
|
317 |
||
318 |
" |
|
319 |
self commentIcon inspect |
|
320 |
ImageEditor openOnClass:self andSelector:#commentIcon |
|
321 |
" |
|
322 |
||
323 |
<resource: #image> |
|
324 |
||
325 |
^Icon |
|
1371 | 326 |
constantNamed:#'ProjectBrowser commentIcon' |
327 |
ifAbsentPut:[(Depth2Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'******************U****%Z***)V*********%Z***!!T***(UJ***ER***!!T***(UJ**(UT***(B****(** @a') ; colorMapFromArray:#[0 0 0 0 0 255 255 255 255]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
1287 | 328 |
@@@@@@@@@8@C @N@@@@C @N@@8@C @N@@8@G0@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
329 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
|
330 |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a') ; yourself); yourself]! |
|
1079 | 331 |
|
332 |
deploymentIcon |
|
333 |
"This resource specification was automatically generated |
|
334 |
by the ImageEditor of ST/X." |
|
335 |
||
336 |
"Do not manually edit this!! If it is corrupted, |
|
337 |
the ImageEditor may not be able to read the specification." |
|
338 |
||
339 |
" |
|
340 |
self deploymentIcon inspect |
|
341 |
ImageEditor openOnClass:self andSelector:#deploymentIcon |
|
342 |
" |
|
343 |
||
344 |
<resource: #image> |
|
345 |
||
346 |
^Icon |
|
1371 | 347 |
constantNamed:#'ProjectBrowser deploymentIcon' |
348 |
ifAbsentPut:[(Depth2Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@ATET@AUEE@APQAP@TDQT@AY%Z@@UUUX@J%*F@@E@I B)Z"X@*V(&@J%*I B)Z"X@*V($@J%*I@B)Z @@@T@@@@a') ; colorMapFromArray:#[0 0 0 132 0 132 255 255 0]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'A30O[A%LF?<O?0??G?<??3??O?<??3??O?8??C?8O?@b') ; yourself); yourself]! |
|
1079 | 349 |
|
350 |
filesIcon |
|
351 |
"This resource specification was automatically generated |
|
352 |
by the ImageEditor of ST/X." |
|
353 |
||
354 |
"Do not manually edit this!! If it is corrupted, |
|
355 |
the ImageEditor may not be able to read the specification." |
|
356 |
||
357 |
" |
|
358 |
self filesIcon inspect |
|
359 |
ImageEditor openOnClass:self andSelector:#filesIcon |
|
360 |
" |
|
361 |
||
362 |
<resource: #image> |
|
363 |
||
364 |
^Icon |
|
1371 | 365 |
constantNamed:#'ProjectBrowser filesIcon' |
366 |
ifAbsentPut:[(Depth1Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@G:@P@A_(E@@U>!!W;E_ U?9W?!!_>E?8G? _>@@@b') ; colorMapFromArray:#[0 0 0 255 255 255]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@C? O?@?>C?<O?8??3??/??????????O?<??0??C?<b') ; yourself); yourself]! |
|
1079 | 367 |
|
1218 | 368 |
methodIcon |
369 |
"This resource specification was automatically generated |
|
370 |
by the ImageEditor of ST/X." |
|
371 |
||
372 |
"Do not manually edit this!! If it is corrupted, |
|
373 |
the ImageEditor may not be able to read the specification." |
|
374 |
||
375 |
" |
|
376 |
self methodIcon inspect |
|
377 |
ImageEditor openOnClass:self andSelector:#methodIcon |
|
378 |
" |
|
379 |
||
380 |
<resource: #image> |
|
381 |
||
382 |
^Icon |
|
1371 | 383 |
constantNamed:#'ProjectBrowser methodIcon' |
384 |
ifAbsentPut:[(Depth4Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@DH@@@@@@@@4QA@@@@@@@TQDPP@@@@@@MDQDH@@@@@@PQDQA@@@@@@LTQA@@@@@@@@I@L@@@@@@@@QD@@@@@@@@@H@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 0 0 132 132 0 0 132 0 132 255 0 255]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@B@@\@C8@_0A? C?@G<@O @\@@ @@@@@@@@@b') ; yourself); yourself]! |
|
1218 | 385 |
|
1079 | 386 |
methodsIcon |
387 |
"This resource specification was automatically generated |
|
388 |
by the ImageEditor of ST/X." |
|
389 |
||
390 |
"Do not manually edit this!! If it is corrupted, |
|
391 |
the ImageEditor may not be able to read the specification." |
|
392 |
||
393 |
" |
|
394 |
self multipleUnlockedMagentaIcon inspect |
|
395 |
ImageEditor openOnClass:self andSelector:#multipleUnlockedMagentaIcon |
|
396 |
" |
|
397 |
||
398 |
<resource: #image> |
|
399 |
||
400 |
^Icon |
|
1371 | 401 |
constantNamed:#'ProjectBrowser methodsIcon' |
402 |
ifAbsentPut:[(Depth4Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@DH@@@@@@@@4QA@@@@@@@TQDPP@@@@@@MDQDH@@@@@@PQDQA@@@@@@LTQA@@@@@@M@I@L@@@@@EDPQD@@@@@@CQDIB@@@@@@DDQDPP@@@@@CEDPP@@@@@@@BPC@@@@@@@@DQ@@@@@@@@@B@@@@@@@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 0 0 132 132 0 0 132 0 132 255 0 255]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'B@@\@C8@_0A? C?@G<@? G<@_8@?0A?@C8@G@@H@@@@b') ; yourself); yourself] |
|
1079 | 403 |
|
404 |
||
1080 | 405 |
! |
406 |
||
1109 | 407 |
prerequisiteClassesIcon |
408 |
<resource: #programImage> |
|
409 |
||
410 |
^ self classesIcon |
|
411 |
! |
|
412 |
||
1291 | 413 |
prerequisitePackagesIcon |
1109 | 414 |
<resource: #programImage> |
415 |
||
416 |
^ self projectsIcon |
|
417 |
! |
|
418 |
||
1080 | 419 |
prerequisitesIcon |
420 |
"This resource specification was automatically generated |
|
421 |
by the ImageEditor of ST/X." |
|
422 |
||
423 |
"Do not manually edit this!! If it is corrupted, |
|
424 |
the ImageEditor may not be able to read the specification." |
|
425 |
||
426 |
" |
|
427 |
self prerequisitesIcon inspect |
|
428 |
ImageEditor openOnClass:self andSelector:#prerequisitesIcon |
|
429 |
" |
|
430 |
||
431 |
<resource: #image> |
|
432 |
||
433 |
^Icon |
|
1371 | 434 |
constantNamed:#'ProjectBrowser prerequisitesIcon' |
435 |
ifAbsentPut:[(Depth1Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@C@@L@@@@@@@@@@0A#@F@@X@@@@@L@@0@@@@@@@b') ; colorMapFromArray:#[0 0 0 127 127 127]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@A8@G(@^PA80@C@^@=8S7//^D<@C7#@^LA9@G(@@@@b') ; yourself); yourself]! |
|
1109 | 436 |
|
1236 | 437 |
projectBrowserIcon |
438 |
"This resource specification was automatically generated |
|
439 |
by the ImageEditor of ST/X." |
|
440 |
||
441 |
"Do not manually edit this!! If it is corrupted, |
|
442 |
the ImageEditor may not be able to read the specification." |
|
443 |
||
444 |
" |
|
445 |
self projectBrowserIcon inspect |
|
446 |
ImageEditor openOnClass:self andSelector:#projectBrowserIcon |
|
447 |
" |
|
448 |
||
449 |
<resource: #image> |
|
450 |
||
451 |
^Icon |
|
1371 | 452 |
constantNamed:#'ProjectBrowser projectBrowserIcon' |
453 |
ifAbsentPut:[(Depth2Image new) width: 32; height: 32; photometric:(#palette); bitsPerSample:(#(2 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
1287 | 454 |
@@@T@ET@@@@@@UTAUT@@@@@EQPTAP@@@@APEAPE@@@@@E@TE@T@@@@@TAPTUP@@@@@U%)UZ @@@@AUVUV( @@@@EUUUUZ@@@@@*)U*!!(@@@@B*UZ(& @@@@@ |
455 |
ET@JZ@@@@J*U*()(@@@@*)V*"& @@@B*%Z*JZ@@@@J*U*()(@@@@*)V*"& @@@B*%Z*JZ@@@@J*U*() @@@@*)V*"$@@@@B*%Z*JP@@@@J*U*( @@@@@*)V* |
|
456 |
@@@@@@@EP@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a') ; colorMapFromArray:#[0 0 0 132 0 132 255 255 0]; mask:((Depth1Image new) width: 32; height: 32; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:' |
|
457 |
@FC0@@G1>@@C,1 @A#LX@@X3F@@F_?<@@???@@O??0@C??<@A???@@_??0@_??<@G???@A???0@_??<@G???@A???0@_??<@G??>@A???@@_?? @G??0@A?? |
|
458 |
8@@_?<@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@b') ; yourself); yourself]! |
|
1236 | 459 |
|
1109 | 460 |
projectsIcon |
461 |
"This resource specification was automatically generated |
|
462 |
by the ImageEditor of ST/X." |
|
463 |
||
464 |
"Do not manually edit this!! If it is corrupted, |
|
465 |
the ImageEditor may not be able to read the specification." |
|
466 |
||
467 |
" |
|
468 |
self projectsIcon inspect |
|
469 |
ImageEditor openOnClass:self andSelector:#projectsIcon |
|
470 |
" |
|
471 |
||
472 |
<resource: #image> |
|
473 |
||
474 |
^Icon |
|
1371 | 475 |
constantNamed:#'ProjectBrowser projectsIcon' |
476 |
ifAbsentPut:[(Depth1Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@_8C?P_;@@\O=0?7C?\O=0?6C?PO<@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 128 128]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@G? ?>G?8??''?>_?9??''?>_?9??G?8_?A?8@@@@@@b') ; yourself); yourself]! ! |
|
1079 | 477 |
|
1025 | 478 |
!ProjectBrowser class methodsFor:'interface specs'! |
479 |
||
1240 | 480 |
classValidationDialogSpec |
481 |
"This resource specification was automatically generated |
|
482 |
by the UIPainter of ST/X." |
|
483 |
||
484 |
"Do not manually edit this!! If it is corrupted, |
|
485 |
the UIPainter may not be able to read the specification." |
|
486 |
||
487 |
" |
|
488 |
UIPainter new openOnClass:ProjectBrowser andSelector:#classValidationDialogSpec |
|
489 |
ProjectBrowser new openInterface:#classValidationDialogSpec |
|
490 |
" |
|
491 |
||
492 |
<resource: #canvas> |
|
493 |
||
494 |
^ |
|
495 |
#(#FullSpec |
|
1371 | 496 |
#name: #classValidationDialogSpec |
497 |
#window: |
|
1240 | 498 |
#(#WindowSpec |
1371 | 499 |
#label: 'ProjectBrowser' |
500 |
#name: 'ProjectBrowser' |
|
501 |
#min: #(#Point 10 10) |
|
502 |
#max: #(#Point 1024 768) |
|
503 |
#bounds: #(#Rectangle 24 554 457 1003) |
|
504 |
#menu: #mainMenu |
|
505 |
#icon: #bigProjectBrowserIcon |
|
506 |
) |
|
507 |
#component: |
|
1240 | 508 |
#(#SpecCollection |
1371 | 509 |
#collection: #( |
510 |
#(#VariableVerticalPanelSpec |
|
511 |
#name: 'VariableVerticalPanel1' |
|
512 |
#layout: #(#LayoutFrame 0 0.0 0 0.0 0 1.0 -30 1.0) |
|
513 |
#handles: |
|
514 |
#(#OrderedCollection |
|
515 |
#Any 0.5 |
|
516 |
1.0 |
|
517 |
) |
|
518 |
#component: |
|
519 |
#(#SpecCollection |
|
520 |
#collection: #( |
|
521 |
#(#ViewSpec |
|
522 |
#name: 'Box1' |
|
523 |
#component: |
|
524 |
#(#SpecCollection |
|
525 |
#collection: #( |
|
526 |
#(#LabelSpec |
|
527 |
#label: 'Classes only in Image' |
|
528 |
#name: 'Label1' |
|
529 |
#layout: #(#LayoutFrame 0 0 0 0 0 1 30 0) |
|
530 |
#translateLabel: true |
|
531 |
#adjust: #left |
|
532 |
) |
|
533 |
#(#SequenceViewSpec |
|
534 |
#name: 'List2' |
|
535 |
#layout: #(#LayoutFrame 0 0.0 30 0.0 0 1.0 0 1.0) |
|
536 |
#hasHorizontalScrollBar: true |
|
537 |
#hasVerticalScrollBar: true |
|
538 |
#useIndex: false |
|
539 |
#sequenceList: #classesInImageOnly |
|
540 |
) |
|
541 |
) |
|
1240 | 542 |
|
1371 | 543 |
) |
544 |
) |
|
545 |
#(#ViewSpec |
|
546 |
#name: 'Box2' |
|
547 |
#component: |
|
548 |
#(#SpecCollection |
|
549 |
#collection: #( |
|
550 |
#(#LabelSpec |
|
551 |
#label: 'Classes only in Project' |
|
552 |
#name: 'Label2' |
|
553 |
#layout: #(#LayoutFrame 0 0 0 0 0 1 30 0) |
|
554 |
#translateLabel: true |
|
555 |
#adjust: #left |
|
556 |
) |
|
557 |
#(#SequenceViewSpec |
|
558 |
#name: 'List1' |
|
559 |
#layout: #(#LayoutFrame 0 0.0 30 0.0 0 1.0 0 1.0) |
|
560 |
#hasHorizontalScrollBar: true |
|
561 |
#hasVerticalScrollBar: true |
|
562 |
#useIndex: false |
|
563 |
#sequenceList: #classesInProjectOnly |
|
564 |
) |
|
565 |
) |
|
1240 | 566 |
|
1371 | 567 |
) |
568 |
) |
|
569 |
) |
|
1240 | 570 |
|
1371 | 571 |
) |
572 |
) |
|
573 |
#(#HorizontalPanelViewSpec |
|
574 |
#name: 'HorizontalPanel1' |
|
575 |
#layout: #(#LayoutFrame 0 0 -30 1 0 1 0 1) |
|
576 |
#horizontalLayout: #center |
|
577 |
#verticalLayout: #center |
|
578 |
#horizontalSpace: 3 |
|
579 |
#verticalSpace: 3 |
|
580 |
#component: |
|
581 |
#(#SpecCollection |
|
582 |
#collection: #( |
|
583 |
#(#ActionButtonSpec |
|
584 |
#label: 'OK' |
|
585 |
#name: 'Button1' |
|
586 |
#translateLabel: true |
|
587 |
#model: #closeRequest |
|
588 |
#extent: #(#Point 125 22) |
|
589 |
) |
|
590 |
) |
|
1240 | 591 |
|
1371 | 592 |
) |
593 |
) |
|
594 |
) |
|
1240 | 595 |
|
1371 | 596 |
) |
1240 | 597 |
) |
598 |
! |
|
599 |
||
1025 | 600 |
emptyRightCanvasSpec |
601 |
"This resource specification was automatically generated |
|
602 |
by the UIPainter of ST/X." |
|
603 |
||
604 |
"Do not manually edit this!! If it is corrupted, |
|
605 |
the UIPainter may not be able to read the specification." |
|
606 |
||
607 |
" |
|
608 |
UIPainter new openOnClass:ProjectBrowser andSelector:#emptyRightCanvasSpec |
|
609 |
ProjectBrowser new openInterface:#emptyRightCanvasSpec |
|
610 |
" |
|
611 |
||
612 |
<resource: #canvas> |
|
613 |
||
1232 | 614 |
^ |
615 |
#(#FullSpec |
|
1371 | 616 |
#name: #emptyRightCanvasSpec |
617 |
#window: |
|
1232 | 618 |
#(#WindowSpec |
1371 | 619 |
#label: 'NewApplication' |
620 |
#name: 'NewApplication' |
|
621 |
#min: #(#Point 10 10) |
|
622 |
#max: #(#Point 1280 1024) |
|
623 |
#bounds: #(#Rectangle 10 20 310 320) |
|
624 |
) |
|
625 |
#component: |
|
1232 | 626 |
#(#SpecCollection |
1371 | 627 |
#collection: #( |
628 |
#(#TextEditorSpec |
|
629 |
#name: 'TextEditor1' |
|
630 |
#layout: #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0) |
|
631 |
#initiallyInvisible: true |
|
632 |
#model: #rightCanvasTextHolder |
|
633 |
#hasHorizontalScrollBar: true |
|
634 |
#hasVerticalScrollBar: true |
|
635 |
#miniScrollerHorizontal: true |
|
636 |
#isReadOnly: true |
|
637 |
) |
|
638 |
) |
|
1232 | 639 |
|
1371 | 640 |
) |
1025 | 641 |
) |
642 |
! |
|
643 |
||
1255 | 644 |
methodValidationDialogSpec |
645 |
"This resource specification was automatically generated |
|
646 |
by the UIPainter of ST/X." |
|
647 |
||
648 |
"Do not manually edit this!! If it is corrupted, |
|
649 |
the UIPainter may not be able to read the specification." |
|
650 |
||
651 |
" |
|
652 |
UIPainter new openOnClass:ProjectBrowser andSelector:#classValidationDialogSpec |
|
653 |
ProjectBrowser new openInterface:#classValidationDialogSpec |
|
654 |
" |
|
655 |
||
656 |
<resource: #canvas> |
|
657 |
||
658 |
^ |
|
659 |
#(#FullSpec |
|
1371 | 660 |
#name: #classValidationDialogSpec |
661 |
#window: |
|
1255 | 662 |
#(#WindowSpec |
1371 | 663 |
#label: 'ProjectBrowser' |
664 |
#name: 'ProjectBrowser' |
|
665 |
#min: #(#Point 10 10) |
|
666 |
#max: #(#Point 1024 768) |
|
667 |
#bounds: #(#Rectangle 24 554 457 1003) |
|
668 |
#menu: #mainMenu |
|
669 |
#icon: #bigProjectBrowserIcon |
|
670 |
) |
|
671 |
#component: |
|
1255 | 672 |
#(#SpecCollection |
1371 | 673 |
#collection: #( |
674 |
#(#VariableVerticalPanelSpec |
|
675 |
#name: 'VariableVerticalPanel1' |
|
676 |
#layout: #(#LayoutFrame 0 0.0 0 0.0 0 1.0 -30 1.0) |
|
677 |
#handles: |
|
678 |
#(#OrderedCollection |
|
679 |
#Any 0.5 |
|
680 |
1.0 |
|
681 |
) |
|
682 |
#component: |
|
683 |
#(#SpecCollection |
|
684 |
#collection: #( |
|
685 |
#(#ViewSpec |
|
686 |
#name: 'Box1' |
|
687 |
#component: |
|
688 |
#(#SpecCollection |
|
689 |
#collection: #( |
|
690 |
#(#LabelSpec |
|
691 |
#label: 'Methods only in Image' |
|
692 |
#name: 'Label1' |
|
693 |
#layout: #(#LayoutFrame 0 0 0 0 0 1 30 0) |
|
694 |
#translateLabel: true |
|
695 |
#adjust: #left |
|
696 |
) |
|
697 |
#(#SequenceViewSpec |
|
698 |
#name: 'List2' |
|
699 |
#layout: #(#LayoutFrame 0 0.0 30 0.0 0 1.0 0 1.0) |
|
700 |
#hasHorizontalScrollBar: true |
|
701 |
#hasVerticalScrollBar: true |
|
702 |
#useIndex: false |
|
703 |
#sequenceList: #methodsInImageOnly |
|
704 |
) |
|
705 |
) |
|
1255 | 706 |
|
1371 | 707 |
) |
708 |
) |
|
709 |
#(#ViewSpec |
|
710 |
#name: 'Box2' |
|
711 |
#component: |
|
712 |
#(#SpecCollection |
|
713 |
#collection: #( |
|
714 |
#(#LabelSpec |
|
715 |
#label: 'Methods only in Project' |
|
716 |
#name: 'Label2' |
|
717 |
#layout: #(#LayoutFrame 0 0 0 0 0 1 30 0) |
|
718 |
#translateLabel: true |
|
719 |
#adjust: #left |
|
720 |
) |
|
721 |
#(#SequenceViewSpec |
|
722 |
#name: 'List1' |
|
723 |
#layout: #(#LayoutFrame 0 0.0 30 0.0 0 1.0 0 1.0) |
|
724 |
#hasHorizontalScrollBar: true |
|
725 |
#hasVerticalScrollBar: true |
|
726 |
#useIndex: false |
|
727 |
#sequenceList: #methodsInProjectOnly |
|
728 |
) |
|
729 |
) |
|
1255 | 730 |
|
1371 | 731 |
) |
732 |
) |
|
733 |
) |
|
1255 | 734 |
|
1371 | 735 |
) |
736 |
) |
|
737 |
#(#HorizontalPanelViewSpec |
|
738 |
#name: 'HorizontalPanel1' |
|
739 |
#layout: #(#LayoutFrame 0 0 -30 1 0 1 0 1) |
|
740 |
#horizontalLayout: #center |
|
741 |
#verticalLayout: #center |
|
742 |
#horizontalSpace: 3 |
|
743 |
#verticalSpace: 3 |
|
744 |
#component: |
|
745 |
#(#SpecCollection |
|
746 |
#collection: #( |
|
747 |
#(#ActionButtonSpec |
|
748 |
#label: 'OK' |
|
749 |
#name: 'Button1' |
|
750 |
#translateLabel: true |
|
751 |
#model: #closeRequest |
|
752 |
#extent: #(#Point 125 22) |
|
753 |
) |
|
754 |
) |
|
1255 | 755 |
|
1371 | 756 |
) |
757 |
) |
|
758 |
) |
|
1255 | 759 |
|
1371 | 760 |
) |
1255 | 761 |
) |
762 |
! |
|
763 |
||
1234 | 764 |
rightCanvasSpecForBuildOptions |
765 |
"This resource specification was automatically generated |
|
766 |
by the UIPainter of ST/X." |
|
767 |
||
768 |
"Do not manually edit this!! If it is corrupted, |
|
769 |
the UIPainter may not be able to read the specification." |
|
770 |
||
771 |
" |
|
772 |
UIPainter new openOnClass:ProjectBrowser andSelector:#rightCanvasSpecForBuildOptions |
|
773 |
ProjectBrowser new openInterface:#rightCanvasSpecForBuildOptions |
|
774 |
" |
|
775 |
||
776 |
<resource: #canvas> |
|
777 |
||
778 |
^ |
|
779 |
#(#FullSpec |
|
1371 | 780 |
#name: #rightCanvasSpecForBuildOptions |
781 |
#window: |
|
1234 | 782 |
#(#WindowSpec |
1371 | 783 |
#label: 'NewApplication' |
784 |
#name: 'NewApplication' |
|
785 |
#min: #(#Point 10 10) |
|
786 |
#max: #(#Point 1280 1024) |
|
787 |
#bounds: #(#Rectangle 216 173 577 536) |
|
788 |
) |
|
789 |
#component: |
|
1234 | 790 |
#(#SpecCollection |
1371 | 791 |
#collection: #( |
792 |
#(#FramedBoxSpec |
|
793 |
#label: 'STC Compiler Warnings' |
|
794 |
#name: 'FramedBox2' |
|
795 |
#layout: #(#LayoutFrame 0 0.0 0 0.0 0 1.0 146 0) |
|
796 |
#labelPosition: #topLeft |
|
797 |
#translateLabel: true |
|
798 |
#component: |
|
799 |
#(#SpecCollection |
|
800 |
#collection: #( |
|
801 |
#(#CheckBoxSpec |
|
802 |
#label: 'Non Standard Language Features' |
|
803 |
#name: 'CheckBox1' |
|
804 |
#layout: #(#LayoutFrame 0 0.0 9 0 0 1.0 31 0) |
|
805 |
#tabable: true |
|
806 |
#model: #makeWarnNonStandard |
|
807 |
#translateLabel: true |
|
808 |
) |
|
809 |
#(#CheckBoxSpec |
|
810 |
#label: 'End-of-line Comments' |
|
811 |
#name: 'CheckBox2' |
|
812 |
#layout: #(#LayoutFrame 0 0.0 36 0 0 1.0 58 0) |
|
813 |
#tabable: true |
|
814 |
#model: #makeWarnEOLComments |
|
815 |
#translateLabel: true |
|
816 |
) |
|
817 |
#(#LabelSpec |
|
818 |
#label: 'other warning options:' |
|
819 |
#name: 'Label3' |
|
820 |
#layout: #(#LayoutFrame 0 0.0 69 0 0 1.0 91 0) |
|
821 |
#translateLabel: true |
|
822 |
#adjust: #left |
|
823 |
) |
|
824 |
#(#InputFieldSpec |
|
825 |
#name: 'EntryField1' |
|
826 |
#layout: #(#LayoutFrame 0 0.0 93 0 0 1.0 115 0) |
|
827 |
#activeHelpKey: #projectDir |
|
828 |
#tabable: true |
|
829 |
#model: #makeOtherWarningOptions |
|
830 |
#acceptChannel: #acceptChannel |
|
831 |
#modifiedChannel: #modifiedChannel |
|
832 |
#acceptOnPointerLeave: false |
|
833 |
) |
|
834 |
) |
|
1234 | 835 |
|
1371 | 836 |
) |
837 |
) |
|
838 |
#(#FramedBoxSpec |
|
839 |
#label: 'STC Compiler Includes' |
|
840 |
#name: 'FramedBox3' |
|
841 |
#layout: #(#LayoutFrame 0 0.0 146 0.0 0 1.0 203 0) |
|
842 |
#labelPosition: #topLeft |
|
843 |
#translateLabel: true |
|
844 |
#component: |
|
845 |
#(#SpecCollection |
|
846 |
#collection: #( |
|
847 |
#(#InputFieldSpec |
|
848 |
#name: 'EntryField2' |
|
849 |
#layout: #(#LayoutFrame 0 0.0 4 0 0 1.0 26 0) |
|
850 |
#activeHelpKey: #repositoryModule |
|
851 |
#tabable: true |
|
852 |
#model: #makeIncludes |
|
853 |
#acceptChannel: #acceptChannel |
|
854 |
#modifiedChannel: #modifiedChannel |
|
855 |
#acceptOnPointerLeave: false |
|
856 |
) |
|
857 |
) |
|
1234 | 858 |
|
1371 | 859 |
) |
860 |
) |
|
861 |
#(#FramedBoxSpec |
|
862 |
#label: 'STC Compiler Defines' |
|
863 |
#name: 'FramedBox5' |
|
864 |
#layout: #(#LayoutFrame 0 0.0 210 0.0 0 1.0 267 0) |
|
865 |
#labelPosition: #topLeft |
|
866 |
#translateLabel: true |
|
867 |
#component: |
|
868 |
#(#SpecCollection |
|
869 |
#collection: #( |
|
870 |
#(#InputFieldSpec |
|
871 |
#name: 'EntryField5' |
|
872 |
#layout: #(#LayoutFrame 0 0.0 4 0 0 1.0 26 0) |
|
873 |
#activeHelpKey: #repositoryModule |
|
874 |
#tabable: true |
|
875 |
#model: #makeDefines |
|
876 |
#acceptChannel: #acceptChannel |
|
877 |
#modifiedChannel: #modifiedChannel |
|
878 |
#acceptOnPointerLeave: false |
|
879 |
) |
|
880 |
) |
|
1234 | 881 |
|
1371 | 882 |
) |
883 |
) |
|
884 |
#(#HorizontalPanelViewSpec |
|
885 |
#name: 'HorizontalPanel1' |
|
886 |
#layout: #(#LayoutFrame 0 0 -30 1 0 1 0 1) |
|
887 |
#horizontalLayout: #fitSpace |
|
888 |
#verticalLayout: #center |
|
889 |
#horizontalSpace: 3 |
|
890 |
#verticalSpace: 3 |
|
891 |
#component: |
|
892 |
#(#SpecCollection |
|
893 |
#collection: #( |
|
894 |
#(#ActionButtonSpec |
|
895 |
#label: 'Cancel' |
|
896 |
#name: 'Button1' |
|
897 |
#activeHelpKey: #cancel |
|
898 |
#translateLabel: true |
|
899 |
#model: #cancel |
|
900 |
#enableChannel: #modifiedChannel |
|
901 |
#actionValue: '' |
|
902 |
#useDefaultExtent: true |
|
903 |
) |
|
904 |
#(#ActionButtonSpec |
|
905 |
#label: 'OK' |
|
906 |
#name: 'Button2' |
|
907 |
#activeHelpKey: #accept |
|
908 |
#translateLabel: true |
|
909 |
#model: #accept |
|
910 |
#enableChannel: #modifiedChannel |
|
911 |
#useDefaultExtent: true |
|
912 |
) |
|
913 |
) |
|
1234 | 914 |
|
1371 | 915 |
) |
916 |
) |
|
917 |
) |
|
1234 | 918 |
|
1371 | 919 |
) |
1234 | 920 |
) |
921 |
! |
|
922 |
||
1037 | 923 |
rightCanvasSpecForClassList |
924 |
"This resource specification was automatically generated |
|
925 |
by the UIPainter of ST/X." |
|
926 |
||
927 |
"Do not manually edit this!! If it is corrupted, |
|
928 |
the UIPainter may not be able to read the specification." |
|
929 |
||
930 |
" |
|
931 |
UIPainter new openOnClass:ProjectBrowser andSelector:#rightCanvasSpecForClassList |
|
932 |
ProjectBrowser new openInterface:#rightCanvasSpecForClassList |
|
933 |
" |
|
934 |
||
935 |
<resource: #canvas> |
|
936 |
||
1218 | 937 |
^ |
938 |
#(#FullSpec |
|
1371 | 939 |
#name: #rightCanvasSpecForClassList |
940 |
#window: |
|
1218 | 941 |
#(#WindowSpec |
1371 | 942 |
#label: 'NewApplication' |
943 |
#name: 'NewApplication' |
|
944 |
#min: #(#Point 10 10) |
|
945 |
#max: #(#Point 1280 1024) |
|
946 |
#bounds: #(#Rectangle 10 20 310 320) |
|
947 |
) |
|
948 |
#component: |
|
1218 | 949 |
#(#SpecCollection |
1371 | 950 |
#collection: #( |
951 |
#(#DataSetSpec |
|
952 |
#name: 'classTable' |
|
953 |
#layout: #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0) |
|
954 |
#hasHorizontalScrollBar: true |
|
955 |
#hasVerticalScrollBar: true |
|
956 |
#miniScrollerHorizontal: true |
|
957 |
#dataList: #classList |
|
958 |
#has3Dsepartors: false |
|
959 |
#columnHolder: #classTableColumns |
|
960 |
#verticalSpacing: 0 |
|
961 |
#columnAdaptor: #classTableAdaptor |
|
962 |
) |
|
963 |
) |
|
1218 | 964 |
|
1371 | 965 |
) |
1037 | 966 |
) |
967 |
! |
|
968 |
||
1081 | 969 |
rightCanvasSpecForDeployment |
970 |
"This resource specification was automatically generated |
|
971 |
by the UIPainter of ST/X." |
|
972 |
||
973 |
"Do not manually edit this!! If it is corrupted, |
|
974 |
the UIPainter may not be able to read the specification." |
|
975 |
||
976 |
" |
|
977 |
UIPainter new openOnClass:ProjectBrowser andSelector:#rightCanvasSpecForDeployment |
|
978 |
ProjectBrowser new openInterface:#rightCanvasSpecForDeployment |
|
979 |
" |
|
980 |
||
981 |
<resource: #canvas> |
|
982 |
||
1088 | 983 |
^ |
984 |
#(#FullSpec |
|
1371 | 985 |
#name: #rightCanvasSpecForDeployment |
986 |
#window: |
|
1088 | 987 |
#(#WindowSpec |
1371 | 988 |
#label: 'NewApplication' |
989 |
#name: 'NewApplication' |
|
990 |
#min: #(#Point 10 10) |
|
991 |
#max: #(#Point 1280 1024) |
|
992 |
#bounds: #(#Rectangle 12 22 365 521) |
|
993 |
) |
|
994 |
#component: |
|
1088 | 995 |
#(#SpecCollection |
1371 | 996 |
#collection: #( |
997 |
#(#FramedBoxSpec |
|
998 |
#label: 'Deliver' |
|
999 |
#name: 'DeliverBox' |
|
1000 |
#layout: #(#LayoutFrame 0 0.0 0 0.0 0 1.0 172 0) |
|
1001 |
#labelPosition: #topLeft |
|
1002 |
#translateLabel: true |
|
1003 |
#component: |
|
1004 |
#(#SpecCollection |
|
1005 |
#collection: #( |
|
1006 |
#(#CheckBoxSpec |
|
1007 |
#label: '''loadAll''-File' |
|
1008 |
#name: 'CheckBox5' |
|
1009 |
#layout: #(#LayoutFrame 0 0.0 67 0 0 1.0 89 0) |
|
1010 |
#activeHelpKey: #deliverLoadAll |
|
1011 |
#tabable: true |
|
1012 |
#model: #deliverLoadAllFile |
|
1013 |
#translateLabel: true |
|
1014 |
) |
|
1015 |
#(#CheckBoxSpec |
|
1016 |
#label: 'Compiled Binary (non-portable .dll / .so)' |
|
1017 |
#name: 'CheckBox6' |
|
1018 |
#layout: #(#LayoutFrame 0 0.0 32 0 0 1.0 54 0) |
|
1019 |
#activeHelpKey: #deliverCompiledBinary |
|
1020 |
#tabable: true |
|
1021 |
#model: #deliverCompiledBinary |
|
1022 |
#translateLabel: true |
|
1023 |
) |
|
1024 |
#(#CheckBoxSpec |
|
1025 |
#label: 'Bytecode Binary (portable)' |
|
1026 |
#name: 'CheckBox1' |
|
1027 |
#layout: #(#LayoutFrame 0 0.0 8 0 0 1.0 30 0) |
|
1028 |
#activeHelpKey: #deliverByteCode |
|
1029 |
#tabable: true |
|
1030 |
#model: #deliverByteCode |
|
1031 |
#translateLabel: true |
|
1032 |
) |
|
1033 |
#(#CheckBoxSpec |
|
1034 |
#label: 'Sources' |
|
1035 |
#name: 'CheckBox4' |
|
1036 |
#layout: #(#LayoutFrame 0 0.0 90 0 0 1.0 112 0) |
|
1037 |
#activeHelpKey: #deliverSources |
|
1038 |
#tabable: true |
|
1039 |
#model: #deliverSources |
|
1040 |
#translateLabel: true |
|
1041 |
) |
|
1042 |
#(#CheckBoxSpec |
|
1043 |
#label: 'Makefiles' |
|
1044 |
#name: 'CheckBox8' |
|
1045 |
#layout: #(#LayoutFrame 0 0.0 113 0 0 1.0 135 0) |
|
1046 |
#activeHelpKey: #deliverMakefiles |
|
1047 |
#tabable: true |
|
1048 |
#model: #deliverMakefiles |
|
1049 |
#translateLabel: true |
|
1050 |
) |
|
1051 |
) |
|
1091 | 1052 |
|
1371 | 1053 |
) |
1054 |
) |
|
1055 |
#(#FramedBoxSpec |
|
1056 |
#label: 'Format' |
|
1057 |
#name: 'DeliverAsBox' |
|
1058 |
#layout: #(#LayoutFrame 0 0.0 172 0 0 1.0 290 0) |
|
1059 |
#labelPosition: #topLeft |
|
1060 |
#translateLabel: true |
|
1061 |
#component: |
|
1062 |
#(#SpecCollection |
|
1063 |
#collection: #( |
|
1064 |
#(#CheckBoxSpec |
|
1065 |
#label: 'Tar Archive (.tar - for unix)' |
|
1066 |
#name: 'CheckBox7' |
|
1067 |
#layout: #(#LayoutFrame 0 0.0 34 0 0 1.0 56 0) |
|
1068 |
#activeHelpKey: #deliverTarArchive |
|
1069 |
#tabable: true |
|
1070 |
#model: #deliverTarArchive |
|
1071 |
#translateLabel: true |
|
1072 |
) |
|
1073 |
#(#CheckBoxSpec |
|
1074 |
#label: 'Zip Archive (.zip - for windows)' |
|
1075 |
#name: 'CheckBox2' |
|
1076 |
#layout: #(#LayoutFrame 0 0.0 10 0 0 1.0 32 0) |
|
1077 |
#activeHelpKey: #deliverZipArchive |
|
1078 |
#tabable: true |
|
1079 |
#model: #deliverZipArchive |
|
1080 |
#translateLabel: true |
|
1081 |
) |
|
1082 |
#(#CheckBoxSpec |
|
1083 |
#label: 'GZip Archive (self extracting for unix)' |
|
1084 |
#name: 'CheckBox3' |
|
1085 |
#layout: #(#LayoutFrame 0 0.0 58 0 0 1.0 80 0) |
|
1086 |
#activeHelpKey: #deliverGZipArchive |
|
1087 |
#tabable: true |
|
1088 |
#model: #deliverGZipArchive |
|
1089 |
#translateLabel: true |
|
1090 |
) |
|
1091 |
) |
|
1231 | 1092 |
|
1371 | 1093 |
) |
1094 |
) |
|
1095 |
#(#FramedBoxSpec |
|
1096 |
#label: 'Target Install Directory' |
|
1097 |
#name: 'DestinationBox' |
|
1098 |
#layout: #(#LayoutFrame 0 0.0 295 0 0 1.0 448 0) |
|
1099 |
#labelPosition: #topLeft |
|
1100 |
#translateLabel: true |
|
1101 |
#component: |
|
1102 |
#(#SpecCollection |
|
1103 |
#collection: #( |
|
1104 |
#(#LabelSpec |
|
1105 |
#label: 'Unix:' |
|
1106 |
#name: 'Label1' |
|
1107 |
#layout: #(#AlignmentOrigin 76 0.0 16 0 1 0.5) |
|
1108 |
#translateLabel: true |
|
1109 |
#resizeForLabel: true |
|
1110 |
#adjust: #right |
|
1111 |
) |
|
1112 |
#(#InputFieldSpec |
|
1113 |
#name: 'EntryField1' |
|
1114 |
#layout: #(#LayoutFrame 80 0.0 4 0 0 1.0 26 0) |
|
1115 |
#activeHelpKey: #installDirUnix |
|
1116 |
#enableChannel: #canDeliverForUnix |
|
1117 |
#tabable: true |
|
1118 |
#model: #installDirectoryUnix |
|
1119 |
#acceptChannel: #acceptChannel |
|
1120 |
#modifiedChannel: #modifiedChannel |
|
1121 |
#acceptOnPointerLeave: false |
|
1122 |
) |
|
1123 |
#(#LabelSpec |
|
1124 |
#label: 'Win32:' |
|
1125 |
#name: 'Label2' |
|
1126 |
#layout: #(#AlignmentOrigin 76 0.0 47 0 1 0.5) |
|
1127 |
#translateLabel: true |
|
1128 |
#resizeForLabel: true |
|
1129 |
#adjust: #right |
|
1130 |
) |
|
1131 |
#(#InputFieldSpec |
|
1132 |
#name: 'EntryField2' |
|
1133 |
#layout: #(#LayoutFrame 80 0.0 34 0 0 1.0 56 0) |
|
1134 |
#activeHelpKey: #installDirWin32 |
|
1135 |
#enableChannel: #canDeliverForWin32 |
|
1136 |
#tabable: true |
|
1137 |
#model: #installDirectoryWin32 |
|
1138 |
#acceptChannel: #acceptChannel |
|
1139 |
#modifiedChannel: #modifiedChannel |
|
1140 |
#acceptOnPointerLeave: false |
|
1141 |
) |
|
1142 |
#(#LabelSpec |
|
1143 |
#label: 'VMS:' |
|
1144 |
#name: 'Label3' |
|
1145 |
#layout: #(#AlignmentOrigin 76 0.0 76 0 1 0.5) |
|
1146 |
#translateLabel: true |
|
1147 |
#resizeForLabel: true |
|
1148 |
#adjust: #right |
|
1149 |
) |
|
1150 |
#(#InputFieldSpec |
|
1151 |
#name: 'EntryField3' |
|
1152 |
#layout: #(#LayoutFrame 80 0.0 63 0 0 1.0 85 0) |
|
1153 |
#activeHelpKey: #installDirVMS |
|
1154 |
#initiallyDisabled: true |
|
1155 |
#enableChannel: #canDeliverForVMS |
|
1156 |
#tabable: true |
|
1157 |
#model: #installDirectoryVMS |
|
1158 |
#acceptChannel: #acceptChannel |
|
1159 |
#modifiedChannel: #modifiedChannel |
|
1160 |
#acceptOnPointerLeave: false |
|
1161 |
) |
|
1162 |
#(#LabelSpec |
|
1163 |
#label: 'MacOS:' |
|
1164 |
#name: 'Label4' |
|
1165 |
#layout: #(#AlignmentOrigin 76 0.0 106 0 1 0.5) |
|
1166 |
#translateLabel: true |
|
1167 |
#resizeForLabel: true |
|
1168 |
#adjust: #right |
|
1169 |
) |
|
1170 |
#(#InputFieldSpec |
|
1171 |
#name: 'EntryField4' |
|
1172 |
#layout: #(#LayoutFrame 80 0.0 93 0 0 1.0 115 0) |
|
1173 |
#activeHelpKey: #installDirMacOS |
|
1174 |
#initiallyDisabled: true |
|
1175 |
#enableChannel: #canDeliverForMacOS |
|
1176 |
#tabable: true |
|
1177 |
#model: #installDirectoryMac |
|
1178 |
#acceptChannel: #acceptChannel |
|
1179 |
#modifiedChannel: #modifiedChannel |
|
1180 |
#acceptOnPointerLeave: false |
|
1181 |
) |
|
1182 |
) |
|
1091 | 1183 |
|
1371 | 1184 |
) |
1185 |
) |
|
1186 |
#(#HorizontalPanelViewSpec |
|
1187 |
#name: 'HorizontalPanel1' |
|
1188 |
#layout: #(#LayoutFrame 0 0 -30 1 0 1 0 1) |
|
1189 |
#horizontalLayout: #fitSpace |
|
1190 |
#verticalLayout: #center |
|
1191 |
#horizontalSpace: 3 |
|
1192 |
#verticalSpace: 3 |
|
1193 |
#component: |
|
1194 |
#(#SpecCollection |
|
1195 |
#collection: #( |
|
1196 |
#(#ActionButtonSpec |
|
1197 |
#label: 'Cancel' |
|
1198 |
#name: 'Button1' |
|
1199 |
#translateLabel: true |
|
1200 |
#tabable: true |
|
1201 |
#model: #cancel |
|
1202 |
#enableChannel: #modifiedChannel |
|
1203 |
#actionValue: '' |
|
1204 |
#useDefaultExtent: true |
|
1205 |
) |
|
1206 |
#(#ActionButtonSpec |
|
1207 |
#label: 'OK' |
|
1208 |
#name: 'Button2' |
|
1209 |
#translateLabel: true |
|
1210 |
#tabable: true |
|
1211 |
#model: #accept |
|
1212 |
#enableChannel: #modifiedChannel |
|
1213 |
#actionValue: '' |
|
1214 |
#useDefaultExtent: true |
|
1215 |
) |
|
1216 |
) |
|
1088 | 1217 |
|
1371 | 1218 |
) |
1219 |
) |
|
1220 |
) |
|
1088 | 1221 |
|
1371 | 1222 |
) |
1088 | 1223 |
) |
1081 | 1224 |
! |
1225 |
||
1026 | 1226 |
rightCanvasSpecForEditableText |
1227 |
"This resource specification was automatically generated |
|
1228 |
by the UIPainter of ST/X." |
|
1229 |
||
1230 |
"Do not manually edit this!! If it is corrupted, |
|
1231 |
the UIPainter may not be able to read the specification." |
|
1232 |
||
1233 |
" |
|
1232 | 1234 |
UIPainter new openOnClass:ProjectBrowser andSelector:#rightCanvasSpecForEditableText |
1235 |
ProjectBrowser new openInterface:#rightCanvasSpecForEditableText |
|
1026 | 1236 |
" |
1237 |
||
1238 |
<resource: #canvas> |
|
1239 |
||
1232 | 1240 |
^ |
1241 |
#(#FullSpec |
|
1371 | 1242 |
#name: #rightCanvasSpecForEditableText |
1243 |
#window: |
|
1232 | 1244 |
#(#WindowSpec |
1371 | 1245 |
#label: 'NewApplication' |
1246 |
#name: 'NewApplication' |
|
1247 |
#min: #(#Point 10 10) |
|
1248 |
#max: #(#Point 1280 1024) |
|
1249 |
#bounds: #(#Rectangle 216 173 516 473) |
|
1250 |
) |
|
1251 |
#component: |
|
1232 | 1252 |
#(#SpecCollection |
1371 | 1253 |
#collection: #( |
1254 |
#(#TextEditorSpec |
|
1255 |
#name: 'TextEditor1' |
|
1256 |
#layout: #(#LayoutFrame 0 0.0 30 0.0 0 1.0 0 1.0) |
|
1257 |
#model: #rightCanvasTextHolder |
|
1258 |
#hasHorizontalScrollBar: true |
|
1259 |
#hasVerticalScrollBar: true |
|
1260 |
#miniScrollerHorizontal: true |
|
1261 |
) |
|
1262 |
#(#LabelSpec |
|
1263 |
#label: 'Label' |
|
1264 |
#name: 'Label1' |
|
1265 |
#layout: #(#LayoutFrame 0 0 0 0 0 1 30 0) |
|
1266 |
#translateLabel: true |
|
1267 |
#labelChannel: #textCanvasLabelHolder |
|
1268 |
#adjust: #left |
|
1269 |
) |
|
1270 |
) |
|
1232 | 1271 |
|
1371 | 1272 |
) |
1026 | 1273 |
) |
1274 |
! |
|
1275 |
||
1218 | 1276 |
rightCanvasSpecForFiles |
1277 |
"This resource specification was automatically generated |
|
1278 |
by the UIPainter of ST/X." |
|
1279 |
||
1280 |
"Do not manually edit this!! If it is corrupted, |
|
1281 |
the UIPainter may not be able to read the specification." |
|
1282 |
||
1283 |
" |
|
1284 |
UIPainter new openOnClass:ProjectBrowser andSelector:#rightCanvasSpecForFiles |
|
1285 |
ProjectBrowser new openInterface:#rightCanvasSpecForFiles |
|
1286 |
" |
|
1287 |
||
1288 |
<resource: #canvas> |
|
1289 |
||
1290 |
^ |
|
1291 |
#(#FullSpec |
|
1371 | 1292 |
#name: #rightCanvasSpecForFiles |
1293 |
#window: |
|
1218 | 1294 |
#(#WindowSpec |
1371 | 1295 |
#label: 'NewApplication' |
1296 |
#name: 'NewApplication' |
|
1297 |
#min: #(#Point 10 10) |
|
1298 |
#max: #(#Point 1280 1024) |
|
1299 |
#bounds: #(#Rectangle 216 173 577 536) |
|
1300 |
) |
|
1301 |
#component: |
|
1218 | 1302 |
#(#SpecCollection |
1371 | 1303 |
#collection: #( |
1304 |
#(#FramedBoxSpec |
|
1305 |
#label: 'File for extensions & patches' |
|
1306 |
#name: 'FramedBox2' |
|
1307 |
#layout: #(#LayoutFrame 0 0.0 62 0.0 0 1.0 122 0) |
|
1308 |
#labelPosition: #topLeft |
|
1309 |
#translateLabel: true |
|
1310 |
#component: |
|
1311 |
#(#SpecCollection |
|
1312 |
#collection: #( |
|
1313 |
#(#InputFieldSpec |
|
1314 |
#name: 'methodsFileEntryField' |
|
1315 |
#layout: #(#LayoutFrame 0 0.0 1 0 0 1.0 23 0) |
|
1316 |
#activeHelpKey: #methodsFile |
|
1317 |
#model: #methodsFile |
|
1318 |
#acceptChannel: #acceptChannel |
|
1319 |
#modifiedChannel: #modifiedChannel |
|
1320 |
#acceptOnPointerLeave: false |
|
1321 |
) |
|
1322 |
) |
|
1218 | 1323 |
|
1371 | 1324 |
) |
1325 |
) |
|
1326 |
#(#HorizontalPanelViewSpec |
|
1327 |
#name: 'HorizontalPanel1' |
|
1328 |
#layout: #(#LayoutFrame 0 0 -30 1 0 1 0 1) |
|
1329 |
#horizontalLayout: #fitSpace |
|
1330 |
#verticalLayout: #center |
|
1331 |
#horizontalSpace: 3 |
|
1332 |
#verticalSpace: 3 |
|
1333 |
#component: |
|
1334 |
#(#SpecCollection |
|
1335 |
#collection: #( |
|
1336 |
#(#ActionButtonSpec |
|
1337 |
#label: 'Cancel' |
|
1338 |
#name: 'Button1' |
|
1339 |
#activeHelpKey: #cancel |
|
1340 |
#translateLabel: true |
|
1341 |
#model: #cancel |
|
1342 |
#enableChannel: #modifiedChannel |
|
1343 |
#actionValue: '' |
|
1344 |
#useDefaultExtent: true |
|
1345 |
) |
|
1346 |
#(#ActionButtonSpec |
|
1347 |
#label: 'OK' |
|
1348 |
#name: 'Button2' |
|
1349 |
#activeHelpKey: #accept |
|
1350 |
#translateLabel: true |
|
1351 |
#model: #accept |
|
1352 |
#enableChannel: #modifiedChannel |
|
1353 |
#useDefaultExtent: true |
|
1354 |
) |
|
1355 |
) |
|
1218 | 1356 |
|
1371 | 1357 |
) |
1358 |
) |
|
1359 |
) |
|
1218 | 1360 |
|
1371 | 1361 |
) |
1218 | 1362 |
) |
1363 |
! |
|
1364 |
||
1037 | 1365 |
rightCanvasSpecForHTMLText |
1366 |
"This resource specification was automatically generated |
|
1367 |
by the UIPainter of ST/X." |
|
1368 |
||
1369 |
"Do not manually edit this!! If it is corrupted, |
|
1370 |
the UIPainter may not be able to read the specification." |
|
1371 |
||
1372 |
" |
|
1373 |
UIPainter new openOnClass:ProjectBrowser andSelector:#rightCanvasSpecForHTMLText |
|
1374 |
ProjectBrowser new openInterface:#rightCanvasSpecForHTMLText |
|
1375 |
" |
|
1376 |
||
1377 |
<resource: #canvas> |
|
1378 |
||
1379 |
^ |
|
1380 |
||
1381 |
#(#FullSpec |
|
1371 | 1382 |
#window: |
1383 |
#(#WindowSpec |
|
1384 |
#name: 'NewApplication' |
|
1385 |
#layout: #(#LayoutFrame 216 0 173 0 515 0 472 0) |
|
1386 |
#level: 0 |
|
1387 |
#label: 'NewApplication' |
|
1388 |
#min: #(#Point 10 10) |
|
1389 |
#max: #(#Point 1280 1024) |
|
1390 |
#bounds: #(#Rectangle 216 173 516 473) |
|
1391 |
#usePreferredExtent: false |
|
1392 |
) |
|
1393 |
#component: |
|
1394 |
#(#SpecCollection |
|
1395 |
#collection: |
|
1396 |
#( |
|
1397 |
#(#HTMLViewSpec |
|
1398 |
#name: 'HTMLBrowser1' |
|
1399 |
#layout: #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0) |
|
1400 |
#model: #htmlDocumentURLHolder |
|
1401 |
#hasHorizontalScrollBar: true |
|
1402 |
#hasVerticalScrollBar: true |
|
1403 |
) |
|
1404 |
) |
|
1405 |
) |
|
1037 | 1406 |
) |
1407 |
! |
|
1408 |
||
1043 | 1409 |
rightCanvasSpecForPatchesList |
1410 |
"This resource specification was automatically generated |
|
1411 |
by the UIPainter of ST/X." |
|
1412 |
||
1413 |
"Do not manually edit this!! If it is corrupted, |
|
1414 |
the UIPainter may not be able to read the specification." |
|
1415 |
||
1416 |
" |
|
1417 |
UIPainter new openOnClass:ProjectBrowser andSelector:#rightCanvasSpecForPatchesList |
|
1418 |
ProjectBrowser new openInterface:#rightCanvasSpecForPatchesList |
|
1419 |
" |
|
1420 |
||
1421 |
<resource: #canvas> |
|
1422 |
||
1206 | 1423 |
^ |
1424 |
#(#FullSpec |
|
1371 | 1425 |
#name: #rightCanvasSpecForPatchesList |
1426 |
#window: |
|
1206 | 1427 |
#(#WindowSpec |
1371 | 1428 |
#label: 'NewApplication' |
1429 |
#name: 'NewApplication' |
|
1430 |
#min: #(#Point 10 10) |
|
1431 |
#max: #(#Point 1280 1024) |
|
1432 |
#bounds: #(#Rectangle 162 22 462 322) |
|
1433 |
) |
|
1434 |
#component: |
|
1206 | 1435 |
#(#SpecCollection |
1371 | 1436 |
#collection: #( |
1437 |
#(#DataSetSpec |
|
1438 |
#name: 'patchesTable' |
|
1439 |
#layout: #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0) |
|
1440 |
#menu: #methodMenu |
|
1441 |
#hasHorizontalScrollBar: true |
|
1442 |
#hasVerticalScrollBar: true |
|
1443 |
#miniScrollerHorizontal: true |
|
1444 |
#dataList: #patchesList |
|
1445 |
#has3Dsepartors: false |
|
1446 |
#columnHolder: #patchesTableColumns |
|
1447 |
#columnAdaptor: #classTableAdaptor |
|
1448 |
) |
|
1449 |
) |
|
1206 | 1450 |
|
1371 | 1451 |
) |
1043 | 1452 |
) |
1453 |
! |
|
1454 |
||
1109 | 1455 |
rightCanvasSpecForPrerequisiteClasses |
1089 | 1456 |
"This resource specification was automatically generated |
1457 |
by the UIPainter of ST/X." |
|
1458 |
||
1459 |
"Do not manually edit this!! If it is corrupted, |
|
1460 |
the UIPainter may not be able to read the specification." |
|
1461 |
||
1462 |
" |
|
1109 | 1463 |
UIPainter new openOnClass:ProjectBrowser andSelector:#rightCanvasSpecForPrerequisiteClasses |
1464 |
ProjectBrowser new openInterface:#rightCanvasSpecForPrerequisiteClasses |
|
1089 | 1465 |
" |
1466 |
||
1467 |
<resource: #canvas> |
|
1468 |
||
1469 |
^ |
|
1470 |
#(#FullSpec |
|
1371 | 1471 |
#name: #rightCanvasSpecForPrerequisiteClasses |
1472 |
#window: |
|
1089 | 1473 |
#(#WindowSpec |
1371 | 1474 |
#label: 'NewApplication' |
1475 |
#name: 'NewApplication' |
|
1476 |
#layout: #(#LayoutFrame 220 0 200 0 519 0 499 0) |
|
1477 |
#level: 0 |
|
1478 |
#min: #(#Point 10 10) |
|
1479 |
#max: #(#Point 1280 1024) |
|
1480 |
#bounds: #(#Rectangle 220 200 520 500) |
|
1481 |
#usePreferredExtent: false |
|
1482 |
#returnIsOKInDialog: true |
|
1483 |
#escapeIsCancelInDialog: true |
|
1484 |
) |
|
1485 |
#component: |
|
1109 | 1486 |
#(#SpecCollection |
1371 | 1487 |
#collection: #( |
1488 |
#(#LabelSpec |
|
1489 |
#label: 'Known Classes' |
|
1490 |
#name: 'Label1' |
|
1491 |
#layout: #(#LayoutFrame 0 0 0 0 0 0.5 30 0) |
|
1492 |
#translateLabel: true |
|
1493 |
) |
|
1494 |
#(#SequenceViewSpec |
|
1495 |
#name: 'List1' |
|
1496 |
#layout: #(#LayoutFrame 0 0 30 0 0 0.5 -62 1) |
|
1497 |
#tabable: true |
|
1498 |
#model: #selectedClassInPrerequisites |
|
1499 |
#hasHorizontalScrollBar: true |
|
1500 |
#hasVerticalScrollBar: true |
|
1501 |
#miniScrollerHorizontal: true |
|
1502 |
#miniScrollerVertical: true |
|
1503 |
#doubleClickSelector: #addClassToPrerequisites |
|
1504 |
#valueChangeSelector: #showInfoForRequiredClass: |
|
1505 |
#useIndex: false |
|
1506 |
#sequenceList: #listOfAllClassesInPrerequisites |
|
1507 |
) |
|
1508 |
#(#LabelSpec |
|
1509 |
#label: 'Required Classes' |
|
1510 |
#name: 'Label2' |
|
1511 |
#layout: #(#LayoutFrame 0 0.5 0 0 0 1 30 0) |
|
1512 |
#translateLabel: true |
|
1513 |
) |
|
1514 |
#(#SequenceViewSpec |
|
1515 |
#name: 'List2' |
|
1516 |
#layout: #(#LayoutFrame 0 0.5 30 0 0 1 -62 1) |
|
1517 |
#tabable: true |
|
1518 |
#model: #selectedRequiredClassInPrerequisites |
|
1519 |
#hasHorizontalScrollBar: true |
|
1520 |
#hasVerticalScrollBar: true |
|
1521 |
#miniScrollerHorizontal: true |
|
1522 |
#miniScrollerVertical: true |
|
1523 |
#doubleClickSelector: #removeClassFromPrerequisites |
|
1524 |
#valueChangeSelector: #showInfoForRequiredClass: |
|
1525 |
#useIndex: false |
|
1526 |
#sequenceList: #listOfRequiredClassesInPrerequisites |
|
1527 |
) |
|
1528 |
#(#HorizontalPanelViewSpec |
|
1529 |
#name: 'HorizontalPanel2' |
|
1530 |
#layout: #(#LayoutFrame 0 0 -62 1 0 1 -32 1) |
|
1531 |
#horizontalLayout: #fitSpace |
|
1532 |
#verticalLayout: #center |
|
1533 |
#horizontalSpace: 3 |
|
1534 |
#verticalSpace: 3 |
|
1535 |
#component: |
|
1536 |
#(#SpecCollection |
|
1537 |
#collection: #( |
|
1538 |
#(#ActionButtonSpec |
|
1539 |
#label: 'Add' |
|
1540 |
#name: 'addButton' |
|
1541 |
#translateLabel: true |
|
1542 |
#resizeForLabel: false |
|
1543 |
#tabable: true |
|
1544 |
#model: #addClassToPrerequisites |
|
1545 |
#enableChannel: #canAddSelectedClassToPrerequisites |
|
1546 |
#actionValue: '' |
|
1547 |
#useDefaultExtent: true |
|
1548 |
) |
|
1549 |
#(#ActionButtonSpec |
|
1550 |
#label: 'Remove' |
|
1551 |
#name: 'removeButton' |
|
1552 |
#translateLabel: true |
|
1553 |
#resizeForLabel: false |
|
1554 |
#tabable: true |
|
1555 |
#model: #removeClassFromPrerequisites |
|
1556 |
#enableChannel: #canRemoveSelectedClassFromPrerequisites |
|
1557 |
#actionValue: '' |
|
1558 |
#useDefaultExtent: true |
|
1559 |
) |
|
1560 |
) |
|
1109 | 1561 |
|
1371 | 1562 |
) |
1563 |
) |
|
1564 |
#(#HorizontalPanelViewSpec |
|
1565 |
#name: 'HorizontalPanel1' |
|
1566 |
#layout: #(#LayoutFrame 0 0.0 -30 1 0 1.0 0 1.0) |
|
1567 |
#horizontalLayout: #fitSpace |
|
1568 |
#verticalLayout: #center |
|
1569 |
#horizontalSpace: 3 |
|
1570 |
#verticalSpace: 3 |
|
1571 |
#component: |
|
1572 |
#(#SpecCollection |
|
1573 |
#collection: #( |
|
1574 |
#(#ActionButtonSpec |
|
1575 |
#label: 'Cancel' |
|
1576 |
#name: 'Button1' |
|
1577 |
#translateLabel: true |
|
1578 |
#tabable: true |
|
1579 |
#model: #cancel |
|
1580 |
#useDefaultExtent: true |
|
1581 |
) |
|
1582 |
#(#ActionButtonSpec |
|
1583 |
#label: 'OK' |
|
1584 |
#name: 'Button2' |
|
1585 |
#translateLabel: true |
|
1586 |
#tabable: true |
|
1587 |
#model: #accept |
|
1588 |
#useDefaultExtent: true |
|
1589 |
) |
|
1590 |
) |
|
1109 | 1591 |
|
1371 | 1592 |
) |
1593 |
) |
|
1594 |
) |
|
1109 | 1595 |
|
1371 | 1596 |
) |
1109 | 1597 |
) |
1598 |
! |
|
1599 |
||
1291 | 1600 |
rightCanvasSpecForPrerequisitePackages |
1109 | 1601 |
"This resource specification was automatically generated |
1602 |
by the UIPainter of ST/X." |
|
1603 |
||
1604 |
"Do not manually edit this!! If it is corrupted, |
|
1605 |
the UIPainter may not be able to read the specification." |
|
1606 |
||
1607 |
" |
|
1291 | 1608 |
UIPainter new openOnClass:ProjectBrowser andSelector:#rightCanvasSpecForPrerequisitePackages |
1609 |
ProjectBrowser new openInterface:#rightCanvasSpecForPrerequisitePackages |
|
1109 | 1610 |
" |
1611 |
||
1612 |
<resource: #canvas> |
|
1613 |
||
1614 |
^ |
|
1615 |
#(#FullSpec |
|
1371 | 1616 |
#name: #rightCanvasSpecForPrerequisitePackages |
1617 |
#window: |
|
1109 | 1618 |
#(#WindowSpec |
1371 | 1619 |
#label: 'NewApplication' |
1620 |
#name: 'NewApplication' |
|
1621 |
#layout: #(#LayoutFrame 220 0 200 0 519 0 499 0) |
|
1622 |
#level: 0 |
|
1623 |
#min: #(#Point 10 10) |
|
1624 |
#max: #(#Point 1280 1024) |
|
1625 |
#bounds: #(#Rectangle 220 200 520 500) |
|
1626 |
#usePreferredExtent: false |
|
1627 |
#returnIsOKInDialog: true |
|
1628 |
#escapeIsCancelInDialog: true |
|
1629 |
) |
|
1630 |
#component: |
|
1089 | 1631 |
#(#SpecCollection |
1371 | 1632 |
#collection: #( |
1633 |
#(#LabelSpec |
|
1634 |
#label: 'Known Packages' |
|
1635 |
#name: 'Label1' |
|
1636 |
#layout: #(#LayoutFrame 0 0 0 0 0 0.5 30 0) |
|
1637 |
#translateLabel: true |
|
1638 |
) |
|
1639 |
#(#SequenceViewSpec |
|
1640 |
#name: 'List1' |
|
1641 |
#layout: #(#LayoutFrame 0 0 30 0 0 0.5 -62 1) |
|
1642 |
#tabable: true |
|
1643 |
#model: #selectedProjectInPrerequisites |
|
1644 |
#hasHorizontalScrollBar: true |
|
1645 |
#hasVerticalScrollBar: true |
|
1646 |
#miniScrollerHorizontal: true |
|
1647 |
#miniScrollerVertical: true |
|
1648 |
#doubleClickSelector: #addProjectToPrerequisites |
|
1649 |
#useIndex: false |
|
1650 |
#sequenceList: #listOfAllProjectsInPrerequisites |
|
1651 |
) |
|
1652 |
#(#LabelSpec |
|
1653 |
#label: 'Prerequisites' |
|
1654 |
#name: 'Label2' |
|
1655 |
#layout: #(#LayoutFrame 0 0.5 0 0 0 1 30 0) |
|
1656 |
#translateLabel: true |
|
1657 |
) |
|
1658 |
#(#SequenceViewSpec |
|
1659 |
#name: 'List2' |
|
1660 |
#layout: #(#LayoutFrame 0 0.5 30 0 0 1 -62 1) |
|
1661 |
#tabable: true |
|
1662 |
#model: #selectedRequiredProjectInPrerequisites |
|
1663 |
#hasHorizontalScrollBar: true |
|
1664 |
#hasVerticalScrollBar: true |
|
1665 |
#miniScrollerHorizontal: true |
|
1666 |
#miniScrollerVertical: true |
|
1667 |
#doubleClickSelector: #removeProjectFromPrerequisites |
|
1668 |
#useIndex: false |
|
1669 |
#sequenceList: #listOfRequiredProjectsInPrerequisites |
|
1670 |
) |
|
1671 |
#(#HorizontalPanelViewSpec |
|
1672 |
#name: 'HorizontalPanel2' |
|
1673 |
#layout: #(#LayoutFrame 0 0 -62 1 0 1 -32 1) |
|
1674 |
#horizontalLayout: #fitSpace |
|
1675 |
#verticalLayout: #center |
|
1676 |
#horizontalSpace: 3 |
|
1677 |
#verticalSpace: 3 |
|
1678 |
#component: |
|
1679 |
#(#SpecCollection |
|
1680 |
#collection: #( |
|
1681 |
#(#ActionButtonSpec |
|
1682 |
#label: 'Add' |
|
1683 |
#name: 'addButton' |
|
1684 |
#translateLabel: true |
|
1685 |
#resizeForLabel: false |
|
1686 |
#tabable: true |
|
1687 |
#model: #addProjectToPrerequisites |
|
1688 |
#enableChannel: #canAddSelectedProjectToPrerequisites |
|
1689 |
#actionValue: '' |
|
1690 |
#useDefaultExtent: true |
|
1691 |
) |
|
1692 |
#(#ActionButtonSpec |
|
1693 |
#label: 'Remove' |
|
1694 |
#name: 'removeButton' |
|
1695 |
#translateLabel: true |
|
1696 |
#resizeForLabel: false |
|
1697 |
#tabable: true |
|
1698 |
#model: #removeProjectFromPrerequisites |
|
1699 |
#enableChannel: #canRemoveSelectedProjectFromPrerequisites |
|
1700 |
#actionValue: '' |
|
1701 |
#useDefaultExtent: true |
|
1702 |
) |
|
1703 |
) |
|
1089 | 1704 |
|
1371 | 1705 |
) |
1706 |
) |
|
1707 |
#(#HorizontalPanelViewSpec |
|
1708 |
#name: 'HorizontalPanel1' |
|
1709 |
#layout: #(#LayoutFrame 0 0.0 -30 1 0 1.0 0 1.0) |
|
1710 |
#horizontalLayout: #fitSpace |
|
1711 |
#verticalLayout: #center |
|
1712 |
#horizontalSpace: 3 |
|
1713 |
#verticalSpace: 3 |
|
1714 |
#component: |
|
1715 |
#(#SpecCollection |
|
1716 |
#collection: #( |
|
1717 |
#(#ActionButtonSpec |
|
1718 |
#label: 'Cancel' |
|
1719 |
#name: 'Button1' |
|
1720 |
#translateLabel: true |
|
1721 |
#tabable: true |
|
1722 |
#model: #cancel |
|
1723 |
#useDefaultExtent: true |
|
1724 |
) |
|
1725 |
#(#ActionButtonSpec |
|
1726 |
#label: 'OK' |
|
1727 |
#name: 'Button2' |
|
1728 |
#translateLabel: true |
|
1729 |
#tabable: true |
|
1730 |
#model: #accept |
|
1731 |
#useDefaultExtent: true |
|
1732 |
) |
|
1733 |
) |
|
1089 | 1734 |
|
1371 | 1735 |
) |
1736 |
) |
|
1737 |
) |
|
1089 | 1738 |
|
1371 | 1739 |
) |
1089 | 1740 |
) |
1741 |
! |
|
1742 |
||
1079 | 1743 |
rightCanvasSpecForProperties |
1744 |
"This resource specification was automatically generated |
|
1745 |
by the UIPainter of ST/X." |
|
1746 |
||
1747 |
"Do not manually edit this!! If it is corrupted, |
|
1748 |
the UIPainter may not be able to read the specification." |
|
1749 |
||
1750 |
" |
|
1751 |
UIPainter new openOnClass:ProjectBrowser andSelector:#rightCanvasSpecForProperties |
|
1752 |
ProjectBrowser new openInterface:#rightCanvasSpecForProperties |
|
1753 |
" |
|
1754 |
||
1755 |
<resource: #canvas> |
|
1756 |
||
1088 | 1757 |
^ |
1758 |
#(#FullSpec |
|
1371 | 1759 |
#name: #rightCanvasSpecForProperties |
1760 |
#window: |
|
1088 | 1761 |
#(#WindowSpec |
1371 | 1762 |
#label: 'NewApplication' |
1763 |
#name: 'NewApplication' |
|
1764 |
#min: #(#Point 10 10) |
|
1765 |
#max: #(#Point 1280 1024) |
|
1766 |
#bounds: #(#Rectangle 12 22 373 346) |
|
1767 |
) |
|
1768 |
#component: |
|
1088 | 1769 |
#(#SpecCollection |
1371 | 1770 |
#collection: #( |
1771 |
#(#FramedBoxSpec |
|
1772 |
#label: 'Project Type' |
|
1773 |
#name: 'FramedBox1' |
|
1774 |
#layout: #(#LayoutFrame 0 0.0 0 0.0 0 1.0 61 0) |
|
1775 |
#labelPosition: #topLeft |
|
1776 |
#translateLabel: true |
|
1777 |
#component: |
|
1778 |
#(#SpecCollection |
|
1779 |
#collection: #( |
|
1780 |
#(#RadioButtonSpec |
|
1781 |
#label: 'Application' |
|
1782 |
#name: 'RadioButton1' |
|
1783 |
#layout: #(#LayoutFrame -1 0.0 5 0 0 0.5 27 0) |
|
1784 |
#activeHelpKey: #appType |
|
1785 |
#translateLabel: true |
|
1786 |
#model: #projectType |
|
1787 |
#isTriggerOnDown: true |
|
1788 |
#select: #application |
|
1789 |
) |
|
1790 |
#(#RadioButtonSpec |
|
1791 |
#label: 'Class Library' |
|
1792 |
#name: 'RadioButton2' |
|
1793 |
#layout: #(#LayoutFrame 0 0.5 5 0 0 1.0 27 0) |
|
1794 |
#activeHelpKey: #libType |
|
1795 |
#translateLabel: true |
|
1796 |
#model: #projectType |
|
1797 |
#isTriggerOnDown: true |
|
1798 |
#select: #library |
|
1799 |
) |
|
1800 |
) |
|
1147 | 1801 |
|
1371 | 1802 |
) |
1803 |
) |
|
1804 |
#(#FramedBoxSpec |
|
1805 |
#label: 'Project Working Directory' |
|
1806 |
#name: 'FramedBox2' |
|
1807 |
#layout: #(#LayoutFrame 0 0.0 67 0.0 0 1.0 127 0) |
|
1808 |
#labelPosition: #topLeft |
|
1809 |
#translateLabel: true |
|
1810 |
#component: |
|
1811 |
#(#SpecCollection |
|
1812 |
#collection: #( |
|
1813 |
#(#InputFieldSpec |
|
1814 |
#name: 'EntryField1' |
|
1815 |
#layout: #(#LayoutFrame 0 0.0 1 0 0 1.0 23 0) |
|
1816 |
#activeHelpKey: #projectDir |
|
1817 |
#enableChannel: #currentProjectWasNotLoadedFromFile |
|
1818 |
#model: #projectDirectory |
|
1819 |
#acceptChannel: #acceptChannel |
|
1820 |
#modifiedChannel: #modifiedChannel |
|
1821 |
#acceptOnPointerLeave: false |
|
1822 |
) |
|
1823 |
) |
|
1147 | 1824 |
|
1371 | 1825 |
) |
1826 |
) |
|
1827 |
#(#FramedBoxSpec |
|
1828 |
#label: 'Repository' |
|
1829 |
#name: 'FramedBox3' |
|
1830 |
#layout: #(#LayoutFrame 0 0.0 137 0.0 0 1.0 220 0) |
|
1831 |
#labelPosition: #topLeft |
|
1832 |
#translateLabel: true |
|
1833 |
#component: |
|
1834 |
#(#SpecCollection |
|
1835 |
#collection: #( |
|
1836 |
#(#LabelSpec |
|
1837 |
#label: 'Module:' |
|
1838 |
#name: 'Label1' |
|
1839 |
#layout: #(#AlignmentOrigin 106 0 11 0 1 0.5) |
|
1840 |
#translateLabel: true |
|
1841 |
#resizeForLabel: true |
|
1842 |
#adjust: #right |
|
1843 |
) |
|
1844 |
#(#InputFieldSpec |
|
1845 |
#name: 'EntryField2' |
|
1846 |
#layout: #(#LayoutFrame 110 0.0 0 0 0 1.0 22 0) |
|
1847 |
#activeHelpKey: #repositoryModule |
|
1848 |
#model: #repositoryModule |
|
1849 |
#acceptChannel: #acceptChannel |
|
1850 |
#modifiedChannel: #modifiedChannel |
|
1851 |
#acceptOnPointerLeave: false |
|
1852 |
) |
|
1853 |
#(#LabelSpec |
|
1854 |
#label: 'Directory:' |
|
1855 |
#name: 'Label2' |
|
1856 |
#layout: #(#AlignmentOrigin 106 0 36 0 1 0.5) |
|
1857 |
#translateLabel: true |
|
1858 |
#resizeForLabel: true |
|
1859 |
#adjust: #right |
|
1860 |
) |
|
1861 |
#(#InputFieldSpec |
|
1862 |
#name: 'EntryField3' |
|
1863 |
#layout: #(#LayoutFrame 110 0.0 25 0 0 1.0 47 0) |
|
1864 |
#activeHelpKey: #repositoryDirectory |
|
1865 |
#model: #repositoryDirectory |
|
1866 |
#acceptChannel: #acceptChannel |
|
1867 |
#modifiedChannel: #modifiedChannel |
|
1868 |
#acceptOnPointerLeave: false |
|
1869 |
) |
|
1870 |
) |
|
1147 | 1871 |
|
1371 | 1872 |
) |
1873 |
) |
|
1874 |
#(#FramedBoxSpec |
|
1875 |
#label: 'Default Namespace' |
|
1876 |
#name: 'FramedBox4' |
|
1877 |
#layout: #(#LayoutFrame 0 0.0 226 0 0 1.0 284 0) |
|
1878 |
#activeHelpKey: #defaultNamespace |
|
1879 |
#labelPosition: #topLeft |
|
1880 |
#translateLabel: true |
|
1881 |
#component: |
|
1882 |
#(#SpecCollection |
|
1883 |
#collection: #( |
|
1884 |
#(#InputFieldSpec |
|
1885 |
#name: 'EntryField4' |
|
1886 |
#layout: #(#LayoutFrame 0 0.0 0 0 0 1.0 22 0) |
|
1887 |
#model: #projectNamespace |
|
1888 |
#acceptChannel: #acceptChannel |
|
1889 |
#modifiedChannel: #modifiedChannel |
|
1890 |
#acceptOnPointerLeave: false |
|
1891 |
) |
|
1892 |
) |
|
1147 | 1893 |
|
1371 | 1894 |
) |
1895 |
) |
|
1896 |
#(#HorizontalPanelViewSpec |
|
1897 |
#name: 'HorizontalPanel1' |
|
1898 |
#layout: #(#LayoutFrame 0 0 -30 1 0 1 0 1) |
|
1899 |
#horizontalLayout: #fitSpace |
|
1900 |
#verticalLayout: #center |
|
1901 |
#horizontalSpace: 3 |
|
1902 |
#verticalSpace: 3 |
|
1903 |
#component: |
|
1904 |
#(#SpecCollection |
|
1905 |
#collection: #( |
|
1906 |
#(#ActionButtonSpec |
|
1907 |
#label: 'Cancel' |
|
1908 |
#name: 'Button1' |
|
1909 |
#activeHelpKey: #cancel |
|
1910 |
#translateLabel: true |
|
1911 |
#model: #cancel |
|
1912 |
#enableChannel: #modifiedChannel |
|
1913 |
#actionValue: '' |
|
1914 |
#useDefaultExtent: true |
|
1915 |
) |
|
1916 |
#(#ActionButtonSpec |
|
1917 |
#label: 'OK' |
|
1918 |
#name: 'Button2' |
|
1919 |
#activeHelpKey: #accept |
|
1920 |
#translateLabel: true |
|
1921 |
#model: #accept |
|
1922 |
#enableChannel: #modifiedChannel |
|
1923 |
#useDefaultExtent: true |
|
1924 |
) |
|
1925 |
) |
|
1088 | 1926 |
|
1371 | 1927 |
) |
1928 |
) |
|
1929 |
) |
|
1088 | 1930 |
|
1371 | 1931 |
) |
1079 | 1932 |
) |
1933 |
! |
|
1934 |
||
1026 | 1935 |
rightCanvasSpecForReadOnlyText |
1936 |
"This resource specification was automatically generated |
|
1937 |
by the UIPainter of ST/X." |
|
1938 |
||
1939 |
"Do not manually edit this!! If it is corrupted, |
|
1940 |
the UIPainter may not be able to read the specification." |
|
1941 |
||
1942 |
" |
|
1232 | 1943 |
UIPainter new openOnClass:ProjectBrowser andSelector:#rightCanvasSpecForReadOnlyText |
1944 |
ProjectBrowser new openInterface:#rightCanvasSpecForReadOnlyText |
|
1026 | 1945 |
" |
1946 |
||
1947 |
<resource: #canvas> |
|
1948 |
||
1232 | 1949 |
^ |
1950 |
#(#FullSpec |
|
1371 | 1951 |
#name: #rightCanvasSpecForReadOnlyText |
1952 |
#window: |
|
1232 | 1953 |
#(#WindowSpec |
1371 | 1954 |
#label: 'NewApplication' |
1955 |
#name: 'NewApplication' |
|
1956 |
#min: #(#Point 10 10) |
|
1957 |
#max: #(#Point 1280 1024) |
|
1958 |
#bounds: #(#Rectangle 216 173 516 473) |
|
1959 |
) |
|
1960 |
#component: |
|
1232 | 1961 |
#(#SpecCollection |
1371 | 1962 |
#collection: #( |
1963 |
#(#TextEditorSpec |
|
1964 |
#name: 'TextEditor1' |
|
1965 |
#layout: #(#LayoutFrame 0 0.0 30 0.0 0 1.0 0 1.0) |
|
1966 |
#model: #rightCanvasTextHolder |
|
1967 |
#hasHorizontalScrollBar: true |
|
1968 |
#hasVerticalScrollBar: true |
|
1969 |
#miniScrollerHorizontal: true |
|
1970 |
#isReadOnly: true |
|
1971 |
) |
|
1972 |
#(#LabelSpec |
|
1973 |
#label: 'Label' |
|
1974 |
#name: 'Label1' |
|
1975 |
#layout: #(#LayoutFrame 0 0 0 0 0 1 30 0) |
|
1976 |
#translateLabel: true |
|
1977 |
#labelChannel: #textCanvasLabelHolder |
|
1978 |
#adjust: #left |
|
1979 |
) |
|
1980 |
) |
|
1232 | 1981 |
|
1371 | 1982 |
) |
1026 | 1983 |
) |
1984 |
! |
|
1985 |
||
1025 | 1986 |
windowSpec |
1987 |
"This resource specification was automatically generated |
|
1988 |
by the UIPainter of ST/X." |
|
1989 |
||
1990 |
"Do not manually edit this!! If it is corrupted, |
|
1991 |
the UIPainter may not be able to read the specification." |
|
1992 |
||
1993 |
" |
|
1994 |
UIPainter new openOnClass:ProjectBrowser andSelector:#windowSpec |
|
1995 |
ProjectBrowser new openInterface:#windowSpec |
|
1996 |
ProjectBrowser open |
|
1997 |
" |
|
1998 |
||
1999 |
<resource: #canvas> |
|
2000 |
||
1088 | 2001 |
^ |
2002 |
#(#FullSpec |
|
1371 | 2003 |
#name: #windowSpec |
2004 |
#window: |
|
1088 | 2005 |
#(#WindowSpec |
1371 | 2006 |
#label: 'ProjectBrowser' |
2007 |
#name: 'ProjectBrowser' |
|
2008 |
#min: #(#Point 10 10) |
|
2009 |
#max: #(#Point 1024 768) |
|
2010 |
#bounds: #(#Rectangle 20 94 623 645) |
|
2011 |
#menu: #mainMenu |
|
2012 |
#icon: #bigProjectBrowserIcon |
|
2013 |
) |
|
2014 |
#component: |
|
1088 | 2015 |
#(#SpecCollection |
1371 | 2016 |
#collection: #( |
2017 |
#(#MenuPanelSpec |
|
2018 |
#name: 'ToolBar1' |
|
2019 |
#layout: #(#LayoutFrame 0 0.0 0 0 0 1.0 32 0) |
|
2020 |
#menu: #menu |
|
2021 |
#textDefault: true |
|
2022 |
) |
|
2023 |
#(#VariableVerticalPanelSpec |
|
2024 |
#name: 'VariableVerticalPanel1' |
|
2025 |
#layout: #(#LayoutFrame 0 0.0 32 0.0 0 1.0 -24 1.0) |
|
2026 |
#level: 1 |
|
2027 |
#component: |
|
2028 |
#(#SpecCollection |
|
2029 |
#collection: #( |
|
2030 |
#(#VariableHorizontalPanelSpec |
|
2031 |
#name: 'VariableHorizontalPanel1' |
|
2032 |
#component: |
|
2033 |
#(#SpecCollection |
|
2034 |
#collection: #( |
|
2035 |
#(#SelectionInTreeViewSpec |
|
2036 |
#name: 'TreeList1' |
|
2037 |
#model: #selectedTreeNodeHolder |
|
2038 |
#menu: #itemMenuHolder |
|
2039 |
#performer: #itemMenuPerformer |
|
2040 |
#hasHorizontalScrollBar: true |
|
2041 |
#hasVerticalScrollBar: true |
|
2042 |
#miniScrollerHorizontal: true |
|
2043 |
#showRoot: false |
|
2044 |
#showDirectoryIndicatorForRoot: false |
|
2045 |
#showDirectoryIndicator: true |
|
2046 |
#valueChangeSelector: #itemSelected: |
|
2047 |
#doubleClickSelector: #itemDoubleClicked: |
|
2048 |
#hierarchicalList: #projectTreeHolder |
|
2049 |
#selectConditionSelector: #selectionChangeAllowed: |
|
2050 |
#highlightMode: #label |
|
2051 |
) |
|
2052 |
#(#SubCanvasSpec |
|
2053 |
#name: 'SubCanvas1' |
|
2054 |
#hasHorizontalScrollBar: false |
|
2055 |
#hasVerticalScrollBar: false |
|
2056 |
#specHolder: #currentCanvasHolder |
|
2057 |
) |
|
2058 |
) |
|
1248 | 2059 |
|
1371 | 2060 |
) |
2061 |
#handles: #(#Any 0.389718 1.0) |
|
2062 |
) |
|
2063 |
#(#ArbitraryComponentSpec |
|
2064 |
#name: 'commandOutputView' |
|
2065 |
#hasHorizontalScrollBar: true |
|
2066 |
#hasVerticalScrollBar: true |
|
2067 |
#miniScrollerHorizontal: true |
|
2068 |
#hasBorder: false |
|
2069 |
#component: #TextCollector |
|
2070 |
) |
|
2071 |
) |
|
1088 | 2072 |
|
1371 | 2073 |
) |
2074 |
#handles: #(#Any 0.987879 1.0) |
|
2075 |
) |
|
2076 |
#(#UISubSpecification |
|
2077 |
#name: 'infoBarSubSpec' |
|
2078 |
#layout: #(#LayoutFrame 0 0.0 -24 1 0 1.0 0 1.0) |
|
2079 |
#level: 1 |
|
2080 |
#majorKey: #ToolApplicationModel |
|
2081 |
#minorKey: #windowSpecForInfoBar |
|
2082 |
) |
|
2083 |
) |
|
1088 | 2084 |
|
1371 | 2085 |
) |
1088 | 2086 |
) |
1025 | 2087 |
! ! |
2088 |
||
2089 |
!ProjectBrowser class methodsFor:'menu specs'! |
|
2090 |
||
1094 | 2091 |
classItemMenu |
2092 |
"This resource specification was automatically generated |
|
2093 |
by the MenuEditor of ST/X." |
|
2094 |
||
2095 |
"Do not manually edit this!! If it is corrupted, |
|
2096 |
the MenuEditor may not be able to read the specification." |
|
2097 |
||
2098 |
" |
|
2099 |
MenuEditor new openOnClass:ProjectBrowser andSelector:#classItemMenu |
|
2100 |
(Menu new fromLiteralArrayEncoding:(ProjectBrowser classItemMenu)) startUp |
|
2101 |
" |
|
2102 |
||
2103 |
<resource: #menu> |
|
2104 |
||
2105 |
^ |
|
2106 |
#(#Menu |
|
1371 | 2107 |
#( |
2108 |
#(#MenuItem |
|
2109 |
#label: 'Remove from Project...' |
|
2110 |
#translateLabel: true |
|
2111 |
#value: #removeClassFromProject |
|
2112 |
#enabled: #hasClassesSelectedHolder |
|
2113 |
) |
|
2114 |
#(#MenuItem |
|
2115 |
#label: '-' |
|
2116 |
) |
|
2117 |
#(#MenuItem |
|
2118 |
#label: 'Browse...' |
|
2119 |
#translateLabel: true |
|
2120 |
#value: #browseClass |
|
2121 |
#enabled: #hasClassesSelectedHolder |
|
2122 |
) |
|
2123 |
) |
|
2124 |
nil |
|
2125 |
nil |
|
1094 | 2126 |
) |
2127 |
! |
|
2128 |
||
1052 | 2129 |
classesItemMenu |
2130 |
"This resource specification was automatically generated |
|
2131 |
by the MenuEditor of ST/X." |
|
2132 |
||
2133 |
"Do not manually edit this!! If it is corrupted, |
|
2134 |
the MenuEditor may not be able to read the specification." |
|
2135 |
||
2136 |
" |
|
2137 |
MenuEditor new openOnClass:ProjectBrowser andSelector:#classesItemMenu |
|
2138 |
(Menu new fromLiteralArrayEncoding:(ProjectBrowser classesItemMenu)) startUp |
|
2139 |
" |
|
2140 |
||
2141 |
<resource: #menu> |
|
2142 |
||
2143 |
^ |
|
2144 |
||
2145 |
#(#Menu |
|
2146 |
||
1371 | 2147 |
#( |
2148 |
#(#MenuItem |
|
2149 |
#label: 'Add Class...' |
|
2150 |
#translateLabel: true |
|
2151 |
#value: #addClass |
|
2152 |
#enabled: #hasClassesSelectedHolder |
|
2153 |
) |
|
2154 |
#(#MenuItem |
|
2155 |
#label: 'Add Classes found in image' |
|
2156 |
#translateLabel: true |
|
2157 |
#value: #addClassesFromImage |
|
2158 |
#enabled: #hasClassesSelectedHolder |
|
2159 |
) |
|
2160 |
#(#MenuItem |
|
2161 |
#label: 'Add Classes from files found in directory' |
|
2162 |
#translateLabel: true |
|
2163 |
#value: #addClassesFromFilesInDirectory |
|
2164 |
#enabled: #hasClassesSelectedHolder |
|
2165 |
) |
|
2166 |
#(#MenuItem |
|
2167 |
#label: 'Add Classes from files found in directory if present in image' |
|
2168 |
#translateLabel: true |
|
2169 |
#value: #addClassesFromFilesInDirectoryIfPresentInImage |
|
2170 |
#enabled: #hasClassesSelectedHolder |
|
2171 |
) |
|
2172 |
#(#MenuItem |
|
2173 |
#label: '-' |
|
2174 |
) |
|
2175 |
#(#MenuItem |
|
2176 |
#label: 'Load Classes from Directory' |
|
2177 |
#translateLabel: true |
|
2178 |
#value: #loadClassesFromDirectory |
|
2179 |
#enabled: #canLoadClassesFromDirectory |
|
2180 |
) |
|
2181 |
#(#MenuItem |
|
2182 |
#label: 'Load Classes from Repository' |
|
2183 |
#translateLabel: true |
|
2184 |
#value: #loadClassesFromRepository |
|
2185 |
#enabled: #canLoadClassesFromRepository |
|
2186 |
) |
|
2187 |
#(#MenuItem |
|
2188 |
#label: '-' |
|
2189 |
) |
|
2190 |
#(#MenuItem |
|
2191 |
#label: 'Validate...' |
|
2192 |
#translateLabel: true |
|
2193 |
#value: #validateAgainstClassesInImage |
|
2194 |
#enabled: #hasClassesSelectedHolder |
|
2195 |
) |
|
2196 |
||
2197 |
#(#MenuItem |
|
2198 |
#label: '-' |
|
2199 |
) |
|
2200 |
#(#MenuItem |
|
2201 |
#label: 'Browse...' |
|
2202 |
#translateLabel: true |
|
2203 |
#value: #browseClasses |
|
2204 |
#enabled: #hasClassesSelectedHolder |
|
2205 |
) |
|
2206 |
) nil |
|
2207 |
nil |
|
1052 | 2208 |
) |
2209 |
! |
|
2210 |
||
1025 | 2211 |
mainMenu |
2212 |
"This resource specification was automatically generated |
|
2213 |
by the MenuEditor of ST/X." |
|
2214 |
||
2215 |
"Do not manually edit this!! If it is corrupted, |
|
2216 |
the MenuEditor may not be able to read the specification." |
|
2217 |
||
2218 |
" |
|
2219 |
MenuEditor new openOnClass:ProjectBrowser andSelector:#mainMenu |
|
2220 |
(Menu new fromLiteralArrayEncoding:(ProjectBrowser mainMenu)) startUp |
|
2221 |
" |
|
2222 |
||
2223 |
<resource: #menu> |
|
2224 |
||
1085 | 2225 |
^ |
2226 |
#(#Menu |
|
1371 | 2227 |
#( |
2228 |
#(#MenuItem |
|
2229 |
#label: 'File' |
|
2230 |
#translateLabel: true |
|
2231 |
#submenu: |
|
2232 |
#(#Menu |
|
2233 |
#( |
|
2234 |
#(#MenuItem |
|
2235 |
#label: 'New' |
|
2236 |
#translateLabel: true |
|
2237 |
#value: #newProject |
|
2238 |
) |
|
2239 |
#(#MenuItem |
|
2240 |
#label: '-' |
|
2241 |
) |
|
2242 |
#(#MenuItem |
|
2243 |
#label: 'Load From...' |
|
2244 |
#translateLabel: true |
|
2245 |
#value: #openProject |
|
2246 |
#activeHelpKey: #openProject |
|
2247 |
) |
|
2248 |
#(#MenuItem |
|
2249 |
#label: 'Load Project Code' |
|
2250 |
#translateLabel: true |
|
2251 |
#value: #loadProjectCode |
|
2252 |
#enabled: #hasProjectSelectedAndProjectFilenameHolder |
|
2253 |
#activeHelpKey: #loadProjectCode |
|
2254 |
) |
|
2255 |
#(#MenuItem |
|
2256 |
#label: '-' |
|
2257 |
) |
|
2258 |
#(#MenuItem |
|
2259 |
#label: 'Save Project File' |
|
2260 |
#translateLabel: true |
|
2261 |
#value: #saveProjectFile |
|
2262 |
#enabled: #hasProjectSelectedAndProjectFilenameHolder |
|
2263 |
#activeHelpKey: #saveProjectFile |
|
2264 |
) |
|
2265 |
#(#MenuItem |
|
2266 |
#label: 'Save Project Code' |
|
2267 |
#translateLabel: true |
|
2268 |
#value: #saveProjectCode |
|
2269 |
#enabled: #hasProjectSelectedAndProjectFilenameHolderAndProjectCodeIsLoaded |
|
2270 |
) |
|
2271 |
#(#MenuItem |
|
2272 |
#label: 'Save All' |
|
2273 |
#translateLabel: true |
|
2274 |
#value: #saveAll |
|
2275 |
#enabled: #hasProjectSelectedAndProjectFilenameHolderAndProjectCodeIsLoaded |
|
2276 |
) |
|
2277 |
#(#MenuItem |
|
2278 |
#label: '-' |
|
2279 |
) |
|
2280 |
#(#MenuItem |
|
2281 |
#label: 'Exit' |
|
2282 |
#translateLabel: true |
|
2283 |
#value: #closeRequest |
|
2284 |
) |
|
2285 |
) |
|
2286 |
nil |
|
2287 |
nil |
|
2288 |
) |
|
2289 |
) |
|
2290 |
#(#MenuItem |
|
2291 |
#label: 'Repository' |
|
2292 |
#translateLabel: true |
|
2293 |
#submenu: |
|
2294 |
#(#Menu |
|
2295 |
#( |
|
2296 |
#(#MenuItem |
|
2297 |
#label: 'CheckIn All' |
|
2298 |
#translateLabel: true |
|
2299 |
#value: #checkInProject |
|
2300 |
#enabled: #hasProjectSelectedAndProjectFilenameHolderAndProjectCodeIsLoaded |
|
2301 |
) |
|
2302 |
#(#MenuItem |
|
2303 |
#label: '-' |
|
2304 |
) |
|
2305 |
#(#MenuItem |
|
2306 |
#label: 'CheckIn Classes' |
|
2307 |
#translateLabel: true |
|
2308 |
#value: #checkInAllClasses |
|
2309 |
#enabled: #hasProjectSelectedAndProjectFilenameHolderAndProjectCodeIsLoaded |
|
2310 |
) |
|
2311 |
#(#MenuItem |
|
2312 |
#label: 'CheckIn Extensions' |
|
2313 |
#translateLabel: true |
|
2314 |
#value: #checkInMethods |
|
2315 |
#enabled: #hasProjectSelectedAndProjectFilenameHolderAndProjectCodeIsLoaded |
|
2316 |
) |
|
2317 |
#(#MenuItem |
|
2318 |
#label: 'CheckIn Project File' |
|
2319 |
#translateLabel: true |
|
2320 |
#value: #checkInProjectFile |
|
2321 |
#enabled: #hasProjectSelectedAndProjectFilenameHolderAndProjectCodeIsLoaded |
|
2322 |
) |
|
2323 |
#(#MenuItem |
|
2324 |
#label: 'CheckIn Makefiles' |
|
2325 |
#translateLabel: true |
|
2326 |
#value: #checkInMakefiles |
|
2327 |
#enabled: #hasProjectSelectedAndProjectFilenameHolderAndProjectCodeIsLoaded |
|
2328 |
) |
|
2329 |
) |
|
2330 |
nil |
|
2331 |
nil |
|
2332 |
) |
|
2333 |
) |
|
2334 |
#(#MenuItem |
|
2335 |
#label: 'View' |
|
2336 |
#translateLabel: true |
|
2337 |
#submenu: |
|
2338 |
#(#Menu |
|
2339 |
#( |
|
2340 |
#(#MenuItem |
|
2341 |
#label: 'Current Project' |
|
2342 |
#translateLabel: true |
|
2343 |
#choice: #showWhat |
|
2344 |
#choiceValue: #current |
|
2345 |
) |
|
2346 |
#(#MenuItem |
|
2347 |
#label: 'Non BaseSystem Projects' |
|
2348 |
#translateLabel: true |
|
2349 |
#choice: #showWhat |
|
2350 |
#choiceValue: #userProjects |
|
2351 |
) |
|
2352 |
#(#MenuItem |
|
2353 |
#label: 'All Projects' |
|
2354 |
#translateLabel: true |
|
2355 |
#choice: #showWhat |
|
2356 |
#choiceValue: #all |
|
2357 |
) |
|
2358 |
#(#MenuItem |
|
2359 |
#label: '-' |
|
2360 |
) |
|
2361 |
#(#MenuItem |
|
2362 |
#label: 'Update' |
|
2363 |
#translateLabel: true |
|
2364 |
#value: #updateListOfProjects |
|
2365 |
) |
|
2366 |
) |
|
2367 |
nil |
|
2368 |
nil |
|
2369 |
) |
|
2370 |
) |
|
2371 |
#(#MenuItem |
|
2372 |
#label: 'Project' |
|
2373 |
#translateLabel: true |
|
2374 |
#submenuChannel: #projectItemMenu |
|
2375 |
) |
|
2376 |
#(#MenuItem |
|
2377 |
#label: 'Build' |
|
2378 |
#translateLabel: true |
|
2379 |
#submenu: |
|
2380 |
#(#Menu |
|
2381 |
#( |
|
2382 |
#(#MenuItem |
|
2383 |
#label: 'All' |
|
2384 |
#translateLabel: true |
|
2385 |
#value: #buildAll |
|
2386 |
#enabled: #hasProjectSelectedAndProjectFilenameHolderAndProjectCodeIsLoaded |
|
2387 |
) |
|
2388 |
#(#MenuItem |
|
2389 |
#label: '-' |
|
2390 |
) |
|
2391 |
#(#MenuItem |
|
2392 |
#label: 'Make.proto && Makefile' |
|
2393 |
#translateLabel: true |
|
2394 |
#value: #buildMakefiles |
|
2395 |
#enabled: #hasProjectSelectedAndProjectFilenameHolderAndProjectCodeIsLoaded |
|
2396 |
) |
|
2397 |
#(#MenuItem |
|
2398 |
#label: 'Makefile' |
|
2399 |
#translateLabel: true |
|
2400 |
#value: #buildMakefile |
|
2401 |
#isVisible: #osIsUnix |
|
2402 |
#enabled: #hasProjectSelectedAndProjectFilenameHolderAndProjectCodeIsLoaded |
|
2403 |
) |
|
2404 |
#(#MenuItem |
|
2405 |
#label: 'Makefile for windows (nt.mak)' |
|
2406 |
#translateLabel: true |
|
2407 |
#value: #buildNTMakefile |
|
2408 |
#isVisible: #osIsWindows |
|
2409 |
#enabled: #hasProjectSelectedAndProjectFilenameHolderAndProjectCodeIsLoaded |
|
2410 |
) |
|
2411 |
#(#MenuItem |
|
2412 |
#label: 'LoadAll file' |
|
2413 |
#translateLabel: true |
|
2414 |
#value: #buildLoadAllFile |
|
2415 |
#enabled: #hasProjectSelectedAndProjectFilenameHolderAndProjectCodeIsLoaded |
|
2416 |
) |
|
2417 |
#(#MenuItem |
|
2418 |
#label: 'abbrev file (for autoload)' |
|
2419 |
#translateLabel: true |
|
2420 |
#value: #buildAbbrevFile |
|
2421 |
#enabled: #hasProjectSelectedAndProjectFilenameHolderAndProjectCodeIsLoaded |
|
2422 |
) |
|
2423 |
#(#MenuItem |
|
2424 |
#label: 'Binary class library (non portable)' |
|
2425 |
#translateLabel: true |
|
2426 |
#value: #buildCompiledClassLibrary |
|
2427 |
#enabled: #hasProjectSelectedAndProjectFilenameHolderAndProjectCodeIsLoaded |
|
2428 |
) |
|
2429 |
#(#MenuItem |
|
2430 |
#label: 'Bytecode class library (portable)' |
|
2431 |
#translateLabel: true |
|
2432 |
#value: #buildByteCodeClassLibrary |
|
2433 |
#enabled: #hasProjectSelectedAndProjectFilenameHolderAndProjectCodeIsLoaded |
|
2434 |
) |
|
2435 |
#(#MenuItem |
|
2436 |
#label: 'Zip archive' |
|
2437 |
#translateLabel: true |
|
2438 |
#value: #buildZipArchive |
|
2439 |
#enabled: #hasProjectSelectedAndProjectFilenameHolderAndProjectCodeIsLoaded |
|
2440 |
) |
|
2441 |
) |
|
2442 |
nil |
|
2443 |
nil |
|
2444 |
) |
|
2445 |
) |
|
2446 |
#(#MenuItem |
|
2447 |
#label: 'Help' |
|
2448 |
#translateLabel: true |
|
2449 |
#startGroup: #right |
|
2450 |
#submenu: |
|
2451 |
#(#Menu |
|
2452 |
#( |
|
2453 |
#(#MenuItem |
|
2454 |
#label: 'Documentation' |
|
2455 |
#translateLabel: true |
|
2456 |
#value: #openDocumentation |
|
2457 |
) |
|
2458 |
#(#MenuItem |
|
2459 |
#label: '-' |
|
2460 |
) |
|
2461 |
#(#MenuItem |
|
2462 |
#label: 'About this Application' |
|
2463 |
#translateLabel: true |
|
2464 |
#value: #openAboutThisApplication |
|
2465 |
) |
|
2466 |
) |
|
2467 |
nil |
|
2468 |
nil |
|
2469 |
) |
|
2470 |
) |
|
2471 |
) |
|
2472 |
nil |
|
2473 |
nil |
|
1025 | 2474 |
) |
1278 | 2475 |
|
1298 | 2476 |
"Modified: / 19.1.2000 / 16:52:31 / cg" |
1025 | 2477 |
! |
2478 |
||
1218 | 2479 |
methodItemMenu |
1025 | 2480 |
"This resource specification was automatically generated |
2481 |
by the MenuEditor of ST/X." |
|
2482 |
||
2483 |
"Do not manually edit this!! If it is corrupted, |
|
2484 |
the MenuEditor may not be able to read the specification." |
|
2485 |
||
2486 |
" |
|
2487 |
MenuEditor new openOnClass:ProjectBrowser andSelector:#menu |
|
2488 |
(Menu new fromLiteralArrayEncoding:(ProjectBrowser menu)) startUp |
|
2489 |
" |
|
2490 |
||
2491 |
<resource: #menu> |
|
2492 |
||
1116 | 2493 |
^ |
2494 |
#(#Menu |
|
1371 | 2495 |
#( |
2496 |
#(#MenuItem |
|
2497 |
#label: 'Browse' |
|
2498 |
#translateLabel: true |
|
2499 |
#value: #browseMethod |
|
2500 |
) |
|
2501 |
#(#MenuItem |
|
2502 |
#label: 'Browse Full' |
|
2503 |
#translateLabel: true |
|
2504 |
#value: #browseMethodFull |
|
2505 |
) |
|
2506 |
#(#MenuItem |
|
2507 |
#label: '-' |
|
2508 |
) |
|
2509 |
#(#MenuItem |
|
2510 |
#label: 'Remove...' |
|
2511 |
#translateLabel: true |
|
2512 |
#value: #removeMethod |
|
2513 |
) |
|
2514 |
#(#MenuItem |
|
2515 |
#label: 'Remove from Project...' |
|
2516 |
#translateLabel: true |
|
2517 |
#value: #removeMethodFromProject |
|
2518 |
) |
|
2519 |
#(#MenuItem |
|
2520 |
#label: 'Move to Project...' |
|
2521 |
#translateLabel: true |
|
2522 |
#value: #moveMethodToProject |
|
2523 |
) |
|
2524 |
) |
|
2525 |
nil |
|
2526 |
nil |
|
1025 | 2527 |
) |
1026 | 2528 |
! |
2529 |
||
1255 | 2530 |
methodsItemMenu |
2531 |
"This resource specification was automatically generated |
|
2532 |
by the MenuEditor of ST/X." |
|
2533 |
||
2534 |
"Do not manually edit this!! If it is corrupted, |
|
2535 |
the MenuEditor may not be able to read the specification." |
|
2536 |
||
2537 |
" |
|
2538 |
MenuEditor new openOnClass:ProjectBrowser andSelector:#menu |
|
2539 |
(Menu new fromLiteralArrayEncoding:(ProjectBrowser menu)) startUp |
|
2540 |
" |
|
2541 |
||
2542 |
<resource: #menu> |
|
2543 |
||
2544 |
^ |
|
2545 |
#(#Menu |
|
1371 | 2546 |
#( |
2547 |
#(#MenuItem |
|
2548 |
#label: 'Validate...' |
|
2549 |
#translateLabel: true |
|
2550 |
#value: #validateAgainstMethodsInImage |
|
2551 |
#enabled: #hasMethodsSelectedHolder |
|
2552 |
) |
|
2553 |
) |
|
2554 |
nil |
|
2555 |
nil |
|
1255 | 2556 |
) |
2557 |
! |
|
2558 |
||
1079 | 2559 |
noItemMenu |
2560 |
"This resource specification was automatically generated |
|
2561 |
by the MenuEditor of ST/X." |
|
2562 |
||
2563 |
"Do not manually edit this!! If it is corrupted, |
|
2564 |
the MenuEditor may not be able to read the specification." |
|
2565 |
||
2566 |
" |
|
2567 |
MenuEditor new openOnClass:ProjectBrowser andSelector:#projectItemMenu |
|
2568 |
(Menu new fromLiteralArrayEncoding:(ProjectBrowser projectItemMenu)) startUp |
|
2569 |
" |
|
2570 |
||
2571 |
<resource: #menu> |
|
2572 |
||
2573 |
^ |
|
2574 |
||
2575 |
#(#Menu |
|
2576 |
||
1371 | 2577 |
#( |
2578 |
#(#MenuItem |
|
2579 |
#label: 'New Project' |
|
2580 |
#translateLabel: true |
|
2581 |
#value: #newProject |
|
2582 |
) |
|
2583 |
) nil |
|
2584 |
nil |
|
1079 | 2585 |
) |
2586 |
! |
|
2587 |
||
1109 | 2588 |
prerequisiteClassesItemMenu |
2589 |
"This resource specification was automatically generated |
|
2590 |
by the MenuEditor of ST/X." |
|
2591 |
||
2592 |
"Do not manually edit this!! If it is corrupted, |
|
2593 |
the MenuEditor may not be able to read the specification." |
|
2594 |
||
2595 |
" |
|
2596 |
MenuEditor new openOnClass:ProjectBrowser andSelector:#prerequisiteClassesItemMenu |
|
2597 |
(Menu new fromLiteralArrayEncoding:(ProjectBrowser prerequisiteClassesItemMenu)) startUp |
|
2598 |
" |
|
2599 |
||
2600 |
<resource: #menu> |
|
2601 |
||
2602 |
^ |
|
2603 |
#(#Menu |
|
1371 | 2604 |
#( |
2605 |
#(#MenuItem |
|
2606 |
#label: 'Update' |
|
2607 |
#translateLabel: true |
|
2608 |
#value: #updateListOfRequiredPrerequisiteClasses |
|
2609 |
#enabled: #hasClassesSelectedHolder |
|
2610 |
) |
|
2611 |
) |
|
2612 |
nil |
|
2613 |
nil |
|
1109 | 2614 |
) |
2615 |
! |
|
2616 |
||
1291 | 2617 |
prerequisitePackagesItemMenu |
2618 |
"This resource specification was automatically generated |
|
2619 |
by the MenuEditor of ST/X." |
|
2620 |
||
2621 |
"Do not manually edit this!! If it is corrupted, |
|
2622 |
the MenuEditor may not be able to read the specification." |
|
2623 |
||
2624 |
" |
|
2625 |
MenuEditor new openOnClass:ProjectBrowser andSelector:#prerequisiteClassesItemMenu |
|
2626 |
(Menu new fromLiteralArrayEncoding:(ProjectBrowser prerequisiteClassesItemMenu)) startUp |
|
2627 |
" |
|
2628 |
||
2629 |
<resource: #menu> |
|
2630 |
||
2631 |
^ |
|
2632 |
#(#Menu |
|
1371 | 2633 |
#( |
2634 |
#(#MenuItem |
|
2635 |
#label: 'Add package...' |
|
2636 |
#translateLabel: true |
|
2637 |
#value: #addPrerequisitePackage |
|
2638 |
) |
|
2639 |
) |
|
2640 |
nil |
|
2641 |
nil |
|
1291 | 2642 |
) |
2643 |
! |
|
2644 |
||
1026 | 2645 |
projectItemMenu |
2646 |
"This resource specification was automatically generated |
|
2647 |
by the MenuEditor of ST/X." |
|
2648 |
||
2649 |
"Do not manually edit this!! If it is corrupted, |
|
2650 |
the MenuEditor may not be able to read the specification." |
|
2651 |
||
2652 |
" |
|
2653 |
MenuEditor new openOnClass:ProjectBrowser andSelector:#projectItemMenu |
|
2654 |
(Menu new fromLiteralArrayEncoding:(ProjectBrowser projectItemMenu)) startUp |
|
2655 |
" |
|
2656 |
||
2657 |
<resource: #menu> |
|
2658 |
||
2659 |
^ |
|
2660 |
||
2661 |
#(#Menu |
|
2662 |
||
1371 | 2663 |
#( |
2664 |
#(#MenuItem |
|
2665 |
#label: 'Load Project' |
|
2666 |
#translateLabel: true |
|
2667 |
#value: #loadProject |
|
2668 |
#enabled: #canLoadCurrentProjectHolder |
|
2669 |
) |
|
2670 |
#(#MenuItem |
|
2671 |
#label: 'Unload Project' |
|
2672 |
#translateLabel: true |
|
2673 |
#value: #unloadProject |
|
2674 |
#enabled: #canUnloadCurrentProjectHolder |
|
2675 |
) |
|
2676 |
#(#MenuItem |
|
2677 |
#label: '-' |
|
2678 |
) |
|
2679 |
#(#MenuItem |
|
2680 |
#label: 'Make Current' |
|
2681 |
#translateLabel: true |
|
2682 |
#value: #makeCurrentProject |
|
2683 |
#enabled: #hasProjectSelectedHolder |
|
2684 |
) |
|
2685 |
#(#MenuItem |
|
2686 |
#label: 'Inspect' |
|
2687 |
#translateLabel: true |
|
2688 |
#value: #inspectCurrentProject |
|
2689 |
#enabled: #hasProjectSelectedHolder |
|
2690 |
) |
|
2691 |
#(#MenuItem |
|
2692 |
#label: '-' |
|
2693 |
) |
|
1267 | 2694 |
"/ #(#MenuItem |
2695 |
"/ #label: 'New SubProject' |
|
2696 |
"/ #translateLabel: true |
|
2697 |
"/ #value: #newSubProject |
|
2698 |
"/ #enabled: #hasProjectSelectedHolder |
|
2699 |
"/ ) |
|
2700 |
"/ #(#MenuItem |
|
2701 |
"/ #label: '-' |
|
2702 |
"/ ) |
|
1371 | 2703 |
#(#MenuItem |
2704 |
#label: 'Rename...' |
|
2705 |
#translateLabel: true |
|
2706 |
#value: #renameProject |
|
2707 |
#enabled: #hasProjectSelectedHolder |
|
2708 |
) |
|
2709 |
#(#MenuItem |
|
2710 |
#label: '-' |
|
2711 |
) |
|
2712 |
#(#MenuItem |
|
2713 |
#label: 'Remove...' |
|
2714 |
#translateLabel: true |
|
2715 |
#value: #removeProject |
|
2716 |
#enabled: #hasProjectSelectedHolder |
|
2717 |
) |
|
2718 |
) nil |
|
2719 |
nil |
|
1026 | 2720 |
) |
1037 | 2721 |
! |
2722 |
||
2723 |
subProjectsItemMenu |
|
2724 |
"This resource specification was automatically generated |
|
2725 |
by the MenuEditor of ST/X." |
|
2726 |
||
2727 |
"Do not manually edit this!! If it is corrupted, |
|
2728 |
the MenuEditor may not be able to read the specification." |
|
2729 |
||
2730 |
" |
|
2731 |
MenuEditor new openOnClass:ProjectBrowser andSelector:#subProjectsItemMenu |
|
2732 |
(Menu new fromLiteralArrayEncoding:(ProjectBrowser subProjectsItemMenu)) startUp |
|
2733 |
" |
|
2734 |
||
2735 |
<resource: #menu> |
|
2736 |
||
2737 |
^ |
|
2738 |
||
2739 |
#(#Menu |
|
2740 |
||
1371 | 2741 |
#( |
2742 |
#(#MenuItem |
|
2743 |
#label: 'New SubProject' |
|
2744 |
#translateLabel: true |
|
2745 |
#value: #newSubProject |
|
2746 |
#enabled: #hasSubProjectsSelectedHolder |
|
2747 |
) |
|
2748 |
) nil |
|
2749 |
nil |
|
1037 | 2750 |
) |
2751 |
! ! |
|
2752 |
||
1095 | 2753 |
!ProjectBrowser class methodsFor:'startup'! |
2754 |
||
2755 |
openOnFile:aFilename |
|
1224
825e6e9fc37f
expand the path to the load project
Claus Gittinger <cg@exept.de>
parents:
1223
diff
changeset
|
2756 |
|project browser nodes theNode| |
1095 | 2757 |
|
2758 |
browser := self new. |
|
2759 |
browser allButOpen. |
|
1224
825e6e9fc37f
expand the path to the load project
Claus Gittinger <cg@exept.de>
parents:
1223
diff
changeset
|
2760 |
project := browser loadFromProjectFile:aFilename. |
1239 | 2761 |
browser expandPathToNodeFor:project. |
1095 | 2762 |
browser openWindow |
2763 |
! ! |
|
2764 |
||
1037 | 2765 |
!ProjectBrowser class methodsFor:'tableColumns specs'! |
2766 |
||
2767 |
classTableColumns |
|
2768 |
"This resource specification was automatically generated |
|
2769 |
by the DataSetBuilder of ST/X." |
|
2770 |
||
2771 |
"Do not manually edit this!! If it is corrupted, |
|
2772 |
the DataSetBuilder may not be able to read the specification." |
|
2773 |
||
2774 |
" |
|
2775 |
DataSetBuilder new openOnClass:ProjectBrowser andSelector:#classTableColumns |
|
2776 |
" |
|
2777 |
||
2778 |
<resource: #tableColumns> |
|
2779 |
||
1235 | 2780 |
^#( |
2781 |
#(#DataSetColumnSpec |
|
1371 | 2782 |
#label: 'Class' |
2783 |
#id: 'classColumn' |
|
2784 |
#labelAlignment: #left |
|
2785 |
#model: #classNameFromClassInfo: |
|
1037 | 2786 |
) |
1235 | 2787 |
#(#DataSetColumnSpec |
1371 | 2788 |
#label: 'Included' |
2789 |
#id: 'inclusion' |
|
2790 |
#width: 150 |
|
2791 |
#editorType: #ComboList |
|
2792 |
#choices: #listOfPossibleConditions: |
|
2793 |
#model: #classIncludeConditionFromClassInfo: |
|
2794 |
#writeSelector: #classIncludeConditionFromClassInfo:put: |
|
1037 | 2795 |
) |
1235 | 2796 |
#(#DataSetColumnSpec |
1371 | 2797 |
#label: 'Filename' |
2798 |
#labelAlignment: #left |
|
2799 |
#minWidth: 200 |
|
2800 |
#model: #classFilenameFromClassInfo: |
|
1037 | 2801 |
) |
1235 | 2802 |
) |
2803 |
||
1043 | 2804 |
! |
2805 |
||
2806 |
patchesTableColumns |
|
2807 |
"This resource specification was automatically generated |
|
2808 |
by the DataSetBuilder of ST/X." |
|
2809 |
||
2810 |
"Do not manually edit this!! If it is corrupted, |
|
2811 |
the DataSetBuilder may not be able to read the specification." |
|
2812 |
||
2813 |
" |
|
2814 |
DataSetBuilder new openOnClass:ProjectBrowser andSelector:#patchesTableColumns |
|
2815 |
" |
|
2816 |
||
2817 |
<resource: #tableColumns> |
|
2818 |
||
1206 | 2819 |
^#( |
2820 |
#(#DataSetColumnSpec |
|
1371 | 2821 |
#label: 'Class' |
2822 |
#id: 'classColumn' |
|
2823 |
#labelAlignment: #left |
|
2824 |
#menu: #patchesMethodMenu |
|
2825 |
#model: #classNameFromMethodInfo: |
|
2826 |
#doubleClickedSelector: #methodPatchDoubleClick: |
|
2827 |
#canSelect: false |
|
1043 | 2828 |
) |
1206 | 2829 |
#(#DataSetColumnSpec |
1371 | 2830 |
#label: 'Selector' |
2831 |
#id: 'selectorColumn' |
|
2832 |
#labelAlignment: #left |
|
2833 |
#model: #selectorFromMethodInfo: |
|
2834 |
#canSelect: false |
|
1043 | 2835 |
) |
1206 | 2836 |
) |
2837 |
||
1025 | 2838 |
! ! |
2839 |
||
1099 | 2840 |
!ProjectBrowser methodsFor:'accessing'! |
2841 |
||
2842 |
selectedTreeNode |
|
2843 |
"automatically generated by UIPainter ..." |
|
2844 |
||
2845 |
^ self selectedTreeNodeHolder value |
|
2846 |
! ! |
|
2847 |
||
1025 | 2848 |
!ProjectBrowser methodsFor:'aspects'! |
2849 |
||
1108 | 2850 |
acceptChannel |
2851 |
|holder| |
|
2852 |
||
2853 |
(holder := builder bindingAt:#acceptChannel) isNil ifTrue:[ |
|
1371 | 2854 |
holder := false asValue. |
2855 |
builder aspectAt:#acceptChannel put:holder. |
|
1108 | 2856 |
]. |
2857 |
^ holder. |
|
2858 |
||
2859 |
"Created: / 23.3.1999 / 14:18:05 / cg" |
|
2860 |
! |
|
2861 |
||
1094 | 2862 |
browseClass |
1206 | 2863 |
|node classOrClassName cls| |
1094 | 2864 |
|
2865 |
self hasClassNodeSelected ifFalse:[^ self]. |
|
2866 |
||
1099 | 2867 |
node := self selectedTreeNode. |
1206 | 2868 |
classOrClassName := node contents value. |
2869 |
classOrClassName isBehavior ifTrue:[ |
|
1371 | 2870 |
cls := classOrClassName. |
1206 | 2871 |
] ifFalse:[ |
1371 | 2872 |
cls := Smalltalk at:classOrClassName. |
1206 | 2873 |
]. |
1094 | 2874 |
cls isNil ifTrue:[ |
1371 | 2875 |
self information:'The class is not (yet) loaded'. |
2876 |
^ self. |
|
1094 | 2877 |
]. |
1206 | 2878 |
cls isLoaded ifFalse:[ |
1371 | 2879 |
self information:'The class is an autoloaded class.'. |
1206 | 2880 |
]. |
1094 | 2881 |
SystemBrowser openInClass:cls selector:nil. |
2882 |
||
2883 |
! |
|
2884 |
||
1109 | 2885 |
canAddSelectedClassToPrerequisites |
2886 |
|holder| |
|
2887 |
||
2888 |
(holder := builder bindingAt:#canAddSelectedClassToPrerequisites) isNil ifTrue:[ |
|
1371 | 2889 |
holder := BlockValue |
2890 |
with:[:m | self canAddClassToPrerequisites:m] |
|
2891 |
argument:(self selectedClassInPrerequisites). |
|
2892 |
builder aspectAt:#canAddSelectedClassToPrerequisites put:holder. |
|
1109 | 2893 |
]. |
2894 |
^ holder. |
|
2895 |
||
2896 |
"Created: / 23.3.1999 / 14:18:05 / cg" |
|
2897 |
! |
|
2898 |
||
1089 | 2899 |
canAddSelectedProjectToPrerequisites |
2900 |
|holder| |
|
2901 |
||
2902 |
(holder := builder bindingAt:#canAddSelectedProjectToPrerequisites) isNil ifTrue:[ |
|
1371 | 2903 |
holder := BlockValue |
2904 |
with:[:m | self canAddProjectToPrerequisites:m] |
|
2905 |
argument:(self selectedProjectInPrerequisites). |
|
2906 |
builder aspectAt:#canAddSelectedProjectToPrerequisites put:holder. |
|
1089 | 2907 |
]. |
2908 |
^ holder. |
|
2909 |
||
2910 |
"Created: / 23.3.1999 / 14:18:05 / cg" |
|
2911 |
! |
|
2912 |
||
1147 | 2913 |
canDeliverBinaryForMacOS |
2914 |
^ OperatingSystem platformName == #macOS |
|
2915 |
! |
|
2916 |
||
2917 |
canDeliverBinaryForUnix |
|
2918 |
^ OperatingSystem platformName == #unix |
|
2919 |
! |
|
2920 |
||
2921 |
canDeliverBinaryForVMS |
|
2922 |
^ OperatingSystem platformName == #vms |
|
2923 |
||
2924 |
! |
|
2925 |
||
2926 |
canDeliverBinaryForWin32 |
|
2927 |
^ OperatingSystem platformName == #win32 |
|
2928 |
! |
|
2929 |
||
2930 |
canDeliverForMacOS |
|
2931 |
|holder| |
|
2932 |
||
2933 |
(holder := builder bindingAt:#canDeliverForMacOS) isNil ifTrue:[ |
|
1371 | 2934 |
holder := BlockValue |
2935 |
with:[:a1 :a2 | a1 or:[a2 not]] |
|
2936 |
arguments:(Array |
|
2937 |
with:self canDeliverBinaryForMacOS |
|
2938 |
with:self deliverCompiledBinary). |
|
2939 |
builder aspectAt:#canDeliverForMacOS put:holder. |
|
1147 | 2940 |
]. |
2941 |
^ holder. |
|
2942 |
! |
|
2943 |
||
2944 |
canDeliverForUnix |
|
2945 |
|holder| |
|
2946 |
||
2947 |
(holder := builder bindingAt:#canDeliverForUnix) isNil ifTrue:[ |
|
1371 | 2948 |
holder := BlockValue |
2949 |
with:[:a1 :a2 | a1 or:[a2 not]] |
|
2950 |
arguments:(Array |
|
2951 |
with:self canDeliverBinaryForUnix |
|
2952 |
with:self deliverCompiledBinary). |
|
2953 |
builder aspectAt:#canDeliverForUnix put:holder. |
|
1147 | 2954 |
]. |
2955 |
^ holder. |
|
2956 |
! |
|
2957 |
||
2958 |
canDeliverForVMS |
|
2959 |
|holder| |
|
2960 |
||
2961 |
(holder := builder bindingAt:#canDeliverForVMS) isNil ifTrue:[ |
|
1371 | 2962 |
holder := BlockValue |
2963 |
with:[:a1 :a2 | a1 or:[a2 not]] |
|
2964 |
arguments:(Array |
|
2965 |
with:self canDeliverBinaryForVMS |
|
2966 |
with:self deliverCompiledBinary). |
|
2967 |
builder aspectAt:#canDeliverForVMS put:holder. |
|
1147 | 2968 |
]. |
2969 |
^ holder. |
|
2970 |
! |
|
2971 |
||
2972 |
canDeliverForWin32 |
|
2973 |
|holder| |
|
2974 |
||
2975 |
(holder := builder bindingAt:#canDeliverForWin32) isNil ifTrue:[ |
|
1371 | 2976 |
holder := BlockValue |
2977 |
with:[:a1 :a2 | a1 or:[a2 not]] |
|
2978 |
arguments:(Array |
|
2979 |
with:self canDeliverBinaryForWin32 |
|
2980 |
with:self deliverCompiledBinary). |
|
2981 |
builder aspectAt:#canDeliverForWin32 put:holder. |
|
1147 | 2982 |
]. |
2983 |
^ holder. |
|
2984 |
! |
|
2985 |
||
1291 | 2986 |
canLoadCurrentProjectHolder |
2987 |
|holder| |
|
2988 |
||
2989 |
(holder := builder bindingAt:#canLoadCurrentProjectHolder) isNil ifTrue:[ |
|
1371 | 2990 |
holder := false asValue. |
2991 |
builder aspectAt:#canLoadCurrentProjectHolder put:holder. |
|
1291 | 2992 |
]. |
2993 |
^ holder. |
|
2994 |
||
2995 |
"Modified: / 26.4.1999 / 22:47:33 / cg" |
|
2996 |
! |
|
2997 |
||
1109 | 2998 |
canRemoveSelectedClassFromPrerequisites |
2999 |
|holder| |
|
3000 |
||
3001 |
(holder := builder bindingAt:#canRemoveSelectedClassFromPrerequisites) isNil ifTrue:[ |
|
1371 | 3002 |
holder := BlockValue with:[:m | m notNil] argument:(self selectedRequiredClassInPrerequisites). |
3003 |
builder aspectAt:#canRemoveSelectedClassFromPrerequisites put:holder. |
|
1109 | 3004 |
]. |
3005 |
^ holder. |
|
3006 |
||
3007 |
"Created: / 23.3.1999 / 14:18:05 / cg" |
|
3008 |
! |
|
3009 |
||
1089 | 3010 |
canRemoveSelectedProjectFromPrerequisites |
3011 |
|holder| |
|
3012 |
||
3013 |
(holder := builder bindingAt:#canRemoveSelectedProjectFromPrerequisites) isNil ifTrue:[ |
|
1371 | 3014 |
holder := BlockValue with:[:m | m notNil] argument:(self selectedRequiredProjectInPrerequisites). |
3015 |
builder aspectAt:#canRemoveSelectedProjectFromPrerequisites put:holder. |
|
1089 | 3016 |
]. |
3017 |
^ holder. |
|
3018 |
||
3019 |
"Created: / 23.3.1999 / 14:18:05 / cg" |
|
3020 |
! |
|
3021 |
||
1291 | 3022 |
canUnloadCurrentProjectHolder |
3023 |
|holder| |
|
3024 |
||
3025 |
(holder := builder bindingAt:#canUnloadCurrentProjectHolder) isNil ifTrue:[ |
|
1371 | 3026 |
holder := false asValue. |
3027 |
builder aspectAt:#canUnloadCurrentProjectHolder put:holder. |
|
1291 | 3028 |
]. |
3029 |
^ holder. |
|
3030 |
||
3031 |
"Modified: / 26.4.1999 / 22:47:33 / cg" |
|
3032 |
! |
|
3033 |
||
1037 | 3034 |
classList |
3035 |
"automatically generated by UIPainter ..." |
|
3036 |
||
3037 |
|holder| |
|
3038 |
||
3039 |
(holder := builder bindingAt:#classList) isNil ifTrue:[ |
|
1371 | 3040 |
builder aspectAt:#classList put:(holder := List new). |
1037 | 3041 |
]. |
3042 |
^ holder. |
|
3043 |
! |
|
3044 |
||
3045 |
classTableAdaptor |
|
3046 |
^ self |
|
3047 |
! |
|
3048 |
||
3049 |
classTableColumns |
|
1038 | 3050 |
^ self class classTableColumns |
1037 | 3051 |
! |
3052 |
||
1025 | 3053 |
currentCanvasHolder |
3054 |
"automatically generated by UIPainter ..." |
|
3055 |
||
3056 |
|holder| |
|
3057 |
||
3058 |
(holder := builder bindingAt:#currentCanvasHolder) isNil ifTrue:[ |
|
1371 | 3059 |
builder aspectAt:#currentCanvasHolder put:(holder := ValueHolder new). |
1025 | 3060 |
]. |
3061 |
^ holder. |
|
3062 |
! |
|
3063 |
||
1080 | 3064 |
currentProjectWasNotLoadedFromFile |
3065 |
"automatically generated by UIPainter ..." |
|
3066 |
||
3067 |
|holder| |
|
3068 |
||
3069 |
(holder := builder bindingAt:#currentProjectWasNotLoadedFromFile) isNil ifTrue:[ |
|
1371 | 3070 |
builder aspectAt:#currentProjectWasNotLoadedFromFile put:(holder := ValueHolder new). |
1080 | 3071 |
]. |
3072 |
^ holder. |
|
3073 |
||
3074 |
"Created: / 23.3.1999 / 14:01:09 / cg" |
|
3075 |
! |
|
3076 |
||
1229 | 3077 |
deliverByteCode |
3078 |
"automatically generated by UIPainter ..." |
|
3079 |
||
3080 |
|holder| |
|
3081 |
||
3082 |
(holder := builder bindingAt:#deliverByteCode) isNil ifTrue:[ |
|
1371 | 3083 |
builder aspectAt:#deliverByteCode put:(holder := ValueHolder new). |
3084 |
holder onChangeEvaluate:[modifiedChannel value:true]. |
|
1229 | 3085 |
]. |
3086 |
^ holder. |
|
3087 |
||
3088 |
"Created: / 23.3.1999 / 14:18:05 / cg" |
|
3089 |
! |
|
3090 |
||
1081 | 3091 |
deliverCompiledBinary |
3092 |
"automatically generated by UIPainter ..." |
|
3093 |
||
3094 |
|holder| |
|
3095 |
||
3096 |
(holder := builder bindingAt:#deliverCompiledBinary) isNil ifTrue:[ |
|
1371 | 3097 |
builder aspectAt:#deliverCompiledBinary put:(holder := ValueHolder new). |
3098 |
holder onChangeEvaluate:[modifiedChannel value:true]. |
|
1081 | 3099 |
]. |
3100 |
^ holder. |
|
3101 |
||
3102 |
"Created: / 23.3.1999 / 14:18:05 / cg" |
|
3103 |
! |
|
3104 |
||
1088 | 3105 |
deliverGZipArchive |
3106 |
"automatically generated by UIPainter ..." |
|
3107 |
||
3108 |
|holder| |
|
3109 |
||
3110 |
(holder := builder bindingAt:#deliverGZipArchive) isNil ifTrue:[ |
|
1371 | 3111 |
builder aspectAt:#deliverGZipArchive put:(holder := ValueHolder new). |
3112 |
holder onChangeEvaluate:[modifiedChannel value:true]. |
|
1088 | 3113 |
]. |
3114 |
^ holder. |
|
3115 |
||
3116 |
"Created: / 23.3.1999 / 14:18:05 / cg" |
|
3117 |
! |
|
3118 |
||
1091 | 3119 |
deliverLoadAllFile |
3120 |
"automatically generated by UIPainter ..." |
|
3121 |
||
3122 |
|holder| |
|
3123 |
||
3124 |
(holder := builder bindingAt:#deliverLoadAllFile) isNil ifTrue:[ |
|
1371 | 3125 |
builder aspectAt:#deliverLoadAllFile put:(holder := ValueHolder new). |
3126 |
holder onChangeEvaluate:[modifiedChannel value:true]. |
|
1091 | 3127 |
]. |
3128 |
^ holder. |
|
3129 |
||
3130 |
"Created: / 23.3.1999 / 14:18:05 / cg" |
|
3131 |
! |
|
3132 |
||
1231 | 3133 |
deliverMakefiles |
3134 |
"automatically generated by UIPainter ..." |
|
3135 |
||
3136 |
|holder| |
|
3137 |
||
3138 |
(holder := builder bindingAt:#deliverMakefiles) isNil ifTrue:[ |
|
1371 | 3139 |
builder aspectAt:#deliverMakefiles put:(holder := ValueHolder new). |
3140 |
holder onChangeEvaluate:[modifiedChannel value:true]. |
|
1231 | 3141 |
]. |
3142 |
^ holder. |
|
3143 |
||
3144 |
"Created: / 23.3.1999 / 14:18:05 / cg" |
|
3145 |
! |
|
3146 |
||
1081 | 3147 |
deliverSources |
3148 |
"automatically generated by UIPainter ..." |
|
3149 |
||
3150 |
|holder| |
|
3151 |
||
3152 |
(holder := builder bindingAt:#deliverSources) isNil ifTrue:[ |
|
1371 | 3153 |
builder aspectAt:#deliverSources put:(holder := ValueHolder new). |
3154 |
holder onChangeEvaluate:[modifiedChannel value:true]. |
|
1081 | 3155 |
]. |
3156 |
^ holder. |
|
3157 |
||
3158 |
"Created: / 23.3.1999 / 14:18:05 / cg" |
|
3159 |
! |
|
3160 |
||
1231 | 3161 |
deliverTarArchive |
3162 |
"automatically generated by UIPainter ..." |
|
3163 |
||
3164 |
|holder| |
|
3165 |
||
3166 |
(holder := builder bindingAt:#deliverTarArchive) isNil ifTrue:[ |
|
1371 | 3167 |
builder aspectAt:#deliverTarArchive put:(holder := ValueHolder new). |
3168 |
holder onChangeEvaluate:[modifiedChannel value:true]. |
|
1231 | 3169 |
]. |
3170 |
^ holder. |
|
3171 |
||
3172 |
"Created: / 23.3.1999 / 14:18:05 / cg" |
|
3173 |
! |
|
3174 |
||
1081 | 3175 |
deliverZipArchive |
3176 |
"automatically generated by UIPainter ..." |
|
3177 |
||
3178 |
|holder| |
|
3179 |
||
3180 |
(holder := builder bindingAt:#deliverZipArchive) isNil ifTrue:[ |
|
1371 | 3181 |
builder aspectAt:#deliverZipArchive put:(holder := ValueHolder new). |
3182 |
holder onChangeEvaluate:[modifiedChannel value:true]. |
|
1081 | 3183 |
]. |
3184 |
^ holder. |
|
3185 |
||
3186 |
"Created: / 23.3.1999 / 14:18:05 / cg" |
|
3187 |
! |
|
3188 |
||
1147 | 3189 |
hasProjectSelectedAndProjectFilenameHolder |
3190 |
^ [ |dir| |
|
3191 |
||
1371 | 3192 |
dir := self projectDirectory value asFilename. |
3193 |
(dir exists and:[dir isDirectory]) ifTrue:[ |
|
3194 |
self hasProjectSelectedHolder value |
|
3195 |
] ifFalse:[ |
|
3196 |
false |
|
3197 |
] |
|
1147 | 3198 |
]. |
3199 |
! |
|
3200 |
||
1218 | 3201 |
hasProjectSelectedAndProjectFilenameHolderAndProjectCodeIsLoaded |
1293 | 3202 |
^ true. |
1218 | 3203 |
^ [ |dir| |
3204 |
||
1371 | 3205 |
dir := self projectDirectory value asFilename. |
3206 |
(dir exists and:[dir isDirectory]) ifTrue:[ |
|
3207 |
(self hasProjectSelectedHolder value) ifTrue:[ |
|
3208 |
self projectCodeIsLoadedHolder value |
|
3209 |
] ifFalse:[ |
|
3210 |
false. |
|
3211 |
] |
|
3212 |
] ifFalse:[ |
|
3213 |
false |
|
3214 |
] |
|
1218 | 3215 |
]. |
3216 |
! |
|
3217 |
||
1026 | 3218 |
hasProjectSelectedHolder |
1116 | 3219 |
|holder| |
3220 |
||
3221 |
(holder := builder bindingAt:#hasProjectSelectedHolder) isNil ifTrue:[ |
|
1371 | 3222 |
holder := false asValue. |
3223 |
builder aspectAt:#hasProjectSelectedHolder put:holder. |
|
1116 | 3224 |
]. |
3225 |
^ holder. |
|
3226 |
||
3227 |
"Modified: / 26.4.1999 / 22:47:33 / cg" |
|
1026 | 3228 |
! |
3229 |
||
1037 | 3230 |
hasSubProjectsSelectedHolder |
3231 |
^ [ |
|
1371 | 3232 |
self hasSubProjectsNodeSelected |
1037 | 3233 |
] |
3234 |
! |
|
3235 |
||
3236 |
htmlDocumentURLHolder |
|
3237 |
"automatically generated by UIPainter ..." |
|
3238 |
||
3239 |
|holder| |
|
3240 |
||
3241 |
(holder := builder bindingAt:#htmlDocumentURLHolder) isNil ifTrue:[ |
|
1371 | 3242 |
builder aspectAt:#htmlDocumentURLHolder put:(holder := ValueHolder new). |
1037 | 3243 |
]. |
3244 |
^ holder. |
|
3245 |
! |
|
3246 |
||
1149 | 3247 |
installDirectoryMacOS |
3248 |
"automatically generated by UIPainter ..." |
|
3249 |
||
3250 |
|holder| |
|
3251 |
||
3252 |
(holder := builder bindingAt:#installDirectoryMacOS) isNil ifTrue:[ |
|
1371 | 3253 |
builder aspectAt:#installDirectoryMacOS put:(holder := '' asValue). |
3254 |
holder onChangeSend:#value to:[modifiedChannel value:true]. |
|
1149 | 3255 |
]. |
3256 |
^ holder. |
|
3257 |
||
3258 |
"Created: / 23.3.1999 / 14:18:05 / cg" |
|
3259 |
! |
|
3260 |
||
1147 | 3261 |
installDirectoryUnix |
1081 | 3262 |
"automatically generated by UIPainter ..." |
3263 |
||
3264 |
|holder| |
|
3265 |
||
1147 | 3266 |
(holder := builder bindingAt:#installDirectoryUnix) isNil ifTrue:[ |
1371 | 3267 |
builder aspectAt:#installDirectoryUnix put:(holder := '/opt/smalltalk' asValue). |
3268 |
holder onChangeEvaluate:[modifiedChannel value:true]. |
|
1147 | 3269 |
]. |
3270 |
^ holder. |
|
3271 |
||
3272 |
"Created: / 23.3.1999 / 14:18:05 / cg" |
|
3273 |
! |
|
3274 |
||
1149 | 3275 |
installDirectoryVMS |
3276 |
"automatically generated by UIPainter ..." |
|
3277 |
||
3278 |
|holder| |
|
3279 |
||
3280 |
(holder := builder bindingAt:#installDirectoryVMS) isNil ifTrue:[ |
|
1371 | 3281 |
builder aspectAt:#installDirectoryVMS put:(holder := '' asValue). |
3282 |
holder onChangeEvaluate:[modifiedChannel value:true]. |
|
1149 | 3283 |
]. |
3284 |
^ holder. |
|
3285 |
||
3286 |
"Created: / 23.3.1999 / 14:18:05 / cg" |
|
3287 |
! |
|
3288 |
||
1147 | 3289 |
installDirectoryWin32 |
3290 |
"automatically generated by UIPainter ..." |
|
3291 |
||
3292 |
|holder| |
|
3293 |
||
3294 |
(holder := builder bindingAt:#installDirectoryWin32) isNil ifTrue:[ |
|
1371 | 3295 |
builder aspectAt:#installDirectoryWin32 put:(holder := '\Programme\SmalltalkX' asValue). |
3296 |
holder onChangeEvaluate:[modifiedChannel value:true]. |
|
1081 | 3297 |
]. |
3298 |
^ holder. |
|
3299 |
||
3300 |
"Created: / 23.3.1999 / 14:18:05 / cg" |
|
3301 |
! |
|
3302 |
||
1109 | 3303 |
listOfAllClassesInPrerequisites |
3304 |
|holder classes| |
|
3305 |
||
3306 |
(holder := builder bindingAt:#listOfAllClassesInPrerequisites) isNil ifTrue:[ |
|
1371 | 3307 |
builder aspectAt:#listOfAllClassesInPrerequisites put:(holder := SortedCollection new asValue). |
3308 |
||
3309 |
"/ all unloaded classes and classes which where |
|
3310 |
"/ loaded are candidates. |
|
3311 |
||
3312 |
classes := Smalltalk allClasses |
|
3313 |
select:[:cls | |
|
3314 |
cls isMeta not |
|
3315 |
and:[ |
|
3316 |
cls isLoaded not |
|
3317 |
or:[cls wasAutoloaded]] |
|
3318 |
]. |
|
3319 |
||
3320 |
"/ mark currently loaded classes as bold; |
|
3321 |
"/ LATER: those which are superclasses of any of my classes bold-red. |
|
3322 |
||
3323 |
classes := classes collect:[:cls | |nm| |
|
3324 |
nm := cls name. |
|
3325 |
cls isLoaded ifTrue:[ |
|
3326 |
nm := nm asText allBold. |
|
3327 |
]. |
|
3328 |
nm |
|
3329 |
]. |
|
3330 |
holder value addAll:classes. |
|
3331 |
self currentProject wasLoadedFromFile ifFalse:[ |
|
3332 |
self updateListOfRequiredPrerequisiteClasses. |
|
3333 |
] |
|
1109 | 3334 |
]. |
3335 |
^ holder. |
|
3336 |
||
3337 |
"Created: / 23.3.1999 / 14:18:05 / cg" |
|
3338 |
! |
|
3339 |
||
1089 | 3340 |
listOfAllProjectsInPrerequisites |
3341 |
"automatically generated by UIPainter ..." |
|
3342 |
||
1091 | 3343 |
|holder projects currentProject| |
1089 | 3344 |
|
3345 |
(holder := builder bindingAt:#listOfAllProjectsInPrerequisites) isNil ifTrue:[ |
|
1371 | 3346 |
builder aspectAt:#listOfAllProjectsInPrerequisites put:(holder := SortedCollection new asValue). |
3347 |
||
3348 |
currentProject := self currentProject. |
|
3349 |
||
3350 |
projects := Set new. |
|
3351 |
Project allInstancesDo:[:p | |
|
3352 |
(p ~~ currentProject |
|
3353 |
and:[p ~~ Project defaultProject]) ifTrue:[ |
|
3354 |
projects add:p name. |
|
3355 |
] |
|
3356 |
]. |
|
3357 |
holder value addAll:projects. |
|
1109 | 3358 |
]. |
3359 |
^ holder. |
|
3360 |
||
3361 |
"Created: / 23.3.1999 / 14:18:05 / cg" |
|
3362 |
! |
|
3363 |
||
1235 | 3364 |
listOfPossibleConditions:aRow |
3365 |
^ #( always never autoload '-' unix win32 vms macos) |
|
3366 |
||
3367 |
||
3368 |
! |
|
3369 |
||
1109 | 3370 |
listOfRequiredClassesInPrerequisites |
3371 |
"automatically generated by UIPainter ..." |
|
3372 |
||
3373 |
|holder| |
|
3374 |
||
3375 |
(holder := builder bindingAt:#listOfRequiredClassesInPrerequisites) isNil ifTrue:[ |
|
1371 | 3376 |
builder aspectAt:#listOfRequiredClassesInPrerequisites put:(holder := SortedCollection new asValue). |
3377 |
self currentProject wasLoadedFromFile ifFalse:[ |
|
3378 |
self updateListOfRequiredPrerequisiteClasses. |
|
3379 |
] |
|
1089 | 3380 |
]. |
3381 |
^ holder. |
|
3382 |
||
3383 |
"Created: / 23.3.1999 / 14:18:05 / cg" |
|
3384 |
! |
|
3385 |
||
3386 |
listOfRequiredProjectsInPrerequisites |
|
3387 |
"automatically generated by UIPainter ..." |
|
3388 |
||
3389 |
|holder| |
|
3390 |
||
3391 |
(holder := builder bindingAt:#listOfRequiredProjectsInPrerequisites) isNil ifTrue:[ |
|
1371 | 3392 |
builder aspectAt:#listOfRequiredProjectsInPrerequisites put:(holder := SortedCollection new asValue). |
1089 | 3393 |
]. |
3394 |
^ holder. |
|
3395 |
||
3396 |
"Created: / 23.3.1999 / 14:18:05 / cg" |
|
3397 |
! |
|
3398 |
||
1234 | 3399 |
makeDefines |
3400 |
"automatically generated by UIPainter ..." |
|
3401 |
||
3402 |
|holder| |
|
3403 |
||
3404 |
(holder := builder bindingAt:#makeDefines) isNil ifTrue:[ |
|
1371 | 3405 |
builder aspectAt:#makeDefines put:(holder := '' asValue). |
3406 |
holder onChangeEvaluate:[modifiedChannel value:true]. |
|
1234 | 3407 |
]. |
3408 |
^ holder. |
|
3409 |
||
3410 |
"Created: / 23.3.1999 / 14:18:05 / cg" |
|
3411 |
! |
|
3412 |
||
3413 |
makeIncludes |
|
3414 |
"automatically generated by UIPainter ..." |
|
3415 |
||
3416 |
|holder| |
|
3417 |
||
3418 |
(holder := builder bindingAt:#makeIncludes) isNil ifTrue:[ |
|
1371 | 3419 |
builder aspectAt:#makeIncludes put:(holder := '' asValue). |
3420 |
holder onChangeEvaluate:[modifiedChannel value:true]. |
|
1234 | 3421 |
]. |
3422 |
^ holder. |
|
3423 |
||
3424 |
"Created: / 23.3.1999 / 14:18:05 / cg" |
|
3425 |
! |
|
3426 |
||
3427 |
makeOtherWarningOptions |
|
3428 |
"automatically generated by UIPainter ..." |
|
3429 |
||
3430 |
|holder| |
|
3431 |
||
3432 |
(holder := builder bindingAt:#makeOtherWarningOptions) isNil ifTrue:[ |
|
1371 | 3433 |
builder aspectAt:#makeOtherWarningOptions put:(holder := '' asValue). |
3434 |
holder onChangeEvaluate:[modifiedChannel value:true]. |
|
1234 | 3435 |
]. |
3436 |
^ holder. |
|
3437 |
||
3438 |
"Created: / 23.3.1999 / 14:18:05 / cg" |
|
3439 |
! |
|
3440 |
||
3441 |
makeWarnEOLComments |
|
3442 |
"automatically generated by UIPainter ..." |
|
3443 |
||
3444 |
|holder| |
|
3445 |
||
3446 |
(holder := builder bindingAt:#makeWarnEOLComments) isNil ifTrue:[ |
|
1371 | 3447 |
builder aspectAt:#makeWarnEOLComments put:(holder := false asValue). |
3448 |
holder onChangeEvaluate:[modifiedChannel value:true]. |
|
1234 | 3449 |
]. |
3450 |
^ holder. |
|
3451 |
||
3452 |
"Created: / 23.3.1999 / 14:18:05 / cg" |
|
3453 |
! |
|
3454 |
||
3455 |
makeWarnNonStandard |
|
3456 |
"automatically generated by UIPainter ..." |
|
3457 |
||
3458 |
|holder| |
|
3459 |
||
3460 |
(holder := builder bindingAt:#makeWarnNonStandard) isNil ifTrue:[ |
|
1371 | 3461 |
builder aspectAt:#makeWarnNonStandard put:(holder := true asValue). |
3462 |
holder onChangeEvaluate:[modifiedChannel value:true]. |
|
1234 | 3463 |
]. |
3464 |
^ holder. |
|
3465 |
||
3466 |
"Created: / 23.3.1999 / 14:18:05 / cg" |
|
3467 |
! |
|
3468 |
||
1218 | 3469 |
methodsFile |
3470 |
"automatically generated by UIPainter ..." |
|
3471 |
||
3472 |
|holder| |
|
3473 |
||
3474 |
(holder := builder bindingAt:#methodsFile) isNil ifTrue:[ |
|
1371 | 3475 |
builder aspectAt:#methodsFile put:(holder := '' asValue). |
3476 |
holder onChangeEvaluate:[modifiedChannel value:true]. |
|
1218 | 3477 |
]. |
3478 |
^ holder. |
|
3479 |
||
3480 |
"Created: / 23.3.1999 / 14:18:05 / cg" |
|
3481 |
! |
|
3482 |
||
1081 | 3483 |
modifiedChannel |
3484 |
"automatically generated by UIPainter ..." |
|
3485 |
||
3486 |
modifiedChannel isNil ifTrue:[ |
|
1371 | 3487 |
modifiedChannel := false asValue. |
1081 | 3488 |
]. |
3489 |
^ modifiedChannel. |
|
3490 |
||
3491 |
! |
|
3492 |
||
1298 | 3493 |
osIsUnix |
3494 |
^ OperatingSystem isUNIXlike |
|
3495 |
||
3496 |
"Created: / 19.1.2000 / 16:45:16 / cg" |
|
3497 |
! |
|
3498 |
||
3499 |
osIsWindows |
|
3500 |
^ OperatingSystem isMSWINDOWSlike |
|
3501 |
||
3502 |
"Created: / 19.1.2000 / 16:37:33 / cg" |
|
3503 |
"Modified: / 19.1.2000 / 16:43:54 / cg" |
|
3504 |
! |
|
3505 |
||
1043 | 3506 |
patchesList |
3507 |
"automatically generated by UIPainter ..." |
|
3508 |
||
3509 |
|holder| |
|
3510 |
||
3511 |
(holder := builder bindingAt:#patchesList) isNil ifTrue:[ |
|
1371 | 3512 |
builder aspectAt:#patchesList put:(holder := List new). |
1043 | 3513 |
]. |
3514 |
^ holder. |
|
3515 |
! |
|
3516 |
||
1292 | 3517 |
projectCodeIsLoadedHolder |
1218 | 3518 |
"automatically generated by UIPainter ..." |
3519 |
||
3520 |
|holder| |
|
3521 |
||
1292 | 3522 |
(holder := builder bindingAt:#projectCodeIsLoadedHolder) isNil ifTrue:[ |
1371 | 3523 |
builder aspectAt:#projectCodeIsLoadedHolder put:(holder := ValueHolder new). |
1218 | 3524 |
]. |
3525 |
^ holder. |
|
3526 |
||
3527 |
"Created: / 23.3.1999 / 14:18:05 / cg" |
|
3528 |
! |
|
3529 |
||
1081 | 3530 |
projectDirectory |
3531 |
"automatically generated by UIPainter ..." |
|
3532 |
||
3533 |
|holder| |
|
3534 |
||
3535 |
(holder := builder bindingAt:#projectDirectory) isNil ifTrue:[ |
|
1371 | 3536 |
builder aspectAt:#projectDirectory put:(holder := '.' asValue). |
3537 |
holder onChangeEvaluate:[modifiedChannel value:true]. |
|
1081 | 3538 |
]. |
3539 |
^ holder. |
|
3540 |
||
3541 |
"Created: / 23.3.1999 / 14:18:05 / cg" |
|
3542 |
! |
|
3543 |
||
1091 | 3544 |
projectNamespace |
3545 |
"automatically generated by UIPainter ..." |
|
3546 |
||
3547 |
|holder| |
|
3548 |
||
3549 |
(holder := builder bindingAt:#projectNamespace) isNil ifTrue:[ |
|
1371 | 3550 |
builder aspectAt:#projectNamespace put:(holder := ValueHolder new). |
3551 |
holder onChangeEvaluate:[modifiedChannel value:true]. |
|
1091 | 3552 |
]. |
3553 |
^ holder. |
|
3554 |
||
3555 |
"Created: / 23.3.1999 / 14:18:05 / cg" |
|
3556 |
! |
|
3557 |
||
1147 | 3558 |
projectPackage |
3559 |
|holder dir module| |
|
3560 |
||
3561 |
(holder := builder bindingAt:#projectPackage) isNil ifTrue:[ |
|
1371 | 3562 |
builder aspectAt:#projectPackage put:(holder := '' asValue). |
1147 | 3563 |
]. |
3564 |
holder value size == 0 ifTrue:[ |
|
1371 | 3565 |
(module := self repositoryModule value) notNil ifTrue:[ |
3566 |
(dir := self repositoryDirectory value) notNil ifTrue:[ |
|
3567 |
holder value:(module , ':' , dir) |
|
3568 |
] |
|
3569 |
] |
|
1147 | 3570 |
]. |
3571 |
^ holder. |
|
3572 |
||
3573 |
"Created: / 23.3.1999 / 14:18:05 / cg" |
|
3574 |
! |
|
3575 |
||
1025 | 3576 |
projectTreeHolder |
3577 |
"automatically generated by UIPainter ..." |
|
3578 |
||
3579 |
|holder| |
|
3580 |
||
3581 |
(holder := builder bindingAt:#projectTree) isNil ifTrue:[ |
|
1371 | 3582 |
builder aspectAt:#projectTree put:(holder := SelectionInTree new). |
3583 |
holder root:self projectTree. |
|
1025 | 3584 |
]. |
3585 |
^ holder. |
|
3586 |
! |
|
3587 |
||
1080 | 3588 |
projectType |
3589 |
"automatically generated by UIPainter ..." |
|
3590 |
||
3591 |
|holder| |
|
3592 |
||
3593 |
(holder := builder bindingAt:#projectType) isNil ifTrue:[ |
|
1371 | 3594 |
builder aspectAt:#projectType put:(holder := ValueHolder new). |
3595 |
holder onChangeEvaluate:[modifiedChannel value:true]. |
|
1080 | 3596 |
]. |
3597 |
^ holder. |
|
3598 |
||
3599 |
"Created: / 23.3.1999 / 14:18:05 / cg" |
|
3600 |
! |
|
3601 |
||
1088 | 3602 |
repositoryDirectory |
3603 |
"automatically generated by UIPainter ..." |
|
3604 |
||
3605 |
|holder| |
|
3606 |
||
3607 |
(holder := builder bindingAt:#repositoryDirectory) isNil ifTrue:[ |
|
1371 | 3608 |
builder aspectAt:#repositoryDirectory put:(holder := ValueHolder new). |
3609 |
holder onChangeEvaluate:[modifiedChannel value:true]. |
|
1088 | 3610 |
]. |
3611 |
^ holder. |
|
3612 |
||
3613 |
"Created: / 23.3.1999 / 14:18:05 / cg" |
|
3614 |
! |
|
3615 |
||
3616 |
repositoryModule |
|
3617 |
"automatically generated by UIPainter ..." |
|
3618 |
||
3619 |
|holder| |
|
3620 |
||
3621 |
(holder := builder bindingAt:#repositoryModule) isNil ifTrue:[ |
|
1371 | 3622 |
builder aspectAt:#repositoryModule put:(holder := ValueHolder new). |
3623 |
holder onChangeEvaluate:[modifiedChannel value:true]. |
|
1088 | 3624 |
]. |
3625 |
^ holder. |
|
3626 |
||
3627 |
"Created: / 23.3.1999 / 14:18:05 / cg" |
|
3628 |
! |
|
3629 |
||
1025 | 3630 |
rightCanvasTextHolder |
3631 |
"automatically generated by UIPainter ..." |
|
3632 |
||
3633 |
|holder| |
|
3634 |
||
3635 |
(holder := builder bindingAt:#rightCanvasTextHolder) isNil ifTrue:[ |
|
1371 | 3636 |
builder aspectAt:#rightCanvasTextHolder put:(holder := ValueHolder new). |
1025 | 3637 |
]. |
3638 |
^ holder. |
|
3639 |
! |
|
3640 |
||
1109 | 3641 |
selectedClassInPrerequisites |
3642 |
"automatically generated by UIPainter ..." |
|
3643 |
||
3644 |
|holder| |
|
3645 |
||
3646 |
(holder := builder bindingAt:#selectedClassInPrerequisites) isNil ifTrue:[ |
|
1371 | 3647 |
builder aspectAt:#selectedClassInPrerequisites put:(holder := ValueHolder new). |
1109 | 3648 |
]. |
3649 |
^ holder. |
|
3650 |
||
3651 |
"Created: / 23.3.1999 / 14:18:05 / cg" |
|
3652 |
! |
|
3653 |
||
1218 | 3654 |
selectedPatchInRightCanvas |
1206 | 3655 |
"automatically generated by UIPainter ..." |
3656 |
||
3657 |
|holder| |
|
3658 |
||
1218 | 3659 |
(holder := builder bindingAt:#selectedPatchInRightCanvas) isNil ifTrue:[ |
1371 | 3660 |
builder aspectAt:#selectedPatchInRightCanvas put:(holder := ValueHolder new). |
1206 | 3661 |
]. |
3662 |
^ holder. |
|
3663 |
! |
|
3664 |
||
1089 | 3665 |
selectedProjectInPrerequisites |
3666 |
"automatically generated by UIPainter ..." |
|
3667 |
||
3668 |
|holder| |
|
3669 |
||
3670 |
(holder := builder bindingAt:#selectedProjectInPrerequisites) isNil ifTrue:[ |
|
1371 | 3671 |
builder aspectAt:#selectedProjectInPrerequisites put:(holder := ValueHolder new). |
1089 | 3672 |
]. |
3673 |
^ holder. |
|
3674 |
||
3675 |
"Created: / 23.3.1999 / 14:18:05 / cg" |
|
3676 |
! |
|
3677 |
||
1109 | 3678 |
selectedRequiredClassInPrerequisites |
3679 |
"automatically generated by UIPainter ..." |
|
3680 |
||
3681 |
|holder| |
|
3682 |
||
3683 |
(holder := builder bindingAt:#selectedRequiredClassInPrerequisites) isNil ifTrue:[ |
|
1371 | 3684 |
builder aspectAt:#selectedRequiredClassInPrerequisites put:(holder := ValueHolder new). |
1109 | 3685 |
]. |
3686 |
^ holder. |
|
3687 |
||
3688 |
"Created: / 23.3.1999 / 14:18:05 / cg" |
|
3689 |
! |
|
3690 |
||
1089 | 3691 |
selectedRequiredProjectInPrerequisites |
3692 |
"automatically generated by UIPainter ..." |
|
3693 |
||
3694 |
|holder| |
|
3695 |
||
3696 |
(holder := builder bindingAt:#selectedRequiredProjectInPrerequisites) isNil ifTrue:[ |
|
1371 | 3697 |
builder aspectAt:#selectedRequiredProjectInPrerequisites put:(holder := ValueHolder new). |
1089 | 3698 |
]. |
3699 |
^ holder. |
|
3700 |
||
3701 |
"Created: / 23.3.1999 / 14:18:05 / cg" |
|
3702 |
! |
|
3703 |
||
1099 | 3704 |
selectedTreeNodeHolder |
1025 | 3705 |
"automatically generated by UIPainter ..." |
3706 |
||
1210 | 3707 |
selectedTreeNodeHolder isNil ifTrue:[ |
1371 | 3708 |
selectedTreeNodeHolder := ValueHolder new. |
1025 | 3709 |
]. |
1210 | 3710 |
^ selectedTreeNodeHolder. |
1206 | 3711 |
! |
3712 |
||
3713 |
showWhat |
|
3714 |
|holder| |
|
3715 |
||
3716 |
(holder := builder bindingAt:#showWhat) isNil ifTrue:[ |
|
1371 | 3717 |
holder := ValueHolder new. |
3718 |
builder aspectAt:#showWhat put:holder. |
|
3719 |
holder onChangeSend:#projectFilterChanged to:self. |
|
1206 | 3720 |
]. |
3721 |
^ holder. |
|
3722 |
||
3723 |
"Created: / 23.3.1999 / 14:18:05 / cg" |
|
1232 | 3724 |
! |
3725 |
||
3726 |
textCanvasLabelHolder |
|
3727 |
"automatically generated by UIPainter ..." |
|
3728 |
||
3729 |
|holder| |
|
3730 |
||
3731 |
(holder := builder bindingAt:#textCanvasLabelHolder) isNil ifTrue:[ |
|
1371 | 3732 |
builder aspectAt:#textCanvasLabelHolder put:(holder :='' asValue). |
1232 | 3733 |
]. |
3734 |
^ holder. |
|
1025 | 3735 |
! ! |
3736 |
||
1081 | 3737 |
!ProjectBrowser methodsFor:'change & update'! |
3738 |
||
3739 |
update:something with:aParameter from:changedObject |
|
1254 | 3740 |
|cls sel oldMthd newMthd prj package| |
3741 |
||
1085 | 3742 |
something == #name ifTrue:[ |
1371 | 3743 |
"/ a project was renamed - update my tree |
3744 |
self projectTree children do:[:pNode | |
|
3745 |
pNode contents == changedObject ifTrue:[ |
|
3746 |
pNode name:changedObject name. |
|
3747 |
pNode changed. |
|
3748 |
] |
|
3749 |
]. |
|
3750 |
^ self. |
|
1085 | 3751 |
]. |
3752 |
||
1254 | 3753 |
prj := self currentProject. |
3754 |
prj isNil ifTrue:[^ self]. |
|
3755 |
||
3756 |
package := prj package. |
|
3757 |
||
3758 |
changedObject == prj ifTrue:[ |
|
1371 | 3759 |
self readAspectsFromProject. |
1081 | 3760 |
]. |
1116 | 3761 |
|
1254 | 3762 |
changedObject == Smalltalk ifTrue:[ |
1371 | 3763 |
something == #newClass ifTrue:[ |
3764 |
aParameter isBehavior ifTrue:[ |
|
3765 |
aParameter wasAutoloaded ifTrue:[ |
|
3766 |
self listOfAllClassesInPrerequisites add:something name. |
|
3767 |
^ self. |
|
3768 |
]. |
|
3769 |
aParameter package = package ifTrue:[ |
|
3770 |
"/ a new class was added to the package; |
|
3771 |
"/ must look if already there, and possibly update my |
|
3772 |
"/ tree and classList |
|
3773 |
(self currentProject includesClass:aParameter) ifFalse:[ |
|
3774 |
self halt. |
|
3775 |
]. |
|
3776 |
^ self. |
|
3777 |
] |
|
3778 |
] |
|
3779 |
]. |
|
3780 |
||
3781 |
something == #methodInClass ifTrue:[ |
|
3782 |
cls := aParameter first. |
|
3783 |
sel := aParameter second. |
|
3784 |
oldMthd := aParameter third. |
|
3785 |
newMthd := cls compiledMethodAt:sel. |
|
3786 |
||
3787 |
cls package ~= package ifTrue:[ |
|
3788 |
"/ method removed from project ? |
|
3789 |
(oldMthd notNil and:[oldMthd package = package]) ifTrue:[ |
|
3790 |
(newMthd notNil and:[newMthd package ~= package]) ifTrue:[ |
|
3791 |
"/ remove from methodList |
|
3792 |
] |
|
3793 |
]. |
|
3794 |
||
3795 |
"/ method added to project ? |
|
3796 |
(oldMthd isNil or:[oldMthd package ~= package]) ifTrue:[ |
|
3797 |
(newMthd notNil and:[newMthd package = package]) ifTrue:[ |
|
3798 |
"/ add to methodList |
|
3799 |
] |
|
3800 |
] |
|
3801 |
] |
|
3802 |
]. |
|
1254 | 3803 |
]. |
3804 |
||
1116 | 3805 |
"Modified: / 26.4.1999 / 23:39:04 / cg" |
1081 | 3806 |
! ! |
3807 |
||
1025 | 3808 |
!ProjectBrowser methodsFor:'initialization'! |
3809 |
||
1254 | 3810 |
closeDownViews |
3811 |
Smalltalk removeDependent:self. |
|
3812 |
super closeDownViews. |
|
3813 |
! |
|
3814 |
||
1025 | 3815 |
postBuildWith:aBuiler |
1254 | 3816 |
Smalltalk addDependent:self. |
1081 | 3817 |
self modifiedChannel value:false. |
3818 |
||
1095 | 3819 |
self updateRightCanvas. |
1026 | 3820 |
^ super postBuildWith:aBuiler |
1025 | 3821 |
! |
3822 |
||
3823 |
setupCanvasForNoSelection |
|
1079 | 3824 |
self |
1371 | 3825 |
showReadOnlyText:'Please select an existing project, |
1079 | 3826 |
load one from a (''.prj'')-file, |
1025 | 3827 |
or create a new project.'. |
3828 |
! ! |
|
3829 |
||
1026 | 3830 |
!ProjectBrowser methodsFor:'menus'! |
3831 |
||
3832 |
itemMenu |
|
1052 | 3833 |
|m| |
3834 |
||
1088 | 3835 |
self hasNodeSelected ifFalse:[ |
1371 | 3836 |
^ self class noItemMenu |
1088 | 3837 |
]. |
1026 | 3838 |
self hasProjectNodeSelected ifTrue:[ |
1371 | 3839 |
^ self class projectItemMenu |
1026 | 3840 |
]. |
1037 | 3841 |
self hasSubProjectsNodeSelected ifTrue:[ |
1371 | 3842 |
^ self class subProjectsItemMenu |
1037 | 3843 |
]. |
1052 | 3844 |
self hasClassesNodeSelected ifTrue:[ |
1371 | 3845 |
^ self class classesItemMenu |
1052 | 3846 |
]. |
1094 | 3847 |
self hasClassNodeSelected ifTrue:[ |
1371 | 3848 |
^ self class classItemMenu |
1094 | 3849 |
]. |
1218 | 3850 |
self hasMethodNodeSelected ifTrue:[ |
1371 | 3851 |
^ self class methodItemMenu |
1218 | 3852 |
]. |
1255 | 3853 |
self hasPatchesNodeSelected ifTrue:[ |
1371 | 3854 |
^ self class methodsItemMenu |
1255 | 3855 |
]. |
1109 | 3856 |
self hasPrerequisiteClassesNodeSelected ifTrue:[ |
1371 | 3857 |
^ self class prerequisiteClassesItemMenu |
1109 | 3858 |
]. |
1291 | 3859 |
self hasPrerequisitePackagesNodeSelected ifTrue:[ |
1371 | 3860 |
^ self class prerequisitePackagesItemMenu |
1291 | 3861 |
]. |
1088 | 3862 |
^ nil |
1026 | 3863 |
! |
3864 |
||
3865 |
itemMenuHolder |
|
3866 |
^ [ self itemMenu] |
|
1037 | 3867 |
! |
3868 |
||
3869 |
itemMenuPerformer |
|
3870 |
^ self |
|
1026 | 3871 |
! ! |
3872 |
||
1025 | 3873 |
!ProjectBrowser methodsFor:'private'! |
3874 |
||
1218 | 3875 |
addProjectNodeToTree:newNode |
3876 |
|aProject nodeToAdd path childNode| |
|
3877 |
||
3878 |
"/ projectTree add:newNode. |
|
3879 |
||
3880 |
"/ insert into tree ... |
|
3881 |
nodeToAdd := projectTree. |
|
3882 |
||
3883 |
path := newNode contents package asCollectionOfSubstringsSeparatedByAny:'/\:'. |
|
3884 |
path from:1 to:path size-1 do:[:part | |
|
1371 | 3885 |
childNode := nodeToAdd children detect:[:child | child name = part] ifNone:nil. |
3886 |
childNode isNil ifTrue:[ |
|
3887 |
nodeToAdd add:(childNode := ProjectTreeItem new name:part). |
|
3888 |
]. |
|
3889 |
nodeToAdd := childNode. |
|
1218 | 3890 |
]. |
3891 |
newNode name:(path last). |
|
3892 |
nodeToAdd add:newNode. |
|
3893 |
||
3894 |
! |
|
3895 |
||
1109 | 3896 |
canAddClassToPrerequisites:aClassName |
3897 |
^ aClassName notNil |
|
3898 |
! |
|
3899 |
||
3900 |
canAddProjectToPrerequisites:aProjectName |
|
1091 | 3901 |
^ aProjectName notNil |
3902 |
and:[aProjectName ~= self currentProject name] |
|
3903 |
! |
|
3904 |
||
1094 | 3905 |
canLoadClassesFromDirectory |
3906 |
|p projectDir| |
|
3907 |
||
3908 |
self hasClassesNodeSelected ifFalse:[^ false]. |
|
3909 |
||
3910 |
(p := self currentProject) isNil ifTrue:[^ false]. |
|
3911 |
(projectDir := p directory) size == 0 ifTrue:[^ false]. |
|
3912 |
projectDir asFilename exists ifFalse:[^ false]. |
|
3913 |
||
3914 |
^ true |
|
3915 |
! |
|
3916 |
||
3917 |
canLoadClassesFromRepository |
|
3918 |
|manager p moduleDir packageDir| |
|
3919 |
||
3920 |
self hasClassesNodeSelected ifFalse:[^ false]. |
|
3921 |
||
3922 |
(p := self currentProject) isNil ifTrue:[^ false]. |
|
3923 |
(moduleDir := p repositoryModule) size == 0 ifTrue:[^ false]. |
|
3924 |
(packageDir := p repositoryDirectory) size == 0 ifTrue:[^ false]. |
|
3925 |
||
3926 |
"/ SourceCodeManager available ? |
|
3927 |
||
3928 |
(AbstractSourceCodeManager notNil |
|
3929 |
and:[AbstractSourceCodeManager isLoaded not]) ifTrue:[ |
|
1371 | 3930 |
AbstractSourceCodeManager autoload. |
1094 | 3931 |
]. |
3932 |
||
3933 |
AbstractSourceCodeManager isNil ifTrue:[^ false]. |
|
3934 |
AbstractSourceCodeManager isLoaded ifFalse:[^ false]. |
|
3935 |
(manager := Smalltalk at:#SourceCodeManager) isNil ifTrue:[^ false]. |
|
3936 |
||
3937 |
"/ does the repository contain the module/package ? |
|
1147 | 3938 |
"/ since this is a slow operation (involving the CVS manager, |
3939 |
"/ remember checked modules here in a classVar |
|
3940 |
AlreadCheckedExistingModulesAndPackages isNil ifTrue:[ |
|
1371 | 3941 |
AlreadCheckedExistingModulesAndPackages := OrderedCollection new |
1147 | 3942 |
]. |
3943 |
AlreadCheckedExistingModulesAndPackages do:[:entry | |
|
1371 | 3944 |
(entry at:1) = moduleDir ifTrue:[ |
3945 |
(entry at:2) = packageDir ifTrue:[ |
|
3946 |
^ true |
|
3947 |
] |
|
3948 |
] |
|
1147 | 3949 |
]. |
1094 | 3950 |
|
3951 |
(manager checkForExistingModule:moduleDir package:packageDir) ifFalse:[^ false]. |
|
3952 |
||
1147 | 3953 |
AlreadCheckedExistingModulesAndPackages add:(Array with:moduleDir with:packageDir). |
1094 | 3954 |
^ true |
3955 |
! |
|
3956 |
||
1291 | 3957 |
canLoadCurrentProject |
3958 |
|prj| |
|
3959 |
||
3960 |
self hasProjectSelected ifFalse:[^ false]. |
|
3961 |
(prj := self currentProject) isNil ifTrue:[^ self]. |
|
3962 |
^ prj isLoaded not |
|
3963 |
||
3964 |
! |
|
3965 |
||
3966 |
canUnloadCurrentProject |
|
3967 |
|prj| |
|
3968 |
||
3969 |
self hasProjectSelected ifFalse:[^ false]. |
|
3970 |
(prj := self currentProject) isNil ifTrue:[^ self]. |
|
3971 |
^ prj isLoaded |
|
3972 |
||
3973 |
! |
|
3974 |
||
1289 | 3975 |
checkInClasses:aCollectionOfClasses |
3976 |
|logMessage| |
|
3977 |
||
3978 |
logMessage := SourceCodeManagerUtilities getLogMessageFor:'classes in project'. |
|
3979 |
SourceCodeManagerUtilities checkinClasses:aCollectionOfClasses withLog:logMessage. |
|
3980 |
! |
|
3981 |
||
1081 | 3982 |
currentProject |
3983 |
|node| |
|
3984 |
||
1218 | 3985 |
node := self currentProjectNode. |
3986 |
node isNil ifTrue:[^ nil]. |
|
3987 |
^ node contents |
|
3988 |
||
3989 |
! |
|
3990 |
||
3991 |
currentProjectNode |
|
3992 |
|node| |
|
3993 |
||
1099 | 3994 |
node := self selectedTreeNode. |
1081 | 3995 |
node isNil ifTrue:[^ nil]. |
3996 |
||
3997 |
[node notNil and:[node isProjectNode not]] whileTrue:[ |
|
1371 | 3998 |
node := node parent. |
1081 | 3999 |
]. |
4000 |
node notNil ifTrue:[ |
|
1371 | 4001 |
^ node |
1081 | 4002 |
]. |
4003 |
^ nil |
|
4004 |
||
4005 |
! |
|
4006 |
||
1109 | 4007 |
currentProjectsClassNames |
4008 |
|p| |
|
4009 |
||
4010 |
p := self currentProject. |
|
1253 | 4011 |
^ p classes |
1371 | 4012 |
collect:[:classOrSymbol | |
4013 |
classOrSymbol isBehavior ifTrue:[ |
|
4014 |
classOrSymbol name |
|
4015 |
] ifFalse:[ |
|
4016 |
classOrSymbol |
|
4017 |
] |
|
4018 |
] |
|
1109 | 4019 |
|
4020 |
! |
|
4021 |
||
1239 | 4022 |
expandPathToNodeFor:someContents |
4023 |
|theNode| |
|
4024 |
||
4025 |
theNode := self projectTreeHolder |
|
1371 | 4026 |
detectFirstItem:[:item | item contents == someContents]. |
1239 | 4027 |
|
4028 |
[theNode notNil] whileTrue:[ |
|
1371 | 4029 |
self projectTreeHolder expand:theNode. |
4030 |
theNode := theNode parent. |
|
1239 | 4031 |
]. |
4032 |
||
4033 |
||
4034 |
||
4035 |
! |
|
4036 |
||
1094 | 4037 |
hasClassNodeSelected |
4038 |
|selectedNode| |
|
4039 |
||
1099 | 4040 |
selectedNode := self selectedTreeNode. |
1094 | 4041 |
selectedNode isNil ifTrue:[^ false]. |
4042 |
||
4043 |
^ selectedNode contents isAssociation |
|
4044 |
and:[selectedNode contents key == #class] |
|
4045 |
||
4046 |
! |
|
4047 |
||
1052 | 4048 |
hasClassesNodeSelected |
1255 | 4049 |
^ self hasNodeSelected:#classes. |
1052 | 4050 |
|
4051 |
! |
|
4052 |
||
1218 | 4053 |
hasMethodNodeSelected |
4054 |
|selectedNode| |
|
4055 |
||
4056 |
selectedNode := self selectedTreeNode. |
|
4057 |
selectedNode isNil ifTrue:[^ false]. |
|
4058 |
||
4059 |
^ selectedNode contents isAssociation |
|
4060 |
and:[selectedNode contents key == #method] |
|
4061 |
||
4062 |
! |
|
4063 |
||
1255 | 4064 |
hasNodeSelected |
4065 |
^ self selectedTreeNode notNil |
|
4066 |
||
4067 |
! |
|
4068 |
||
4069 |
hasNodeSelected:type |
|
1218 | 4070 |
|selectedNode| |
4071 |
||
4072 |
selectedNode := self selectedTreeNode. |
|
4073 |
selectedNode isNil ifTrue:[^ false]. |
|
4074 |
||
1255 | 4075 |
^ selectedNode contents == type |
4076 |
||
4077 |
! |
|
4078 |
||
4079 |
hasPatchesNodeSelected |
|
4080 |
^ self hasNodeSelected:#patches. |
|
1088 | 4081 |
|
4082 |
! |
|
4083 |
||
1109 | 4084 |
hasPrerequisiteClassesNodeSelected |
1255 | 4085 |
^ self hasNodeSelected:#prerequisiteClasses. |
1109 | 4086 |
! |
4087 |
||
1291 | 4088 |
hasPrerequisitePackagesNodeSelected |
4089 |
^ self hasNodeSelected:#prerequisitePackages. |
|
4090 |
! |
|
4091 |
||
1327 | 4092 |
hasPrerequisitesNodeSelected |
4093 |
^ self hasNodeSelected:#prerequisites. |
|
4094 |
||
4095 |
! |
|
4096 |
||
1026 | 4097 |
hasProjectNodeSelected |
4098 |
|selectedNode| |
|
4099 |
||
1099 | 4100 |
selectedNode := self selectedTreeNode. |
1026 | 4101 |
selectedNode isNil ifTrue:[^ false]. |
4102 |
||
4103 |
^ selectedNode isProjectNode |
|
4104 |
||
4105 |
! |
|
4106 |
||
1218 | 4107 |
hasProjectSelected |
4108 |
|selectedNode node| |
|
4109 |
||
4110 |
selectedNode := self selectedTreeNode. |
|
4111 |
selectedNode isNil ifTrue:[^ false]. |
|
4112 |
||
4113 |
node := selectedNode. |
|
4114 |
[node notNil] whileTrue:[ |
|
1371 | 4115 |
node isProjectNode ifTrue:[^ true]. |
4116 |
node := node parent. |
|
1218 | 4117 |
]. |
4118 |
^ false. |
|
4119 |
! |
|
4120 |
||
1037 | 4121 |
hasSubProjectsNodeSelected |
1255 | 4122 |
^ self hasNodeSelected:#subprojects. |
1037 | 4123 |
|
4124 |
! |
|
4125 |
||
1251 | 4126 |
makeTranscriptVisible |
4127 |
|transcript| |
|
4128 |
||
4129 |
transcript := self transcript. |
|
4130 |
||
4131 |
(transcript relativeCorner y - transcript relativeOrigin y) < 0.1 ifTrue:[ |
|
1371 | 4132 |
(self builder componentAt:#VariableVerticalPanel1) |
4133 |
resizeSubViewsTo:#(0.7 0.3) |
|
1251 | 4134 |
]. |
4135 |
||
4136 |
||
4137 |
||
4138 |
! |
|
4139 |
||
1025 | 4140 |
nodeFor:aProject |
1026 | 4141 |
"generate and return a treeNode for some project" |
4142 |
||
1025 | 4143 |
|projectName pNode |
1043 | 4144 |
propertiesNode docNode classesNode patchesNode subprojectsNode filesNode |
4145 |
commentNode prerequisitesNode analysisNode designNode codeNode |
|
1079 | 4146 |
userDocNode userOverViewNode userGuideNode userRefManNode |
1234 | 4147 |
deploymentNode classIcon methodIcon buildOptionsNode |
1291 | 4148 |
prerequisitePackagesNode prerequisiteClassesNode| |
1025 | 4149 |
|
4150 |
projectName := aProject name. |
|
1026 | 4151 |
pNode := ProjectNode name:projectName. |
1025 | 4152 |
pNode contents:aProject. |
4153 |
||
4154 |
pNode add:(commentNode := ProjectTreeItem name:'Comment'). |
|
1079 | 4155 |
"/ pNode add:(docNode := ProjectTreeItem name:'Documentation'). |
1025 | 4156 |
pNode add:(propertiesNode := ProjectTreeItem name:'Properties'). |
1026 | 4157 |
pNode add:(prerequisitesNode := ProjectTreeItem name:'Prerequisites'). |
1079 | 4158 |
"/ pNode add:(subprojectsNode := ProjectTreeItem name:'SubProjects'). |
1043 | 4159 |
pNode add:(classesNode := ProjectTreeItem name:'Classes'). |
1327 | 4160 |
pNode add:(patchesNode := ProjectTreeItem name:'Patches & Extensions'). |
1025 | 4161 |
pNode add:(filesNode := ProjectTreeItem name:'Files'). |
1234 | 4162 |
pNode add:(buildOptionsNode := ProjectTreeItem name:'Build Options'). |
1079 | 4163 |
pNode add:(deploymentNode := ProjectTreeItem name:'Deployment'). |
1025 | 4164 |
|
1079 | 4165 |
subprojectsNode notNil ifTrue:[ |
1371 | 4166 |
subprojectsNode contents:#subprojects. |
4167 |
aProject subProjects do:[:aSubProject | |
|
4168 |
subprojectsNode add:(self nodeFor:aSubProject) |
|
4169 |
]. |
|
1025 | 4170 |
]. |
4171 |
||
1079 | 4172 |
commentNode icon:(self class commentIcon). |
1025 | 4173 |
commentNode action:[:item | self showCommentOf:item]. |
1109 | 4174 |
commentNode info:'Some comment describing the project'. |
1026 | 4175 |
commentNode contents:#comment. |
4176 |
||
1079 | 4177 |
docNode notNil ifTrue:[ |
1371 | 4178 |
docNode contents:#documentation. |
4179 |
docNode action:[:item | self showDocumentationFor:item]. |
|
4180 |
||
4181 |
docNode add:(analysisNode := ProjectTreeItem name:'Analysis'). |
|
4182 |
docNode add:(designNode := ProjectTreeItem name:'Design'). |
|
4183 |
docNode add:(codeNode := ProjectTreeItem name:'Code'). |
|
4184 |
docNode add:(userDocNode := ProjectTreeItem name:'User Documentation'). |
|
4185 |
userDocNode add:(userOverViewNode := ProjectTreeItem name:'Overview'). |
|
4186 |
userDocNode add:(userGuideNode := ProjectTreeItem name:'Guide'). |
|
4187 |
userDocNode add:(userRefManNode := ProjectTreeItem name:'Reference'). |
|
4188 |
docNode add:(userDocNode := ProjectTreeItem name:'Error Reports'). |
|
4189 |
docNode add:(userDocNode := ProjectTreeItem name:'Other'). |
|
1079 | 4190 |
]. |
1043 | 4191 |
|
1327 | 4192 |
prerequisitesNode contents:#prerequisites. |
1080 | 4193 |
prerequisitesNode icon:(self class prerequisitesIcon). |
1291 | 4194 |
prerequisitesNode add:(prerequisitePackagesNode := ProjectTreeItem name:'Packages'). |
1109 | 4195 |
prerequisitesNode add:(prerequisiteClassesNode := ProjectTreeItem name:'Classes'). |
4196 |
prerequisitesNode info:'Other projects and classes required by the project'. |
|
4197 |
||
1291 | 4198 |
prerequisitePackagesNode contents:#prerequisitePackages. |
4199 |
prerequisitePackagesNode icon:(self class prerequisitePackagesIcon). |
|
4200 |
prerequisitePackagesNode spec:[self class rightCanvasSpecForPrerequisitePackages]. |
|
4201 |
prerequisitePackagesNode info:'Other projects required by the project'. |
|
1109 | 4202 |
|
4203 |
prerequisiteClassesNode contents:#prerequisiteClasses. |
|
4204 |
prerequisiteClassesNode icon:(self class prerequisiteClassesIcon). |
|
4205 |
prerequisiteClassesNode spec:[self class rightCanvasSpecForPrerequisiteClasses]. |
|
4206 |
prerequisiteClassesNode info:'Other (autoloaded-) classes required by the project'. |
|
1043 | 4207 |
|
1097 | 4208 |
classIcon := self class classIcon. |
4209 |
||
1037 | 4210 |
classesNode contents:#classes. |
1079 | 4211 |
classesNode icon:(self class classesIcon). |
1109 | 4212 |
classesNode info:'Classes contained in the project'. |
1253 | 4213 |
(aProject classes copy |
1371 | 4214 |
sort:[:a :b | |
4215 |
|nmA nmB| |
|
4216 |
||
4217 |
nmA := a isBehavior ifTrue:[a name] ifFalse:[a]. |
|
4218 |
nmB := b isBehavior ifTrue:[b name] ifFalse:[b]. |
|
4219 |
nmA < nmB |
|
4220 |
] |
|
1253 | 4221 |
) do:[:aClass | |
1371 | 4222 |
|cNode cName| |
4223 |
||
4224 |
cName := aClass isBehavior ifTrue:[aClass name] ifFalse:[aClass]. |
|
4225 |
cNode := ProjectTreeItem name:cName. |
|
4226 |
cNode contents:(#class -> aClass). |
|
4227 |
cNode icon:classIcon. |
|
4228 |
classesNode add:cNode. |
|
1043 | 4229 |
]. |
1026 | 4230 |
|
1109 | 4231 |
|
1026 | 4232 |
propertiesNode contents:#properties. |
1091 | 4233 |
propertiesNode spec:[self class rightCanvasSpecForProperties]. |
1109 | 4234 |
propertiesNode info:'Project propreties'. |
1026 | 4235 |
|
4236 |
filesNode contents:#files. |
|
1079 | 4237 |
filesNode icon:(self class filesIcon). |
1223 | 4238 |
filesNode info:'Files (extensions, bitmaps, data) contained in the project'. |
1218 | 4239 |
filesNode spec:[self class rightCanvasSpecForFiles]. |
4240 |
||
4241 |
methodIcon := self class methodIcon. |
|
1025 | 4242 |
|
1043 | 4243 |
patchesNode contents:#patches. |
1079 | 4244 |
patchesNode icon:(self class methodsIcon). |
1223 | 4245 |
patchesNode info:'Patches & Extensions (system-changes) contained in the project'. |
1255 | 4246 |
(aProject methodInfo copy |
1371 | 4247 |
sort:[:a :b | |
4248 |
a displayString < b displayString. |
|
4249 |
] |
|
1253 | 4250 |
) do:[:aMethodInfo | |
1371 | 4251 |
|cNode cName| |
4252 |
||
4253 |
cNode := ProjectTreeItem name:(aMethodInfo className , ' ' , aMethodInfo methodName). |
|
4254 |
cNode contents:(#method -> aMethodInfo). |
|
4255 |
cNode icon:methodIcon. |
|
4256 |
patchesNode add:cNode. |
|
1218 | 4257 |
]. |
1079 | 4258 |
|
4259 |
deploymentNode icon:(self class deploymentIcon). |
|
1091 | 4260 |
deploymentNode spec:[self class rightCanvasSpecForDeployment]. |
1109 | 4261 |
deploymentNode info:'Deployment & packaging specification.'. |
1231 | 4262 |
deploymentNode contents:#deployment. |
1043 | 4263 |
|
1234 | 4264 |
buildOptionsNode icon:(self class buildOptionsIcon). |
4265 |
buildOptionsNode spec:[self class rightCanvasSpecForBuildOptions]. |
|
4266 |
buildOptionsNode info:'Compilation & include options.'. |
|
4267 |
buildOptionsNode contents:#buildOptions. |
|
4268 |
||
1025 | 4269 |
^ pNode |
1026 | 4270 |
|
1080 | 4271 |
"Modified: / 23.3.1999 / 14:27:30 / cg" |
1025 | 4272 |
! |
4273 |
||
4274 |
projectTree |
|
1026 | 4275 |
projectTree isNil ifTrue:[ |
1371 | 4276 |
self updateProjectTree |
1025 | 4277 |
]. |
4278 |
||
1026 | 4279 |
^ projectTree |
1025 | 4280 |
! |
4281 |
||
1081 | 4282 |
readAspectsFromProject |
1291 | 4283 |
|p type l ns mMod mDir mPkg pkg| |
1080 | 4284 |
|
1081 | 4285 |
p := self currentProject. |
4286 |
p notNil ifTrue:[ |
|
1371 | 4287 |
self selectedTreeNode contents == #comment ifTrue:[ |
4288 |
self rightCanvasTextHolder value:p comment. |
|
4289 |
]. |
|
4290 |
||
4291 |
self methodsFile value:(p propertyAt:#methodsFile). |
|
4292 |
self projectCodeIsLoadedHolder value:(p isLoaded == true). |
|
4293 |
p isLoaded == true ifFalse:[ |
|
4294 |
self valueOfInfoLabel value:'Projects code is not loaded.' |
|
4295 |
]. |
|
4296 |
||
4297 |
self currentProjectWasNotLoadedFromFile value:p wasLoadedFromFile not. |
|
4298 |
(type := p type) == #classLibrary ifTrue:[ |
|
4299 |
type := #library |
|
4300 |
]. |
|
4301 |
self projectType value:type. |
|
4302 |
self projectDirectory value:(p directory). |
|
4303 |
ns := p defaultNameSpace ? Smalltalk. |
|
4304 |
ns isSymbol ifFalse:[ |
|
4305 |
ns := ns name |
|
4306 |
]. |
|
4307 |
self projectNamespace value:ns. |
|
4308 |
||
4309 |
pkg := p package ? Project current package. |
|
4310 |
mMod := p repositoryModule ? '?'. |
|
4311 |
mDir := p repositoryDirectory ? '?'. |
|
4312 |
mPkg := mMod , ':' , mDir. |
|
4313 |
||
4314 |
mPkg ~= pkg ifTrue:[ |
|
4315 |
(pkg includes:$:) ifTrue:[ |
|
4316 |
mMod := pkg upTo:$:. |
|
4317 |
mDir := pkg copyFrom:mMod size + 2. |
|
1292 | 4318 |
"/ self warn:('package id: ''' , pkg , ''' different from moduleId: ''' , mPkg , |
4319 |
"/ '\\Assume module:''' , mMod , ''' directory:''' , mDir , '''') withCRs. |
|
1371 | 4320 |
] ifFalse:[ |
4321 |
((mMod ~= '?') and:[mDir ~= '?']) ifTrue:[ |
|
1292 | 4322 |
"/ self warn:('package id: ''' , pkg , ''' different from moduleId: ''' , mPkg , |
4323 |
"/ '\\Assume package:''' , mMod , ':' , mDir , '''') withCRs. |
|
1371 | 4324 |
pkg := mMod , ':' , mDir |
4325 |
] ifFalse:[ |
|
1292 | 4326 |
"/ self warn:('package id: ''' , pkg , ''' different from moduleId: ''' , mPkg , |
4327 |
"/ '\\Please care for the module and directory settings.') withCRs. |
|
1371 | 4328 |
] |
4329 |
] |
|
4330 |
]. |
|
4331 |
self projectPackage value:pkg. |
|
4332 |
self repositoryModule value:mMod. |
|
4333 |
self repositoryDirectory value:mDir. |
|
4334 |
||
4335 |
self deliverCompiledBinary value:(p propertyAt:#deliverCompiledBinary) ? false. |
|
4336 |
self deliverByteCode value:(p propertyAt:#deliverByteCode) ? false. |
|
4337 |
self deliverGZipArchive value:(p propertyAt:#deliverGZipArchive) ? false. |
|
4338 |
self deliverZipArchive value:(p propertyAt:#deliverZipArchive) ? false. |
|
4339 |
self deliverTarArchive value:(p propertyAt:#deliverTarArchive) ? false. |
|
4340 |
self deliverLoadAllFile value:(p propertyAt:#deliverLoadAllFile) ? false. |
|
4341 |
self deliverSources value:(p propertyAt:#deliverSources) ? false. |
|
4342 |
self deliverMakefiles value:(p propertyAt:#deliverMakefiles) ? false. |
|
4343 |
||
4344 |
self makeDefines value:(p propertyAt:#'make.stc.LOCALDEFINES') ? ''. |
|
4345 |
self makeIncludes value:(p propertyAt:#'make.stc.LOCALINCLUDES') ? ''. |
|
4346 |
self makeOtherWarningOptions value:(p propertyAt:#'make.stc.WARNINGOPTIONS') ? ''. |
|
4347 |
self makeWarnEOLComments value:(p propertyAt:#'make.stc.warnEOLComments') ? false. |
|
4348 |
self makeWarnNonStandard value:(p propertyAt:#'make.stc.warnNonStandard') ? true. |
|
1234 | 4349 |
|
4350 |
"/ self makeLocalLibs value:(p propertyAt:#'make.LD_OBJ_LIBS') ? ''. |
|
4351 |
"/ self makeExtraTargets value:(p propertyAt:#'make.LOCAL_EXTRA_TARGETS') ? ''. |
|
4352 |
||
1371 | 4353 |
self installDirectoryUnix |
4354 |
value:(p propertyAt:#installDirectoryUnix) ? |
|
4355 |
((p propertyAt:#installDirectory) ? '/opt/smalltalk/packages'). |
|
4356 |
self installDirectoryWin32 |
|
4357 |
value:(p propertyAt:#installDirectoryWin32) ? |
|
4358 |
((p propertyAt:#installDirectory) ? '\Programme\SmalltalkX\packages'). |
|
4359 |
self installDirectoryVMS |
|
4360 |
value:(p propertyAt:#installDirectoryVMS) ? |
|
4361 |
((p propertyAt:#installDirectory) ? 'SYS$SMALLTALKX:[PACKAGES]'). |
|
1149 | 4362 |
"/ self installDirectoryMacOS |
4363 |
"/ value:(p propertyAt:#installDirectoryMacOS) ? |
|
4364 |
"/ ((p propertyAt:#installDirectory) ? '\Programme\SmalltalkX'). |
|
1094 | 4365 |
|
1371 | 4366 |
l := p prerequisitePackages collect:[:entry | |
4367 |
|pName| |
|
4368 |
||
4369 |
entry isString ifTrue:[ |
|
4370 |
pName := entry |
|
4371 |
] ifFalse:[ |
|
4372 |
entry isArray ifTrue:[ |
|
4373 |
pName := entry at:1 |
|
4374 |
] ifFalse:[ |
|
4375 |
pName := entry name |
|
4376 |
] |
|
4377 |
] |
|
4378 |
]. |
|
4379 |
self listOfRequiredProjectsInPrerequisites value:(l sort). |
|
4380 |
self listOfRequiredClassesInPrerequisites value:(p prerequisiteClasses copy sort). |
|
4381 |
||
4382 |
modifiedChannel value:false. |
|
4383 |
p addDependent:self. |
|
1081 | 4384 |
]. |
4385 |
||
4386 |
"Created: / 23.3.1999 / 14:16:12 / cg" |
|
1116 | 4387 |
"Modified: / 26.4.1999 / 23:38:14 / cg" |
1081 | 4388 |
! |
4389 |
||
1231 | 4390 |
reallyModified |
4391 |
|p l selectedNodeType| |
|
4392 |
||
4393 |
p := self currentProject. |
|
4394 |
selectedNodeType := self selectedTreeNode contents. |
|
4395 |
||
4396 |
selectedNodeType == #comment ifTrue:[ |
|
1232 | 4397 |
self halt. |
1371 | 4398 |
^ self rightCanvasTextHolder value ~= p comment |
1231 | 4399 |
]. |
4400 |
selectedNodeType == #deployment ifTrue:[ |
|
1371 | 4401 |
(self deliverByteCode value ~= (p propertyAt:#deliverByteCode)) ifTrue:[^ true]. |
4402 |
(self deliverCompiledBinary value ~= (p propertyAt:#deliverCompiledBinary)) ifTrue:[^ true]. |
|
4403 |
(self deliverLoadAllFile value ~= (p propertyAt:#deliverLoadAllFile)) ifTrue:[^ true]. |
|
4404 |
(self deliverSources value ~= (p propertyAt:#deliverSources)) ifTrue:[^ true]. |
|
4405 |
(self deliverMakefiles value ~= (p propertyAt:#deliverMakefiles)) ifTrue:[^ true]. |
|
4406 |
||
4407 |
(self deliverZipArchive value ~= (p propertyAt:#deliverZipArchive)) ifTrue:[^ true]. |
|
4408 |
(self deliverTarArchive value ~= (p propertyAt:#deliverTarArchive)) ifTrue:[^ true]. |
|
4409 |
(self deliverGZipArchive value ~= (p propertyAt:#deliverGZipArchive)) ifTrue:[^ true]. |
|
4410 |
||
4411 |
self installDirectoryUnix value ~= |
|
4412 |
((p propertyAt:#installDirectoryUnix) ? |
|
4413 |
((p propertyAt:#installDirectory) ? |
|
4414 |
'/opt/smalltalk/packages')) ifTrue:[^ true]. |
|
4415 |
||
4416 |
self installDirectoryWin32 value ~= |
|
4417 |
((p propertyAt:#installDirectoryWin32) ? |
|
4418 |
((p propertyAt:#installDirectory) ? |
|
4419 |
'\Programme\SmalltalkX\packages')) ifTrue:[^ true]. |
|
4420 |
||
4421 |
self installDirectoryVMS value ~= |
|
4422 |
((p propertyAt:#installDirectoryVMS) ? |
|
4423 |
((p propertyAt:#installDirectory) ? |
|
4424 |
'SYS$SMALLTALKX:[PACKAGES]')) ifTrue:[^ true]. |
|
4425 |
||
4426 |
^ false |
|
1231 | 4427 |
]. |
1232 | 4428 |
selectedNodeType == #files ifTrue:[ |
4429 |
^ true. |
|
1371 | 4430 |
(self methodsFile value ~= (p propertyAt:#methodsFile)) ifTrue:[^ true]. |
4431 |
^ false |
|
1232 | 4432 |
]. |
1231 | 4433 |
self halt. |
1232 | 4434 |
|
1231 | 4435 |
(self projectType value ~~ p type) ifTrue:[^ true]. |
4436 |
(self projectDirectory value ~= p directory) ifTrue:[^ true]. |
|
4437 |
(self projectPackage value ~= p package) ifTrue:[^ true]. |
|
4438 |
(self projectNamespace value ~= (p defaultNameSpace ? Smalltalk) name) ifTrue:[^ true]. |
|
4439 |
||
4440 |
(self repositoryModule value ~= p repositoryModule) ifTrue:[^ true]. |
|
4441 |
(self repositoryDirectory value ~= p repositoryDirectory) ifTrue:[^ true]. |
|
4442 |
||
4443 |
"/ self installDirectoryMacOS value ~= |
|
4444 |
"/ ((p propertyAt:#installDirectoryMacOS) ? |
|
4445 |
"/ ((p propertyAt:#installDirectory) ? |
|
4446 |
"/ '\Programme\SmalltalkX')) ifTrue:[^ true]. |
|
4447 |
||
4448 |
l := p prerequisitePackages collect:[:entry | |
|
1371 | 4449 |
|pName| |
4450 |
||
4451 |
entry isString ifTrue:[ |
|
4452 |
pName := entry |
|
4453 |
] ifFalse:[ |
|
4454 |
entry isArray ifTrue:[ |
|
4455 |
pName := entry at:1 |
|
4456 |
] ifFalse:[ |
|
4457 |
pName := entry name |
|
4458 |
] |
|
4459 |
] |
|
4460 |
]. |
|
1231 | 4461 |
self listOfRequiredProjectsInPrerequisites value ~= (l sort) ifTrue:[^ true]. |
4462 |
self listOfRequiredClassesInPrerequisites value ~= (p prerequisiteClasses copy sort) ifTrue:[^ true]. |
|
4463 |
self halt. |
|
4464 |
||
4465 |
! |
|
4466 |
||
1081 | 4467 |
saveAspectsIntoProject |
1291 | 4468 |
|p s ns dir pkg| |
1081 | 4469 |
|
4470 |
p := self currentProject. |
|
4471 |
p notNil ifTrue:[ |
|
1371 | 4472 |
p removeDependent:self. |
4473 |
||
4474 |
self acceptChannel value:true; value:false. |
|
1108 | 4475 |
|
1081 | 4476 |
"/ self currentProjectWasNotLoadedFromFile value:p wasLoadedFromFile not. |
1371 | 4477 |
p type:self projectType value. |
4478 |
||
4479 |
dir := self projectDirectory value. |
|
4480 |
dir := (dir ? '') asFilename. |
|
4481 |
(dir exists and:[dir isDirectory]) ifFalse:[ |
|
4482 |
self warn:'Invalid project directory: ' , dir pathName |
|
4483 |
]. |
|
4484 |
||
4485 |
p directory:self projectDirectory value. |
|
4486 |
pkg := self repositoryModule value , ':' , self repositoryDirectory value. |
|
4487 |
p packageName:pkg asSymbol. |
|
4488 |
||
4489 |
p repositoryModule:self repositoryModule value. |
|
4490 |
p repositoryDirectory:self repositoryDirectory value. |
|
4491 |
||
4492 |
s := self projectNamespace value. |
|
4493 |
(s size == 0) ifTrue:[ |
|
4494 |
ns := Smalltalk |
|
4495 |
] ifFalse:[ |
|
4496 |
ns := NameSpace name:s |
|
4497 |
]. |
|
4498 |
p defaultNameSpace:ns. |
|
4499 |
||
4500 |
p propertyAt:#methodsFile put:self methodsFile value. |
|
4501 |
||
4502 |
p propertyAt:#deliverCompiledBinary put:self deliverCompiledBinary value. |
|
4503 |
p propertyAt:#deliverByteCode put:self deliverByteCode value. |
|
4504 |
p propertyAt:#deliverTarArchive put:self deliverTarArchive value. |
|
4505 |
p propertyAt:#deliverZipArchive put:self deliverZipArchive value. |
|
4506 |
p propertyAt:#deliverGZipArchive put:self deliverGZipArchive value. |
|
4507 |
p propertyAt:#deliverLoadAllFile put:self deliverLoadAllFile value. |
|
4508 |
p propertyAt:#deliverSources put:self deliverSources value. |
|
4509 |
p propertyAt:#deliverMakefiles put:self deliverMakefiles value. |
|
4510 |
||
4511 |
p propertyAt:#'make.stc.LOCALDEFINES' put:self makeDefines value. |
|
4512 |
p propertyAt:#'make.stc.LOCALINCLUDES' put:self makeIncludes value. |
|
4513 |
p propertyAt:#'make.stc.WARNINGOPTIONS' put:self makeOtherWarningOptions value. |
|
4514 |
p propertyAt:#'make.stc.warnEOLComments' put:self makeWarnEOLComments value. |
|
4515 |
p propertyAt:#'make.stc.warnNonStandard' put:self makeWarnNonStandard value. |
|
1234 | 4516 |
|
4517 |
"/ p propertyAt:#'make.LD_OBJ_LIBS' put:self makeLocalLibs value. |
|
4518 |
"/ p propertyAt:#'make.LOCAL_EXTRA_TARGETS' put:self makeExtraTargets value. |
|
4519 |
||
1371 | 4520 |
p propertyAt:#installDirectoryUnix put:self installDirectoryUnix value. |
4521 |
p propertyAt:#installDirectoryWin32 put:self installDirectoryWin32 value. |
|
4522 |
p propertyAt:#installDirectoryVMS put:self installDirectoryVMS value. |
|
4523 |
p propertyAt:#installDirectoryMacOS put:self installDirectoryMacOS value. |
|
4524 |
||
4525 |
p prerequisiteClasses:(self listOfRequiredClassesInPrerequisites value |
|
4526 |
collect:[:entry | entry string asSymbol]). |
|
4527 |
||
4528 |
p prerequisitePackages:(self listOfRequiredProjectsInPrerequisites value |
|
4529 |
collect:[:entry | entry string asSymbol]). |
|
4530 |
||
4531 |
p addDependent:self. |
|
1080 | 4532 |
]. |
4533 |
||
4534 |
"Created: / 23.3.1999 / 14:16:12 / cg" |
|
4535 |
"Modified: / 23.3.1999 / 14:18:38 / cg" |
|
4536 |
! |
|
4537 |
||
1248 | 4538 |
selectedMethod |
4539 |
|node methodInfo classOrClassName cls mthd text| |
|
4540 |
||
4541 |
self hasMethodNodeSelected ifFalse:[^ nil]. |
|
4542 |
||
4543 |
node := self selectedTreeNode. |
|
4544 |
methodInfo := node contents value. |
|
4545 |
mthd := methodInfo method. |
|
4546 |
mthd isNil ifTrue:[ |
|
1371 | 4547 |
self valueOfInfoLabel value:'The method is not (yet) loaded.'. |
1248 | 4548 |
]. |
4549 |
^ mthd |
|
4550 |
! |
|
4551 |
||
1251 | 4552 |
transcript |
4553 |
^ self builder componentAt:#commandOutputView |
|
4554 |
! |
|
4555 |
||
1291 | 4556 |
updateFlagValueHolders |
4557 |
self hasProjectSelectedHolder value:(self hasProjectSelected). |
|
4558 |
self canLoadCurrentProjectHolder value:(self canLoadCurrentProject). |
|
4559 |
self canUnloadCurrentProjectHolder value:(self canUnloadCurrentProject). |
|
4560 |
||
4561 |
! |
|
4562 |
||
1206 | 4563 |
updateProjectTree |
1210 | 4564 |
|tree moduleRoots root showWhat| |
1206 | 4565 |
|
1231 | 4566 |
self withCursor:Cursor execute do:[ |
1371 | 4567 |
showWhat := self showWhat value. |
4568 |
||
4569 |
moduleRoots := Dictionary new. |
|
4570 |
||
4571 |
tree := SelectionInTree new. |
|
4572 |
tree root:(root := ProjectTreeItem name:'invisibleRoot'). |
|
4573 |
root hide:false. |
|
4574 |
||
4575 |
showWhat notNil ifTrue:[ |
|
4576 |
showWhat == #current ifTrue:[ |
|
4577 |
root add:(self nodeFor:Project current). |
|
4578 |
] ifFalse:[ |
|
4579 |
(Project knownProjects asOrderedCollection |
|
4580 |
sort:[:a :b | a package < b package]) |
|
4581 |
do:[:aProject | |
|
4582 |
|newNode nodeToAdd doShow childNode path| |
|
4583 |
||
4584 |
(doShow := showWhat == #all) ifFalse:[ |
|
4585 |
doShow := (aProject package startsWith:'stx:') not |
|
4586 |
]. |
|
4587 |
||
4588 |
doShow ifTrue:[ |
|
4589 |
newNode := self nodeFor:aProject. |
|
4590 |
||
4591 |
"/ insert into tree ... |
|
4592 |
nodeToAdd := root. |
|
4593 |
||
4594 |
path := aProject package asCollectionOfSubstringsSeparatedByAny:'/\:'. |
|
4595 |
path from:1 to:path size-1 do:[:part | |
|
4596 |
childNode := nodeToAdd children detect:[:child | child name = part] ifNone:nil. |
|
4597 |
childNode isNil ifTrue:[ |
|
4598 |
nodeToAdd add:(childNode := ProjectTreeItem new name:part). |
|
4599 |
]. |
|
4600 |
nodeToAdd := childNode. |
|
4601 |
]. |
|
4602 |
newNode name:(path last). |
|
4603 |
nodeToAdd add:newNode. |
|
4604 |
] |
|
4605 |
]. |
|
4606 |
]. |
|
4607 |
]. |
|
4608 |
projectTree := root. |
|
4609 |
||
4610 |
self projectTreeHolder root:projectTree. |
|
1206 | 4611 |
]. |
4612 |
^ projectTree |
|
4613 |
! |
|
4614 |
||
1025 | 4615 |
updateRightCanvas |
1079 | 4616 |
|selectedNode nodeContents spec| |
1025 | 4617 |
|
1149 | 4618 |
self builder bindings removeKey:#listOfAllClassesInPrerequisites ifAbsent:nil. "/ force recompute |
4619 |
self builder bindings removeKey:#listOfAllProjectsInPrerequisites ifAbsent:nil. "/ force recompute |
|
4620 |
||
1091 | 4621 |
self selectedProjectInPrerequisites value:nil. |
4622 |
self selectedRequiredProjectInPrerequisites value:nil. |
|
4623 |
||
1099 | 4624 |
selectedNode := self selectedTreeNode. |
1025 | 4625 |
selectedNode isNil ifTrue:[ |
1371 | 4626 |
self setupCanvasForNoSelection. |
4627 |
^ self |
|
1025 | 4628 |
]. |
1026 | 4629 |
|
1079 | 4630 |
(spec := selectedNode spec) notNil ifTrue:[ |
1371 | 4631 |
self currentCanvasHolder value:spec value. |
4632 |
^ self |
|
1079 | 4633 |
]. |
4634 |
||
1026 | 4635 |
selectedNode isProjectNode ifTrue:[ |
1371 | 4636 |
self showCommentOf:selectedNode. |
4637 |
^ self. |
|
1025 | 4638 |
]. |
4639 |
||
1037 | 4640 |
selectedNode contents == #classes ifTrue:[ |
1371 | 4641 |
self showClassListOf:selectedNode. |
4642 |
^ self. |
|
1037 | 4643 |
]. |
1043 | 4644 |
selectedNode contents == #patches ifTrue:[ |
1371 | 4645 |
self showPatchesListOf:selectedNode. |
4646 |
^ self. |
|
1043 | 4647 |
]. |
1097 | 4648 |
self hasClassNodeSelected ifTrue:[ |
1371 | 4649 |
self showClassDefinitionOf:selectedNode. |
4650 |
^ self. |
|
1097 | 4651 |
]. |
1218 | 4652 |
self hasMethodNodeSelected ifTrue:[ |
1371 | 4653 |
self showMethodSourceOf:selectedNode. |
4654 |
^ self. |
|
1218 | 4655 |
]. |
1327 | 4656 |
self hasPrerequisitesNodeSelected ifTrue:[ |
1371 | 4657 |
self showPrerequisitesInfo. |
4658 |
^ self. |
|
1327 | 4659 |
]. |
1043 | 4660 |
|
1025 | 4661 |
self currentCanvasHolder value:(self class emptyRightCanvasSpec). |
4662 |
self rightCanvasTextHolder value:''. |
|
4663 |
||
1080 | 4664 |
"Modified: / 23.3.1999 / 14:16:02 / cg" |
1327 | 4665 |
|
1025 | 4666 |
! ! |
4667 |
||
1232 | 4668 |
!ProjectBrowser methodsFor:'private - building'! |
4669 |
||
4670 |
checkForMakeProtoFor:aProject |
|
4671 |
|f| |
|
4672 |
||
4673 |
"/ check for project directory ... |
|
4674 |
(self checkForProjectDirectoryFor:aProject) ifFalse:[ |
|
1371 | 4675 |
^ false |
1232 | 4676 |
]. |
4677 |
||
4678 |
"/ check for Make.proto ... |
|
4679 |
f := aProject directory asFilename construct:'Make.proto'. |
|
4680 |
f exists ifFalse:[ |
|
1371 | 4681 |
(self confirm:'''Make.proto'' does not exist in project directory\\Create ?' withCRs) ifFalse:[ |
4682 |
^ false |
|
4683 |
]. |
|
4684 |
self buildMakefiles. |
|
1232 | 4685 |
]. |
4686 |
^ true |
|
4687 |
! |
|
4688 |
||
4689 |
checkForMakefileFor:aProject |
|
4690 |
|f| |
|
4691 |
||
4692 |
"/ check for project directory ... |
|
4693 |
(self checkForProjectDirectoryFor:aProject) ifFalse:[ |
|
1371 | 4694 |
^ false |
1232 | 4695 |
]. |
4696 |
||
4697 |
"/ check for Makefile ... |
|
4698 |
f := aProject directory asFilename construct:'Makefile'. |
|
4699 |
f exists ifFalse:[ |
|
1371 | 4700 |
(self confirm:'''Makefile'' does not exist in project directory\\Create ?' withCRs) ifFalse:[ |
4701 |
^ false |
|
4702 |
]. |
|
4703 |
(self checkForMakeProtoFor:aProject) ifFalse:[ |
|
4704 |
^ false |
|
4705 |
]. |
|
4706 |
self buildMakefiles. |
|
1232 | 4707 |
]. |
4708 |
^ true |
|
4709 |
! |
|
4710 |
||
4711 |
checkForProjectDirectoryFor:aProject |
|
4712 |
|dir| |
|
4713 |
||
4714 |
"/ check for project directory ... |
|
4715 |
dir := aProject directory asFilename. |
|
4716 |
dir exists ifFalse:[ |
|
1371 | 4717 |
(self confirm:'Project directory does not exist\\Create ?' withCRs) ifFalse:[ |
4718 |
^ false |
|
4719 |
]. |
|
4720 |
dir recursiveMakeDirectory. |
|
1232 | 4721 |
]. |
4722 |
^ true |
|
4723 |
||
4724 |
||
4725 |
! ! |
|
4726 |
||
1327 | 4727 |
!ProjectBrowser methodsFor:'private - info'! |
4728 |
||
4729 |
showPrerequisitesInfo |
|
1371 | 4730 |
self showReadOnlyText: |
1327 | 4731 |
'When loading this package, |
4732 |
these other packages/classes |
|
4733 |
will be loaded before. |
|
4734 |
Also, the prerequisite packages'' |
|
4735 |
directory pathes will be added |
|
4736 |
to the include path for |
|
4737 |
stc-compilation.'. |
|
4738 |
||
1371 | 4739 |
^ self. |
1327 | 4740 |
|
4741 |
||
4742 |
! ! |
|
4743 |
||
1037 | 4744 |
!ProjectBrowser methodsFor:'private - table col access'! |
4745 |
||
1038 | 4746 |
classFilenameFromClassInfo:cInfo |
4747 |
^ cInfo classFileName |
|
4748 |
! |
|
4749 |
||
4750 |
classIncludeConditionFromClassInfo:cInfo |
|
4751 |
^ cInfo conditionForInclusion |
|
4752 |
! |
|
4753 |
||
1235 | 4754 |
classIncludeConditionFromClassInfo:cInfo put:aSymbol |
1238 | 4755 |
cInfo conditionForInclusion:aSymbol. |
4756 |
^ cInfo |
|
1235 | 4757 |
! |
4758 |
||
1037 | 4759 |
classNameFromClassInfo:cInfo |
1241 | 4760 |
|cls nm| |
4761 |
||
4762 |
nm := cInfo className. |
|
4763 |
||
4764 |
cls := cInfo theClass. |
|
4765 |
(cls isNil or:[cls isLoaded not]) ifTrue:[ |
|
1371 | 4766 |
^ nm asText allItalic |
1241 | 4767 |
]. |
4768 |
^ nm |
|
4769 |
||
4770 |
"Modified: / 26.9.1999 / 13:49:51 / cg" |
|
1043 | 4771 |
! |
4772 |
||
1218 | 4773 |
classNameFromMethodInfo:pInfo |
4774 |
^ pInfo className |
|
4775 |
! |
|
4776 |
||
1043 | 4777 |
classNameFromPatchesInfo:pInfo |
4778 |
^ pInfo methodClass name |
|
4779 |
! |
|
4780 |
||
1218 | 4781 |
selectorFromMethodInfo:pInfo |
4782 |
^ pInfo methodName |
|
4783 |
! |
|
4784 |
||
1043 | 4785 |
selectorFromPatchesInfo:pInfo |
4786 |
^ pInfo methodSelector |
|
1037 | 4787 |
! ! |
4788 |
||
1025 | 4789 |
!ProjectBrowser methodsFor:'user actions'! |
4790 |
||
1232 | 4791 |
addClasses |
1248 | 4792 |
"ask for, and add a single class" |
1232 | 4793 |
|
4794 |
|p className cls oldPackage| |
|
4795 |
||
4796 |
p := self currentProject. |
|
4797 |
||
4798 |
className := Dialog request:'Class to add:'. |
|
4799 |
className size == 0 ifTrue:[^ self]. |
|
4800 |
cls := Smalltalk classNamed:className. |
|
4801 |
cls isNil ifTrue:[ |
|
1371 | 4802 |
"/ a new one |
4803 |
(self confirm:'This is a new class. Add ?') ifFalse:[ |
|
4804 |
^ self |
|
4805 |
]. |
|
4806 |
p |
|
4807 |
addClass:className |
|
4808 |
classFileName:((Smalltalk fileNameForClass:className) , '.st'). |
|
1232 | 4809 |
] ifFalse:[ |
1371 | 4810 |
(oldPackage := cls package) ~= p package ifTrue:[ |
4811 |
"/ a new one |
|
4812 |
(self confirm:'Change the classes package from ' , oldPackage , ' to ' , p package , ' ?') ifFalse:[ |
|
4813 |
^ self |
|
4814 |
]. |
|
4815 |
cls package:p package. |
|
4816 |
]. |
|
4817 |
"/ find the other package .. |
|
4818 |
oldPackage := Project projectWithId:oldPackage. |
|
4819 |
oldPackage notNil ifTrue:[ |
|
4820 |
oldPackage removeClass:cls |
|
4821 |
]. |
|
4822 |
||
4823 |
p |
|
4824 |
addClass:cls name |
|
4825 |
classFileName:(cls classFilename |
|
4826 |
? ((Smalltalk fileNameForClass:cls) , '.st')). |
|
1232 | 4827 |
]. |
4828 |
||
4829 |
self updateClassListForProject:p |
|
4830 |
||
4831 |
! |
|
4832 |
||
1099 | 4833 |
itemDoubleClicked:index |
1206 | 4834 |
|node classOrClassName cls| |
1099 | 4835 |
|
4836 |
self hasClassNodeSelected ifTrue:[ |
|
1371 | 4837 |
node := self selectedTreeNode. |
4838 |
classOrClassName := node contents value. |
|
4839 |
classOrClassName isBehavior ifTrue:[ |
|
4840 |
cls := classOrClassName. |
|
4841 |
] ifFalse:[ |
|
4842 |
cls := Smalltalk at:classOrClassName. |
|
4843 |
]. |
|
4844 |
cls isNil ifTrue:[ |
|
4845 |
self information:'The class is not (yet) loaded'. |
|
4846 |
^ self |
|
4847 |
]. |
|
4848 |
SystemBrowser browseClass:cls. |
|
1099 | 4849 |
]. |
4850 |
! |
|
4851 |
||
1025 | 4852 |
itemSelected:index |
1218 | 4853 |
|item action info p| |
1025 | 4854 |
|
1206 | 4855 |
self withWaitCursorDo:[ |
1371 | 4856 |
self updateRightCanvas. |
1206 | 4857 |
]. |
1232 | 4858 |
index isNil ifTrue:[ |
1371 | 4859 |
modifiedChannel value:false. |
4860 |
^ self |
|
1232 | 4861 |
]. |
4862 |
||
1081 | 4863 |
self readAspectsFromProject. |
4864 |
||
1025 | 4865 |
item := self projectTreeHolder value at:index. |
4866 |
action := item action. |
|
4867 |
action notNil ifTrue:[ |
|
1371 | 4868 |
action value:item. |
1025 | 4869 |
]. |
1109 | 4870 |
|
1218 | 4871 |
info := item info. |
4872 |
info size == 0 ifTrue:[ |
|
1371 | 4873 |
((p := self currentProject) notNil |
4874 |
and:[p isLoaded ~~ true]) ifTrue:[ |
|
4875 |
info := 'Projects code is not loaded.' |
|
4876 |
]. |
|
1218 | 4877 |
]. |
4878 |
self valueOfInfoLabel value:info. |
|
4879 |
||
1291 | 4880 |
self updateFlagValueHolders. |
1232 | 4881 |
modifiedChannel value:false. |
1116 | 4882 |
|
4883 |
"Modified: / 26.4.1999 / 22:49:20 / cg" |
|
1025 | 4884 |
! |
4885 |
||
1095 | 4886 |
loadFromProjectFile:aFilenameString |
1239 | 4887 |
|oldNode newProject| |
1095 | 4888 |
|
1096 | 4889 |
self withReadCursorDo:[ |
1371 | 4890 |
newProject := Project new loadFromProjectFile:aFilenameString. |
4891 |
||
4892 |
oldNode := self projectTreeHolder |
|
4893 |
detectFirstItem:[:item | item contents class == Project |
|
4894 |
and:[item contents package = newProject package]]. |
|
4895 |
oldNode notNil ifTrue:[ |
|
4896 |
(self confirm:'Overload packages definitions from file ?') ifFalse:[ |
|
4897 |
^ self |
|
4898 |
]. |
|
4899 |
self projectTreeHolder remove:oldNode. |
|
4900 |
]. |
|
4901 |
||
4902 |
newProject notNil ifTrue:[ |
|
4903 |
self newProject:newProject |
|
4904 |
]. |
|
4905 |
self expandPathToNodeFor:newProject. |
|
1239 | 4906 |
|
1224
825e6e9fc37f
expand the path to the load project
Claus Gittinger <cg@exept.de>
parents:
1223
diff
changeset
|
4907 |
]. |
825e6e9fc37f
expand the path to the load project
Claus Gittinger <cg@exept.de>
parents:
1223
diff
changeset
|
4908 |
^ newProject |
1095 | 4909 |
! |
4910 |
||
1291 | 4911 |
loadProject |
4912 |
|project| |
|
4913 |
||
4914 |
project := self currentProject. |
|
4915 |
self halt. |
|
4916 |
Smalltalk loadPackage:(project name) |
|
4917 |
! |
|
4918 |
||
1218 | 4919 |
loadProjectCode |
1219 | 4920 |
|project filesToLoad methodsFile ns anyPatchClassMissing anyPatches |
4921 |
nMissingSuper prevNMissingSuper| |
|
1218 | 4922 |
|
4923 |
project := self currentProject. |
|
4924 |
ns := project defaultNameSpace. |
|
4925 |
ns isSymbol ifTrue:[ |
|
1371 | 4926 |
ns := NameSpace name:ns |
1218 | 4927 |
]. |
4928 |
self withReadCursorDo:[ |
|
1371 | 4929 |
filesToLoad := OrderedCollection new. |
4930 |
||
4931 |
"/ load all classes ... |
|
4932 |
project classInfo do:[:aClassInfo | |
|
4933 |
|className fileToLoad cls| |
|
4934 |
||
4935 |
className := aClassInfo className. |
|
4936 |
fileToLoad := aClassInfo classFileName. |
|
4937 |
cls := ns at:className asSymbol. |
|
4938 |
cls notNil ifTrue:[ |
|
4939 |
cls isBehavior ifFalse:[ |
|
4940 |
(self confirm:('Attention: a global named ' , className , ' exists, but is not a class.\\Load anyway ?') withCRs) |
|
4941 |
ifFalse:[ |
|
4942 |
fileToLoad := nil |
|
4943 |
] |
|
4944 |
] ifTrue:[ |
|
4945 |
cls isLoaded ifTrue:[ |
|
4946 |
fileToLoad := nil |
|
4947 |
] |
|
4948 |
] |
|
4949 |
]. |
|
4950 |
fileToLoad notNil ifTrue:[ |
|
4951 |
filesToLoad add:fileToLoad |
|
4952 |
]. |
|
4953 |
]. |
|
4954 |
||
4955 |
anyPatchClassMissing := false. |
|
4956 |
anyPatches := false. |
|
4957 |
project methodInfo do:[:aMethodInfo | |
|
4958 |
|className methodName mthd cls| |
|
4959 |
||
4960 |
className := aMethodInfo className. |
|
4961 |
methodName := aMethodInfo methodName. |
|
4962 |
cls := Smalltalk at:className asSymbol. |
|
4963 |
(cls isNil or:[cls isBehavior not or:[cls isLoaded not]]) ifTrue:[ |
|
4964 |
self warn:('Missing class: ' , className , ' (required for patches)'). |
|
4965 |
anyPatchClassMissing := anyPatches := true. |
|
4966 |
] ifFalse:[ |
|
4967 |
"/ already present ? |
|
4968 |
(cls compiledMethodAt:methodName asSymbol) isNil ifTrue:[ |
|
4969 |
anyPatches := true. |
|
4970 |
] |
|
4971 |
] |
|
4972 |
]. |
|
4973 |
||
4974 |
(methodsFile := project propertyAt:#methodsFile) notNil ifTrue:[ |
|
4975 |
anyPatches ifTrue:[ |
|
4976 |
anyPatchClassMissing ifTrue:[ |
|
4977 |
self warn:('Cannot load patches & extensions, due to missing class(es)') |
|
4978 |
] ifFalse:[ |
|
4979 |
filesToLoad add:methodsFile |
|
4980 |
] |
|
4981 |
] |
|
4982 |
] ifFalse:[ |
|
4983 |
anyPatches ifTrue:[ |
|
4984 |
self warn:('No file for methods (patches & extensions) is defined in project') |
|
4985 |
]. |
|
4986 |
]. |
|
4987 |
||
4988 |
filesToLoad size == 0 ifTrue:[ |
|
4989 |
self information:'Projects code is already loaded.' |
|
4990 |
] ifFalse:[ |
|
4991 |
"/ load as long as superclasses are missing |
|
4992 |
"/ (since the load order could be incorrect) |
|
4993 |
prevNMissingSuper := nil. |
|
4994 |
nMissingSuper := 1. |
|
4995 |
[nMissingSuper > 0 and:[nMissingSuper ~~ prevNMissingSuper]] |
|
4996 |
whileTrue:[ |
|
4997 |
nMissingSuper := 0. |
|
4998 |
Parser::UndefinedSuperclassError handle:[:ex | |
|
4999 |
nMissingSuper := nMissingSuper + 1. |
|
5000 |
ex proceed |
|
5001 |
] do:[ |
|
5002 |
Class packageQuerySignal answer:project package asSymbol |
|
5003 |
do:[ |
|
5004 |
filesToLoad do:[:fileToLoad | |
|
5005 |
Smalltalk fileIn:(project directory asFilename construct:fileToLoad) pathName |
|
5006 |
] |
|
5007 |
] |
|
5008 |
]. |
|
5009 |
prevNMissingSuper := nMissingSuper. |
|
5010 |
]. |
|
5011 |
]. |
|
5012 |
project isLoaded:true. |
|
5013 |
self readAspectsFromProject |
|
1218 | 5014 |
] |
5015 |
! |
|
5016 |
||
1206 | 5017 |
methodPatchDoubleClick:arg |
5018 |
self halt. |
|
5019 |
! |
|
5020 |
||
1231 | 5021 |
projectFilterChanged |
5022 |
|theNode| |
|
5023 |
||
5024 |
self updateProjectTree. |
|
5025 |
self updateRightCanvas. |
|
5026 |
self showWhat value == #current ifTrue:[ |
|
1371 | 5027 |
theNode := self projectTreeHolder |
5028 |
detectFirstItem:[:item | item contents == Project current]. |
|
5029 |
||
5030 |
[theNode notNil] whileTrue:[ |
|
5031 |
self projectTreeHolder expand:theNode. |
|
5032 |
theNode := theNode parent. |
|
5033 |
]. |
|
1231 | 5034 |
|
5035 |
]. |
|
5036 |
! |
|
5037 |
||
1107 | 5038 |
selectionChangeAllowed:newNode |
1081 | 5039 |
|answer| |
5040 |
||
1107 | 5041 |
newNode == self selectedTreeNode ifTrue:[ |
1371 | 5042 |
^ true |
1107 | 5043 |
]. |
1231 | 5044 |
(modifiedChannel value |
1232 | 5045 |
and:[true "self reallyModified"]) ifTrue:[ |
1371 | 5046 |
answer := Dialog confirmWithCancel:'Accept changes ?'. |
5047 |
answer isNil ifTrue:[ |
|
5048 |
^ false |
|
5049 |
]. |
|
5050 |
answer == true ifTrue:[ |
|
5051 |
self accept. |
|
5052 |
]. |
|
1081 | 5053 |
]. |
5054 |
^ true |
|
5055 |
||
5056 |
! |
|
5057 |
||
1097 | 5058 |
showClassDefinitionOf:anItem |
1206 | 5059 |
|node classOrClassName cls text| |
1097 | 5060 |
|
5061 |
self hasClassNodeSelected ifFalse:[^ self]. |
|
5062 |
||
5063 |
self currentCanvasHolder value:(self class rightCanvasSpecForEditableText). |
|
5064 |
||
1099 | 5065 |
node := self selectedTreeNode. |
1206 | 5066 |
classOrClassName := node contents value. |
5067 |
classOrClassName isBehavior ifTrue:[ |
|
1371 | 5068 |
cls := classOrClassName. |
1206 | 5069 |
] ifFalse:[ |
1371 | 5070 |
cls := Smalltalk at:classOrClassName. |
1206 | 5071 |
]. |
1097 | 5072 |
cls isNil ifTrue:[ |
1371 | 5073 |
text := 'The class is not (yet) loaded'. |
1097 | 5074 |
] ifFalse:[ |
1371 | 5075 |
text := cls definition |
1097 | 5076 |
]. |
5077 |
self rightCanvasTextHolder value:text. |
|
5078 |
||
5079 |
! |
|
5080 |
||
1037 | 5081 |
showClassListOf:anItem |
1107 | 5082 |
|projectItem project| |
1037 | 5083 |
|
5084 |
projectItem := anItem parent. |
|
5085 |
project := projectItem contents. |
|
5086 |
||
1107 | 5087 |
self updateClassListForProject:project. |
1037 | 5088 |
|
5089 |
self currentCanvasHolder value:(self class rightCanvasSpecForClassList). |
|
5090 |
! |
|
5091 |
||
1026 | 5092 |
showCommentOf:anItem |
5093 |
|projectItem project| |
|
1025 | 5094 |
|
1026 | 5095 |
anItem contents == #comment ifTrue:[ |
1371 | 5096 |
projectItem := anItem parent |
1026 | 5097 |
] ifFalse:[ |
1371 | 5098 |
projectItem := anItem |
1026 | 5099 |
]. |
5100 |
project := projectItem contents. |
|
5101 |
||
1232 | 5102 |
self textCanvasLabelHolder value:'Projects comment'. |
1026 | 5103 |
self currentCanvasHolder value:(self class rightCanvasSpecForEditableText). |
1025 | 5104 |
self rightCanvasTextHolder value:project comment. |
5105 |
||
5106 |
! |
|
5107 |
||
1037 | 5108 |
showDocumentationFor:anItem |
5109 |
|projectItem project| |
|
5110 |
||
5111 |
anItem contents == #documentation ifTrue:[ |
|
1371 | 5112 |
projectItem := anItem parent |
1037 | 5113 |
] ifFalse:[ |
1371 | 5114 |
projectItem := anItem |
1037 | 5115 |
]. |
5116 |
project := projectItem contents. |
|
5117 |
||
5118 |
self currentCanvasHolder value:(self class rightCanvasSpecForHTMLText). |
|
5119 |
self htmlDocumentURLHolder value:project documentationURL. |
|
5120 |
! |
|
5121 |
||
1218 | 5122 |
showMethodSourceOf:anItem |
5123 |
|node methodInfo classOrClassName cls mthd text| |
|
5124 |
||
5125 |
self hasMethodNodeSelected ifFalse:[^ self]. |
|
5126 |
||
5127 |
self currentCanvasHolder value:(self class rightCanvasSpecForEditableText). |
|
5128 |
||
5129 |
node := self selectedTreeNode. |
|
5130 |
methodInfo := node contents value. |
|
5131 |
cls := Smalltalk at:methodInfo className asSymbol. |
|
5132 |
cls isNil ifTrue:[ |
|
1371 | 5133 |
text := 'The class is not (yet) loaded'. |
1218 | 5134 |
] ifFalse:[ |
1371 | 5135 |
mthd := cls compiledMethodAt:(methodInfo methodName asSymbol). |
5136 |
mthd isNil ifTrue:[ |
|
5137 |
text := 'The method is not (yet) loaded'. |
|
5138 |
] ifFalse:[ |
|
5139 |
text := mthd source |
|
5140 |
] |
|
1218 | 5141 |
]. |
5142 |
self rightCanvasTextHolder value:text. |
|
5143 |
||
5144 |
! |
|
5145 |
||
1043 | 5146 |
showPatchesListOf:anItem |
5147 |
|projectItem project patches l| |
|
5148 |
||
5149 |
projectItem := anItem parent. |
|
5150 |
project := projectItem contents. |
|
5151 |
||
1218 | 5152 |
self updatePatchesListForProject:project. |
5153 |
||
5154 |
"/ patches := project methods. |
|
5155 |
"/ patches := patches collect:[:m | m who]. |
|
5156 |
"/ patches := patches sort:[:w1 :w2 | |
|
5157 |
"/ |w1Nm w2Nm| |
|
5158 |
"/ |
|
5159 |
"/ w1Nm := w1 methodClass name. |
|
5160 |
"/ w2Nm := w2 methodClass name. |
|
5161 |
"/ w1Nm < w2Nm ifTrue:[ |
|
5162 |
"/ true |
|
5163 |
"/ ] ifFalse:[ |
|
5164 |
"/ w1Nm = w2Nm ifFalse:[ |
|
5165 |
"/ false |
|
5166 |
"/ ] ifTrue:[ |
|
5167 |
"/ w1 methodSelector < w2 methodSelector |
|
5168 |
"/ ] |
|
5169 |
"/ ] |
|
5170 |
"/ ]. |
|
5171 |
"/ |
|
5172 |
"/ l := self patchesList. |
|
5173 |
"/ l removeAll. |
|
5174 |
"/ l addAll:patches. |
|
1043 | 5175 |
|
5176 |
self currentCanvasHolder value:(self class rightCanvasSpecForPatchesList). |
|
5177 |
! |
|
5178 |
||
1026 | 5179 |
showReadOnlyText:someText |
5180 |
self currentCanvasHolder value:(self class rightCanvasSpecForReadOnlyText). |
|
5181 |
self rightCanvasTextHolder value:someText. |
|
5182 |
||
1107 | 5183 |
! |
5184 |
||
1291 | 5185 |
unloadProject |
5186 |
|project filesToLoad methodsFile ns anyPatchClassMissing anyPatches |
|
5187 |
nMissingSuper prevNMissingSuper| |
|
5188 |
||
5189 |
project := self currentProject. |
|
5190 |
self halt. |
|
5191 |
! |
|
5192 |
||
1107 | 5193 |
updateClassListForProject:aProject |
5194 |
|classInfo l| |
|
5195 |
||
5196 |
classInfo := aProject classInfo copy asOrderedCollection. |
|
5197 |
classInfo sort:[:a :b | a className < b className]. |
|
5198 |
||
5199 |
l := self classList. |
|
5200 |
l removeAll. |
|
5201 |
l addAll:classInfo. |
|
5202 |
||
1109 | 5203 |
|
5204 |
! |
|
5205 |
||
1206 | 5206 |
updateListOfProjects |
5207 |
"scan all classes/methods for new projects" |
|
5208 |
||
5209 |
self withWaitCursorDo:[ |
|
1371 | 5210 |
Project initKnownProjects. |
5211 |
self updateProjectTree |
|
1206 | 5212 |
]. |
5213 |
! |
|
5214 |
||
1109 | 5215 |
updateListOfRequiredPrerequisiteClasses |
5216 |
"all autoloaded superclasses of my classes are definitely required" |
|
5217 |
||
1206 | 5218 |
|p anyChange allInPre requiredInPre nTotal nMissing msg| |
1109 | 5219 |
|
5220 |
p := self currentProject. |
|
5221 |
p isNil ifTrue:[^ self]. |
|
5222 |
anyChange := false. |
|
1206 | 5223 |
nTotal := 0. |
1109 | 5224 |
nMissing := 0. |
5225 |
allInPre := self listOfAllClassesInPrerequisites value. |
|
5226 |
requiredInPre := self listOfRequiredClassesInPrerequisites value. |
|
5227 |
||
5228 |
self currentProjectsClassNames do:[:aClassName | |
|
1371 | 5229 |
|cls| |
5230 |
||
5231 |
cls := Smalltalk at:aClassName asSymbol. |
|
5232 |
(cls notNil and:[cls isLoaded]) ifTrue:[ |
|
5233 |
cls allSuperclasses do:[:superClass | |
|
5234 |
|sName idx| |
|
5235 |
||
5236 |
(superClass notNil |
|
5237 |
and:[superClass isLoaded |
|
5238 |
and:[superClass wasAutoloaded]]) ifTrue:[ |
|
5239 |
|sName entry| |
|
5240 |
||
5241 |
sName := superClass name. |
|
5242 |
idx := allInPre findFirst:[:item | item string = sName]. |
|
5243 |
idx ~~ 0 ifTrue:[ |
|
5244 |
allInPre removeIndex:idx. |
|
5245 |
requiredInPre add:sName asText allBold. |
|
5246 |
anyChange := true. |
|
5247 |
] |
|
5248 |
] |
|
5249 |
] |
|
5250 |
] ifFalse:[ |
|
5251 |
nMissing := nMissing + 1. |
|
5252 |
]. |
|
5253 |
nTotal := nTotal + 1. |
|
1109 | 5254 |
]. |
5255 |
||
5256 |
anyChange ifTrue:[ |
|
1371 | 5257 |
self listOfRequiredClassesInPrerequisites changed. |
5258 |
self listOfAllClassesInPrerequisites changed. |
|
1109 | 5259 |
]. |
5260 |
nMissing ~~ 0 ifTrue:[ |
|
1371 | 5261 |
nMissing == nTotal ifTrue:[ |
5262 |
msg := 'Project is not loaded (' , nMissing printString |
|
5263 |
, ' unloaded classes)'. |
|
5264 |
] ifFalse:[ |
|
5265 |
msg := 'Project is not loaded completely - ' , nMissing printString |
|
5266 |
, ' of the projects ' , nTotal printString , ' classes are not loaded'. |
|
5267 |
]. |
|
1207 | 5268 |
"/ self notify:msg. |
1109 | 5269 |
]. |
1206 | 5270 |
modifiedChannel value:false. |
1218 | 5271 |
! |
5272 |
||
5273 |
updatePatchesListForProject:aProject |
|
5274 |
|methodInfo l| |
|
5275 |
||
5276 |
methodInfo := aProject methodInfo copy asOrderedCollection. |
|
5277 |
methodInfo sort:[:a :b | a displayString < b displayString]. |
|
5278 |
||
5279 |
l := self patchesList. |
|
5280 |
l removeAll. |
|
5281 |
l addAll:methodInfo. |
|
5282 |
||
5283 |
||
1109 | 5284 |
! ! |
5285 |
||
5286 |
!ProjectBrowser methodsFor:'user actions - canvas'! |
|
5287 |
||
5288 |
accept |
|
5289 |
"save values from aspects into the project" |
|
5290 |
||
5291 |
self saveAspectsIntoProject. |
|
5292 |
modifiedChannel value:false. |
|
5293 |
||
5294 |
! |
|
5295 |
||
5296 |
addClassToPrerequisites |
|
5297 |
|sel cls| |
|
5298 |
||
5299 |
sel := self selectedClassInPrerequisites value. |
|
5300 |
self listOfRequiredClassesInPrerequisites value add:sel. |
|
5301 |
self listOfAllClassesInPrerequisites value remove:sel. |
|
5302 |
self selectedClassInPrerequisites value:nil. |
|
5303 |
||
5304 |
"/ also add any autoloaded superclass(es) |
|
5305 |
||
5306 |
cls := Smalltalk at:sel asSymbol. |
|
5307 |
(cls notNil and:[cls isLoaded]) ifTrue:[ |
|
1371 | 5308 |
cls allSuperclasses do:[:superClass | |
5309 |
|sName| |
|
5310 |
||
5311 |
(superClass notNil |
|
5312 |
and:[superClass isLoaded |
|
5313 |
and:[superClass wasAutoloaded]]) ifTrue:[ |
|
5314 |
|sName idx| |
|
5315 |
sName := superClass name. |
|
5316 |
idx := self listOfAllClassesInPrerequisites value findFirst:[:s | s string = sName]. |
|
5317 |
idx ~~ 0 ifTrue:[ |
|
5318 |
self listOfAllClassesInPrerequisites value removeIndex:idx. |
|
5319 |
self listOfRequiredClassesInPrerequisites value add:sName asString allBold. |
|
5320 |
]. |
|
5321 |
] |
|
5322 |
] |
|
1109 | 5323 |
]. |
5324 |
self listOfRequiredClassesInPrerequisites changed. |
|
5325 |
self listOfAllClassesInPrerequisites changed. |
|
5326 |
self accept |
|
5327 |
! |
|
5328 |
||
5329 |
addProjectToPrerequisites |
|
5330 |
|sel| |
|
5331 |
||
5332 |
sel := self selectedProjectInPrerequisites value. |
|
5333 |
self listOfRequiredProjectsInPrerequisites value add:sel. |
|
5334 |
self listOfAllProjectsInPrerequisites value remove:sel. |
|
5335 |
self selectedProjectInPrerequisites value:nil. |
|
5336 |
||
5337 |
self listOfRequiredProjectsInPrerequisites changed. |
|
5338 |
self listOfAllProjectsInPrerequisites changed. |
|
5339 |
self accept |
|
5340 |
||
5341 |
! |
|
5342 |
||
1206 | 5343 |
browseMethod |
1218 | 5344 |
"browse the selected method (from tree)" |
5345 |
||
5346 |
|patchWho mthdInfo cls mthd| |
|
5347 |
||
5348 |
mthdInfo := self selectedTreeNode value value. |
|
5349 |
cls := Smalltalk at: mthdInfo className asSymbol. |
|
5350 |
cls notNil ifTrue:[ |
|
1371 | 5351 |
mthd := cls compiledMethodAt:(mthdInfo methodName asSymbol). |
5352 |
mthd notNil ifTrue:[ |
|
5353 |
SystemBrowser browseClass:cls selector:mthdInfo methodName. |
|
5354 |
^ self |
|
5355 |
] |
|
1218 | 5356 |
]. |
5357 |
self information:'Method not (yet) loaded.' |
|
5358 |
! |
|
5359 |
||
5360 |
browseMethodFromCanvas |
|
1206 | 5361 |
"browse the selected table-rows method (from patches canvas)" |
5362 |
||
5363 |
|patchWho patchIndex| |
|
5364 |
||
1218 | 5365 |
patchIndex := self selectedPatchInRightCanvas value. |
1206 | 5366 |
patchWho := self patchesList at:patchIndex. |
5367 |
SystemBrowser browseClass:patchWho methodClass selector:patchWho methodSelector. |
|
5368 |
||
5369 |
! |
|
5370 |
||
5371 |
browseMethodFull |
|
1218 | 5372 |
"browse the selected method (from tree)" |
5373 |
||
5374 |
|patchWho mthdInfo cls mthd| |
|
5375 |
||
5376 |
mthdInfo := self selectedTreeNode value value. |
|
5377 |
cls := Smalltalk at: mthdInfo className asSymbol. |
|
5378 |
cls notNil ifTrue:[ |
|
1371 | 5379 |
mthd := cls compiledMethodAt:(mthdInfo methodName asSymbol). |
5380 |
mthd notNil ifTrue:[ |
|
5381 |
SystemBrowser openInClass:cls selector:mthdInfo methodName. |
|
5382 |
^ self |
|
5383 |
] |
|
1218 | 5384 |
]. |
5385 |
self information:'Method not (yet) loaded.' |
|
5386 |
||
5387 |
! |
|
5388 |
||
5389 |
browseMethodFullFromCanvas |
|
1206 | 5390 |
"browse the selected table-rows method (from patches canvas)" |
5391 |
||
5392 |
|patchWho patchIndex| |
|
5393 |
||
1218 | 5394 |
patchIndex := self selectedPatchInRightCanvas value. |
1206 | 5395 |
patchWho := self patchesList at:patchIndex. |
5396 |
SystemBrowser openInClass:patchWho methodClass selector:patchWho methodSelector. |
|
5397 |
||
5398 |
! |
|
5399 |
||
1109 | 5400 |
cancel |
5401 |
"reload aspects from the project" |
|
5402 |
||
5403 |
self readAspectsFromProject |
|
5404 |
! |
|
5405 |
||
5406 |
removeClassFromPrerequisites |
|
5407 |
|sel cls myClasses| |
|
5408 |
||
5409 |
sel := self selectedRequiredClassInPrerequisites value. |
|
5410 |
cls := Smalltalk at:sel asSymbol. |
|
5411 |
||
5412 |
"/ check if this affects my classes |
|
5413 |
(cls notNil and:[cls isLoaded and:[cls wasAutoloaded]]) ifTrue:[ |
|
1371 | 5414 |
myClasses := self currentProjectsClassNames. |
5415 |
cls allSubclassesDo:[:cls | |
|
5416 |
(myClasses includes:cls name) ifTrue:[ |
|
5417 |
self valueOfInfoLabel value:'Attention - this class is required by ' , cls name. |
|
5418 |
(self confirm:'Attention - this class is required by ' , cls name asText allBold, '.\(The project could later fail to load correctly)\\Really remove ?' withCRs) ifFalse:[ |
|
5419 |
^ self |
|
5420 |
]. |
|
5421 |
]. |
|
5422 |
] |
|
1109 | 5423 |
]. |
5424 |
||
5425 |
self listOfAllClassesInPrerequisites value add:sel. |
|
5426 |
self listOfRequiredClassesInPrerequisites value remove:sel. |
|
5427 |
self selectedRequiredClassInPrerequisites value:nil. |
|
5428 |
||
5429 |
"/ also remove any autoloaded subclass(es) |
|
5430 |
||
5431 |
(cls notNil and:[cls isLoaded and:[cls wasAutoloaded]]) ifTrue:[ |
|
1371 | 5432 |
cls allSubclassesDo:[:cls | |
5433 |
|entry| |
|
5434 |
||
5435 |
entry := self listOfRequiredClassesInPrerequisites value remove:cls name ifAbsent:nil. |
|
5436 |
entry notNil ifTrue:[ |
|
5437 |
self listOfAllClassesInPrerequisites value add:cls name. |
|
5438 |
] |
|
5439 |
] |
|
1109 | 5440 |
]. |
5441 |
||
5442 |
self listOfRequiredClassesInPrerequisites changed. |
|
5443 |
self listOfAllClassesInPrerequisites changed. |
|
5444 |
self accept |
|
5445 |
||
5446 |
! |
|
5447 |
||
5448 |
removeProjectFromPrerequisites |
|
5449 |
|sel| |
|
5450 |
||
5451 |
sel := self selectedRequiredProjectInPrerequisites value. |
|
5452 |
self listOfAllProjectsInPrerequisites value add:sel. |
|
5453 |
self listOfRequiredProjectsInPrerequisites value remove:sel. |
|
5454 |
self selectedRequiredProjectInPrerequisites value:nil. |
|
5455 |
||
5456 |
self listOfRequiredProjectsInPrerequisites changed. |
|
5457 |
self listOfAllProjectsInPrerequisites changed. |
|
5458 |
self accept |
|
5459 |
||
5460 |
! |
|
5461 |
||
5462 |
showInfoForRequiredClass:entry |
|
5463 |
"show why a class is required" |
|
5464 |
||
5465 |
|cls myClasses| |
|
5466 |
||
5467 |
entry notNil ifTrue:[ |
|
1371 | 5468 |
myClasses := self currentProjectsClassNames asSet. |
5469 |
||
5470 |
cls := Smalltalk at:entry string asSymbol. |
|
5471 |
cls allSubclasses do:[:subClass | |
|
5472 |
(myClasses includes:subClass name) ifTrue:[ |
|
5473 |
self valueOfInfoLabel value:('Required by ' , subClass name). |
|
5474 |
^ self. |
|
5475 |
] |
|
5476 |
]. |
|
1109 | 5477 |
]. |
5478 |
self valueOfInfoLabel value:nil |
|
1025 | 5479 |
! ! |
5480 |
||
1248 | 5481 |
!ProjectBrowser methodsFor:'user actions - menu'! |
5482 |
||
5483 |
addClass |
|
5484 |
"ask for, and add a single class" |
|
5485 |
||
5486 |
|p className cls| |
|
5487 |
||
5488 |
p := self currentProject. |
|
5489 |
||
5490 |
className := Dialog request:'Class to add:'. |
|
5491 |
className size == 0 ifTrue:[^ self]. |
|
5492 |
cls := Smalltalk classNamed:className. |
|
5493 |
cls isNil ifTrue:[ |
|
1371 | 5494 |
"/ a new one |
5495 |
(self confirm:'This is a new class. Add ?') ifFalse:[ |
|
5496 |
^ self |
|
5497 |
]. |
|
5498 |
p |
|
5499 |
addClass:className |
|
5500 |
classFileName:((Smalltalk fileNameForClass:className) , '.st'). |
|
1248 | 5501 |
] ifFalse:[ |
1371 | 5502 |
cls package ~= p package ifTrue:[ |
5503 |
"/ a new one |
|
5504 |
(self confirm:'Change the classes package from ' , cls package , ' to ' , p package , ' ?') ifFalse:[ |
|
5505 |
^ self |
|
5506 |
]. |
|
5507 |
cls package:p package. |
|
5508 |
]. |
|
5509 |
p |
|
5510 |
addClass:cls name |
|
5511 |
classFileName:(cls classFilename |
|
5512 |
? ((Smalltalk fileNameForClass:cls) , '.st')). |
|
1248 | 5513 |
]. |
5514 |
||
5515 |
self updateClassListForProject:p |
|
5516 |
||
5517 |
! |
|
5518 |
||
5519 |
addClassesFromFilesInDirectory |
|
5520 |
"add all classes found from files in the project directory" |
|
5521 |
||
5522 |
self addClassesFromFilesInDirectoryWithFilter:nil |
|
5523 |
! |
|
5524 |
||
5525 |
addClassesFromFilesInDirectoryIfPresentInImage |
|
5526 |
"add all classes found from files in the project directory, |
|
5527 |
but only if class is currently present in the image." |
|
5528 |
||
5529 |
self addClassesFromFilesInDirectoryWithFilter:[:classOrName | classOrName isBehavior] |
|
5530 |
||
5531 |
! |
|
5532 |
||
5533 |
addClassesFromFilesInDirectoryWithFilter:aFilterBlockOrNil |
|
5534 |
"helper to add all classes found from files in the project directory" |
|
5535 |
||
5536 |
|project existingClasses prjDirectory anyChange numSTFilesFound| |
|
5537 |
||
5538 |
project := self currentProject. |
|
5539 |
||
5540 |
existingClasses := project classInfo. |
|
5541 |
anyChange := false. |
|
5542 |
numSTFilesFound := 0. |
|
5543 |
||
5544 |
prjDirectory := project directory asFilename. |
|
5545 |
(prjDirectory exists and:[prjDirectory isDirectory]) ifFalse:[ |
|
1371 | 5546 |
self warn:'Invalid project directory: ' , prjDirectory pathName. |
5547 |
^ self |
|
1248 | 5548 |
]. |
5549 |
||
5550 |
prjDirectory directoryContents do:[:fn | |
|
1371 | 5551 |
|f oldInfo cls| |
5552 |
||
5553 |
f := prjDirectory construct:fn. |
|
5554 |
(f hasSuffix:'st') ifTrue:[ |
|
5555 |
numSTFilesFound := numSTFilesFound + 1. |
|
5556 |
||
5557 |
oldInfo := existingClasses |
|
5558 |
detect:[:clsInfo | |
|
5559 |
clsInfo classFileName = fn |
|
5560 |
] |
|
5561 |
ifNone:nil. |
|
5562 |
oldInfo isNil ifTrue:[ |
|
5563 |
"/ extract className from fileName ... |
|
5564 |
cls := Smalltalk filenameAbbreviations keyAtValue:(f withoutSuffix baseName ). |
|
5565 |
cls isNil ifTrue:[ |
|
5566 |
cls := f withoutSuffix baseName asSymbol. |
|
5567 |
project defaultNameSpace notNil ifTrue:[ |
|
5568 |
cls := (project defaultNameSpace name , '::' , cls) asSymbol |
|
5569 |
] |
|
5570 |
]. |
|
5571 |
(aFilterBlockOrNil isNil |
|
5572 |
or:[aFilterBlockOrNil value:cls]) ifTrue:[ |
|
5573 |
project addClass:cls classFileName:fn. |
|
5574 |
anyChange := true. |
|
1248 | 5575 |
Transcript showCR:'added ' , fn , ' as class: ' , cls printString. |
1371 | 5576 |
] ifFalse:[ |
1248 | 5577 |
Transcript showCR:'skipped ' , fn , ' as class: ' , cls printString. |
1371 | 5578 |
] |
5579 |
||
5580 |
] |
|
5581 |
] |
|
1248 | 5582 |
]. |
5583 |
||
5584 |
anyChange ifTrue:[ |
|
1371 | 5585 |
self updateClassListForProject:project |
1248 | 5586 |
] ifFalse:[ |
1371 | 5587 |
numSTFilesFound == 0 ifTrue:[ |
5588 |
self information:'No st-sourcefiles found in ' , prjDirectory pathName. |
|
5589 |
] |
|
1248 | 5590 |
] |
5591 |
! |
|
5592 |
||
5593 |
addClassesFromImage |
|
5594 |
"add classes with this packageId found in the image" |
|
5595 |
||
5596 |
|project| |
|
5597 |
||
5598 |
project := self currentProject. |
|
5599 |
Smalltalk allClassesDo:[:aClass | |
|
1371 | 5600 |
aClass isMeta ifFalse:[ |
5601 |
(aClass isNameSpace not or:[aClass == Smalltalk]) ifTrue:[ |
|
5602 |
aClass package = project package ifTrue:[ |
|
5603 |
(project classInfoFor:aClass) isNil ifTrue:[ |
|
5604 |
project |
|
5605 |
addClass:aClass name |
|
5606 |
classFileName:(aClass classFilename |
|
5607 |
? ((Smalltalk fileNameForClass:aClass) , '.st')). |
|
5608 |
] |
|
5609 |
] |
|
5610 |
] |
|
5611 |
] |
|
1248 | 5612 |
]. |
5613 |
||
5614 |
self updateClassListForProject:project |
|
5615 |
||
5616 |
! |
|
5617 |
||
1291 | 5618 |
addPrerequisitePackage |
5619 |
"ask for, and add a single class" |
|
5620 |
||
5621 |
|p packageName cls| |
|
5622 |
||
5623 |
p := self currentProject. |
|
5624 |
||
5625 |
packageName := Dialog request:'Package to add:'. |
|
5626 |
packageName size == 0 ifTrue:[^ self]. |
|
5627 |
||
5628 |
p addPrerequisitePackage:packageName. |
|
1292 | 5629 |
"/ self updatePrerequisitePackageListForProject:p. |
1291 | 5630 |
|
5631 |
self listOfRequiredProjectsInPrerequisites value add:packageName. |
|
5632 |
self listOfAllProjectsInPrerequisites value remove:packageName ifAbsent:nil. |
|
5633 |
self selectedProjectInPrerequisites value:nil. |
|
5634 |
||
5635 |
self listOfRequiredProjectsInPrerequisites changed. |
|
5636 |
self listOfAllProjectsInPrerequisites changed. |
|
5637 |
self accept |
|
5638 |
||
5639 |
! |
|
5640 |
||
1248 | 5641 |
browseClasses |
5642 |
"browse the projects classes" |
|
5643 |
||
5644 |
|ns p classes nBad uniqueClasses| |
|
5645 |
||
5646 |
p := self currentProject. |
|
5647 |
classes := p classes |
|
1371 | 5648 |
collect:[:clsOrName | |
5649 |
|cls realName| |
|
5650 |
||
5651 |
clsOrName isSymbol ifTrue:[ |
|
5652 |
realName := clsOrName. |
|
5653 |
(realName includes:$:) ifTrue:[ |
|
5654 |
(realName startsWith:'Smalltalk::') ifTrue:[ |
|
5655 |
realName := (realName copyFrom:'Smalltalk::' size + 1) asSymbol |
|
5656 |
] |
|
5657 |
]. |
|
5658 |
cls := Smalltalk at:realName |
|
5659 |
] ifFalse:[ |
|
5660 |
cls := clsOrName |
|
5661 |
]. |
|
5662 |
cls |
|
5663 |
]. |
|
1248 | 5664 |
|
5665 |
"/ remove duplicates - but want to preserve order |
|
5666 |
"/ thats why we do not use asIdentitySet asOrderedCollection |
|
5667 |
uniqueClasses := OrderedCollection new. |
|
5668 |
classes do:[:cls | (uniqueClasses includesIdentical:cls) ifFalse:[uniqueClasses add:cls]]. |
|
5669 |
||
5670 |
nBad := classes inject:0 into:[:sum :el | el isNil ifTrue:[sum+1] ifFalse:[sum]]. |
|
5671 |
nBad ~~ 0 ifTrue:[ |
|
1371 | 5672 |
classes := classes select:[:cls | cls notNil]. |
5673 |
self warn:('Oops - %1 classes could not be found.\\You should probably load them first.' bindWith:nBad) withCRs. |
|
1248 | 5674 |
]. |
5675 |
||
5676 |
||
5677 |
SystemBrowser |
|
1371 | 5678 |
browseClasses:classes title:('Classes in ' , p name) sort:true. |
1248 | 5679 |
|
5680 |
||
5681 |
||
5682 |
! |
|
5683 |
||
1370 | 5684 |
buildAbbrevFile |
5685 |
"generate an abbrev.stc file in the projects directory" |
|
5686 |
||
5687 |
|p | |
|
5688 |
||
5689 |
p := self currentProject. |
|
5690 |
p isNil ifTrue:[ |
|
1371 | 5691 |
self information:'No project selected'. |
5692 |
^ self |
|
1370 | 5693 |
]. |
5694 |
||
5695 |
self withCursor:Cursor wait do:[ |
|
1371 | 5696 |
self makeTranscriptVisible. |
5697 |
TextCollector transcriptQuerySignal answer:self transcript |
|
5698 |
do:[ |
|
5699 |
p createAbbrevFile. |
|
5700 |
] |
|
1370 | 5701 |
] |
5702 |
! |
|
5703 |
||
1248 | 5704 |
buildAll |
5705 |
"build all as specified in the deployment section" |
|
5706 |
||
5707 |
|p| |
|
5708 |
||
5709 |
p := self currentProject. |
|
5710 |
p isNil ifTrue:[ |
|
1371 | 5711 |
self information:'No project selected'. |
5712 |
^ self |
|
1248 | 5713 |
]. |
5714 |
||
1251 | 5715 |
self makeTranscriptVisible. |
5716 |
||
1248 | 5717 |
self withCursor:Cursor wait do:[ |
1371 | 5718 |
"/ prepare the building ... |
5719 |
||
5720 |
TextCollector transcriptQuerySignal answer:self transcript |
|
5721 |
do:[ |
|
5722 |
(p propertyAt:#deliverLoadAllFile) == true ifTrue:[ |
|
5723 |
p createLoadAllFile |
|
5724 |
]. |
|
5725 |
||
5726 |
(p propertyAt:#deliverSources) == true ifTrue:[ |
|
5727 |
p createSourceFiles |
|
5728 |
]. |
|
5729 |
||
5730 |
(p propertyAt:#deliverMakefiles) == true ifTrue:[ |
|
5731 |
self buildMakefiles |
|
5732 |
]. |
|
5733 |
||
5734 |
(p propertyAt:#deliverCompiledBinary) == true ifTrue:[ |
|
5735 |
self buildCompiledClassLibrary |
|
5736 |
]. |
|
5737 |
||
5738 |
(p propertyAt:#deliverByteCode) == true ifTrue:[ |
|
5739 |
self buildByteCodeClassLibrary |
|
5740 |
]. |
|
5741 |
||
5742 |
"/ now, deploy ... |
|
5743 |
||
5744 |
(p propertyAt:#deliverZipArchive) == true ifTrue:[ |
|
5745 |
p buildZipArchive |
|
5746 |
]. |
|
5747 |
||
5748 |
(p propertyAt:#deliverTarArchive) == true ifTrue:[ |
|
5749 |
p buildTarArchive |
|
5750 |
]. |
|
5751 |
||
5752 |
(p propertyAt:#deliverGZipArchive) == true ifTrue:[ |
|
5753 |
p buildGZipArchive |
|
5754 |
]. |
|
5755 |
]. |
|
1248 | 5756 |
]. |
5757 |
||
5758 |
||
5759 |
! |
|
5760 |
||
5761 |
buildCompiledClassLibrary |
|
5762 |
"compile a binary class library in the projects directory" |
|
5763 |
||
1251 | 5764 |
|p diagnostic error textBox| |
1248 | 5765 |
|
5766 |
p := self currentProject. |
|
5767 |
p isNil ifTrue:[ |
|
1371 | 5768 |
self information:'No project selected'. |
5769 |
^ self |
|
1248 | 5770 |
]. |
5771 |
||
5772 |
"/ check for directory ... |
|
5773 |
(self checkForProjectDirectoryFor:p) ifFalse:[ |
|
1371 | 5774 |
^ self |
1248 | 5775 |
]. |
5776 |
||
5777 |
"/ check for Make.proto ... |
|
5778 |
(self checkForMakeProtoFor:p) ifFalse:[ |
|
1371 | 5779 |
^ self |
1248 | 5780 |
]. |
5781 |
||
5782 |
"/ check for Makefile ... |
|
5783 |
(self checkForMakefileFor:p) ifFalse:[ |
|
1371 | 5784 |
^ self |
1248 | 5785 |
]. |
5786 |
||
1251 | 5787 |
self makeTranscriptVisible. |
5788 |
||
1248 | 5789 |
"/ now, execute the makefile found there ... |
1251 | 5790 |
diagnostic := self transcript. |
5791 |
||
1248 | 5792 |
error := false. |
1251 | 5793 |
diagnostic nextPutLine:('Building compiled class library...' asText emphasizeAllWith:#color->Color blue). |
5794 |
||
5795 |
self withCursor:Cursor wait do:[ |
|
1371 | 5796 |
OperatingSystem |
5797 |
executeCommand:'make' |
|
5798 |
inputFrom:nil |
|
5799 |
outputTo:diagnostic |
|
5800 |
errorTo:diagnostic |
|
5801 |
inDirectory:(p directory asFilename pathName) |
|
5802 |
onError:[:status | error := true]. |
|
1248 | 5803 |
]. |
5804 |
||
5805 |
||
1251 | 5806 |
|
1248 | 5807 |
! |
5808 |
||
5809 |
buildLoadAllFile |
|
5810 |
"generate a loadAll file in the projects directory" |
|
5811 |
||
5812 |
|p | |
|
5813 |
||
5814 |
p := self currentProject. |
|
5815 |
p isNil ifTrue:[ |
|
1371 | 5816 |
self information:'No project selected'. |
5817 |
^ self |
|
1248 | 5818 |
]. |
5819 |
||
5820 |
self withCursor:Cursor wait do:[ |
|
1371 | 5821 |
self makeTranscriptVisible. |
5822 |
TextCollector transcriptQuerySignal answer:self transcript |
|
5823 |
do:[ |
|
5824 |
p createLoadAllFile. |
|
5825 |
] |
|
1248 | 5826 |
] |
5827 |
! |
|
5828 |
||
1278 | 5829 |
buildMakefile |
5830 |
"generate a Makefile/nt.mak/vms.mak in the projects directory" |
|
5831 |
||
5832 |
|p | |
|
5833 |
||
5834 |
p := self currentProject. |
|
5835 |
p isNil ifTrue:[ |
|
1371 | 5836 |
self information:'No project selected'. |
5837 |
^ self |
|
1278 | 5838 |
]. |
5839 |
||
5840 |
self withCursor:Cursor wait do:[ |
|
1371 | 5841 |
self makeTranscriptVisible. |
5842 |
TextCollector transcriptQuerySignal answer:self transcript |
|
5843 |
do:[ |
|
5844 |
p createMakefile |
|
5845 |
] |
|
1278 | 5846 |
]. |
5847 |
||
5848 |
"Created: / 16.12.1999 / 01:29:30 / cg" |
|
5849 |
! |
|
5850 |
||
1248 | 5851 |
buildMakefiles |
5852 |
"generate a Make.proto and Makefile in the projects directory" |
|
5853 |
||
5854 |
|p | |
|
5855 |
||
5856 |
p := self currentProject. |
|
5857 |
p isNil ifTrue:[ |
|
1371 | 5858 |
self information:'No project selected'. |
5859 |
^ self |
|
1248 | 5860 |
]. |
5861 |
||
5862 |
self withCursor:Cursor wait do:[ |
|
1371 | 5863 |
self makeTranscriptVisible. |
5864 |
TextCollector transcriptQuerySignal answer:self transcript |
|
5865 |
do:[ |
|
5866 |
p createProtoMakefile. |
|
5867 |
p createMakefile |
|
5868 |
] |
|
1248 | 5869 |
]. |
5870 |
! |
|
5871 |
||
1298 | 5872 |
buildNTMakefile |
5873 |
"generate an nt.mak in the projects directory" |
|
5874 |
||
5875 |
|p | |
|
5876 |
||
5877 |
p := self currentProject. |
|
5878 |
p isNil ifTrue:[ |
|
1371 | 5879 |
self information:'No project selected'. |
5880 |
^ self |
|
1298 | 5881 |
]. |
5882 |
||
5883 |
self withCursor:Cursor wait do:[ |
|
1371 | 5884 |
self makeTranscriptVisible. |
5885 |
TextCollector transcriptQuerySignal answer:self transcript |
|
5886 |
do:[ |
|
5887 |
p createNTMakefile |
|
5888 |
] |
|
1298 | 5889 |
]. |
5890 |
||
5891 |
"Created: / 19.1.2000 / 15:55:17 / cg" |
|
5892 |
! |
|
5893 |
||
1248 | 5894 |
checkInAllClasses |
5895 |
"check in all classes" |
|
5896 |
||
1289 | 5897 |
|p classes classesToCheckIn anyBad| |
1248 | 5898 |
|
5899 |
p := self currentProject. |
|
5900 |
p isNil ifTrue:[ |
|
1371 | 5901 |
self information:'No project selected'. |
5902 |
^ self |
|
1248 | 5903 |
]. |
5904 |
||
1289 | 5905 |
classesToCheckIn := OrderedCollection new. |
5906 |
anyBad := false. |
|
5907 |
||
5908 |
"/ collect in classes ... |
|
1248 | 5909 |
|
5910 |
classes := p classes. |
|
1289 | 5911 |
classes do:[:aClassOrClassName | |
1371 | 5912 |
|cls clsName| |
5913 |
||
5914 |
cls := aClassOrClassName. |
|
5915 |
cls isString ifTrue:[ |
|
5916 |
cls := Smalltalk at:cls asSymbol. |
|
5917 |
clsName := aClassOrClassName |
|
5918 |
] ifFalse:[ |
|
5919 |
clsName := aClassOrClassName name |
|
5920 |
]. |
|
5921 |
||
5922 |
cls isBehavior ifFalse:[ |
|
5923 |
Transcript showCR:('ProjectBrowser: cannot checkIn unloaded class: ' , clsName). |
|
5924 |
anyBad := true. |
|
5925 |
] ifTrue:[ |
|
5926 |
cls isLoaded ifFalse:[ |
|
5927 |
Transcript showCR:('ProjectBrowser: cannot checkIn unloaded class: ' , clsName). |
|
5928 |
anyBad := true. |
|
5929 |
] ifTrue:[ |
|
5930 |
cls owningClass isNil ifTrue:[ "/ skip private classes |
|
5931 |
Transcript showCR:('ProjectBrowser: checking in class: ' , clsName). |
|
5932 |
classesToCheckIn add:cls. |
|
5933 |
] |
|
5934 |
] |
|
5935 |
] |
|
1248 | 5936 |
]. |
1289 | 5937 |
anyBad ifTrue:[^ self]. |
5938 |
||
5939 |
self checkInClasses:classesToCheckIn. |
|
1248 | 5940 |
|
5941 |
! |
|
5942 |
||
1267 | 5943 |
checkInMakefiles |
5944 |
"check in the Make.proto, Makefile, nt.mak and vms.mak files" |
|
5945 |
||
5946 |
|p| |
|
5947 |
||
5948 |
p := self currentProject. |
|
5949 |
p isNil ifTrue:[ |
|
1371 | 5950 |
self information:'No project selected'. |
5951 |
^ self |
|
1267 | 5952 |
]. |
5953 |
||
1290 | 5954 |
self warn:'CheckIn of Makefiles not yet implemented.'. |
1267 | 5955 |
^ self. |
5956 |
||
5957 |
"/ check it in ... |
|
5958 |
||
5959 |
||
5960 |
||
5961 |
! |
|
5962 |
||
1248 | 5963 |
checkInMethods |
5964 |
"check in all extensions (patches)" |
|
5965 |
||
5966 |
|p methods anyMethodMissing| |
|
5967 |
||
5968 |
p := self currentProject. |
|
5969 |
p isNil ifTrue:[ |
|
1371 | 5970 |
self information:'No project selected'. |
5971 |
^ self |
|
1248 | 5972 |
]. |
5973 |
||
1290 | 5974 |
self warn:'CheckIn of extensions not yet implemented.'. |
1267 | 5975 |
^ self. |
5976 |
||
1248 | 5977 |
"/ check methods ... |
5978 |
||
5979 |
anyMethodMissing := false. |
|
5980 |
methods := p methods. |
|
5981 |
methods size > 0 ifTrue:[ |
|
1371 | 5982 |
methods do:[:aMethod | |
5983 |
aMethod isMethod ifFalse:[ |
|
5984 |
Transcript showCR:('ProjectBrowser: cannot checkIn unloaded method: ' , aMethod className , ' ' , aMethod methodName). |
|
5985 |
anyMethodMissing := true. |
|
5986 |
] |
|
5987 |
]. |
|
5988 |
anyMethodMissing ifTrue:[ |
|
5989 |
Transcript showCR:'ProjectBrowser: cannot save method patches & extensions due to missing method(s)'. |
|
5990 |
] ifFalse:[ |
|
5991 |
Transcript showCR:('ProjectBrowser: checking in patches & extensions'). |
|
5992 |
self checkInMethods:methods |
|
5993 |
]. |
|
1248 | 5994 |
]. |
5995 |
||
5996 |
! |
|
5997 |
||
5998 |
checkInProject |
|
5999 |
"check in all classes and extensions" |
|
6000 |
||
6001 |
|p| |
|
6002 |
||
6003 |
p := self currentProject. |
|
6004 |
p isNil ifTrue:[ |
|
1371 | 6005 |
self information:'No project selected'. |
6006 |
^ self |
|
1248 | 6007 |
]. |
6008 |
||
6009 |
"/ check in classes ... |
|
6010 |
self checkInAllClasses. |
|
6011 |
||
6012 |
"/ check methods ... |
|
6013 |
self checkInMethods. |
|
6014 |
||
1290 | 6015 |
"/ build & check in makefiles |
6016 |
"/ self buildMakefiles. |
|
6017 |
self checkInMakefiles. |
|
6018 |
||
1248 | 6019 |
"/ check in the project file itself |
6020 |
self checkInProjectFile. |
|
6021 |
||
6022 |
! |
|
6023 |
||
1267 | 6024 |
checkInProjectFile |
6025 |
"check in the prj-file" |
|
6026 |
||
6027 |
|p| |
|
6028 |
||
6029 |
p := self currentProject. |
|
6030 |
p isNil ifTrue:[ |
|
1371 | 6031 |
self information:'No project selected'. |
6032 |
^ self |
|
1267 | 6033 |
]. |
6034 |
||
1290 | 6035 |
self warn:'CheckIn of ProjectFile not yet implemented.'. |
1267 | 6036 |
^ self. |
6037 |
||
6038 |
"/ check it in ... |
|
6039 |
||
6040 |
||
6041 |
||
6042 |
! |
|
6043 |
||
1248 | 6044 |
inspectCurrentProject |
6045 |
"inspect the current project" |
|
6046 |
||
6047 |
self hasProjectSelected ifTrue:[ |
|
1371 | 6048 |
self currentProject inspect. |
1248 | 6049 |
] |
6050 |
! |
|
6051 |
||
6052 |
loadClassesFromDirectory |
|
6053 |
"load all classes as contained in the project into the system" |
|
6054 |
||
6055 |
self withReadCursorDo:[ |
|
1371 | 6056 |
self currentProject loadClassesFromProjectDirectory. |
1248 | 6057 |
]. |
6058 |
||
6059 |
! |
|
6060 |
||
1289 | 6061 |
loadClassesFromRepository |
6062 |
"load all classes as contained in the project from the source code |
|
6063 |
repository into the system" |
|
6064 |
||
6065 |
self warn:'not yet implemented - please load from directory' |
|
6066 |
||
6067 |
! |
|
6068 |
||
1248 | 6069 |
makeCurrentProject |
6070 |
"make the selected Project the current project" |
|
6071 |
||
6072 |
|project| |
|
6073 |
||
6074 |
self hasProjectSelected ifTrue:[ |
|
1371 | 6075 |
project := self currentProject. |
6076 |
||
6077 |
Project current:project. |
|
6078 |
self showWhat value == #current ifTrue:[ |
|
6079 |
self updateProjectTree |
|
6080 |
] |
|
1248 | 6081 |
] |
6082 |
! |
|
6083 |
||
6084 |
moveMethodToProject |
|
6085 |
|p mthd newPackage| |
|
6086 |
||
6087 |
p := self currentProject. |
|
6088 |
||
6089 |
mthd := self selectedMethod. |
|
6090 |
mthd notNil ifTrue:[ |
|
1371 | 6091 |
newPackage := Dialog request:'Move to project:' initialAnswer:lastMoveToProject. |
6092 |
newPackage size > 0 ifTrue:[ |
|
6093 |
lastMoveToProject := newPackage. |
|
6094 |
newPackage ~= p package ifTrue:[ |
|
6095 |
mthd package:newPackage asSymbol. |
|
6096 |
p removeMethod:mthd. |
|
6097 |
self updatePatchesListForProject:p. |
|
6098 |
self projectTree remove:self selectedTreeNode. |
|
6099 |
] |
|
6100 |
] |
|
1248 | 6101 |
]. |
6102 |
! |
|
6103 |
||
6104 |
newProject |
|
6105 |
self newProject:Project new. |
|
6106 |
||
6107 |
! |
|
6108 |
||
6109 |
newProject:newProject |
|
6110 |
|newNode| |
|
6111 |
||
6112 |
newNode := self nodeFor:newProject. |
|
6113 |
self addProjectNodeToTree:newNode. |
|
6114 |
self projectTreeHolder root:projectTree. |
|
6115 |
"/ self projectTreeHolder selectNode:newNode. |
|
6116 |
"/ self projectTreeHolder expand:newNode. |
|
6117 |
||
6118 |
self readAspectsFromProject. |
|
6119 |
newProject wasLoadedFromFile ifFalse:[ |
|
1371 | 6120 |
self updateListOfRequiredPrerequisiteClasses. |
1248 | 6121 |
] |
6122 |
! |
|
6123 |
||
6124 |
newSubProject |
|
6125 |
|projectNode subProjectsNode newNode parentProject newProject| |
|
6126 |
||
6127 |
projectNode := self currentProjectNode. |
|
6128 |
||
6129 |
projectNode notNil ifTrue:[ |
|
1371 | 6130 |
parentProject := projectNode contents. |
6131 |
subProjectsNode := projectNode children detect:[:child | child contents == #subprojects]. |
|
1248 | 6132 |
self halt. |
1371 | 6133 |
parentProject notNil ifTrue:[ |
6134 |
newProject := Project new. |
|
6135 |
newNode := self nodeFor:newProject. |
|
6136 |
||
6137 |
parentProject addSubProject:newProject. |
|
6138 |
subProjectsNode add:newNode. |
|
6139 |
self projectTreeHolder root:projectTree. |
|
6140 |
self projectTreeHolder selectNode:newNode. |
|
6141 |
] |
|
1248 | 6142 |
] |
6143 |
||
6144 |
! |
|
6145 |
||
6146 |
openDocumentation |
|
6147 |
self openHTMLDocument: 'tools/pbrowser/TOP.html' |
|
6148 |
||
6149 |
! |
|
6150 |
||
6151 |
openProject |
|
6152 |
|fn| |
|
6153 |
||
6154 |
fn := Dialog |
|
1371 | 6155 |
requestFileName:'filename:' |
6156 |
default:nil |
|
6157 |
ifFail:nil |
|
6158 |
pattern:'*.prj' |
|
6159 |
fromDirectory:(FileSelectionBox lastFileSelectionDirectory). |
|
1248 | 6160 |
|
6161 |
fn notNil ifTrue:[ |
|
1371 | 6162 |
self loadFromProjectFile:fn. |
1248 | 6163 |
] |
6164 |
! |
|
6165 |
||
6166 |
removeMethod |
|
6167 |
|p mthd| |
|
6168 |
||
6169 |
p := self currentProject. |
|
6170 |
||
6171 |
mthd := self selectedMethod. |
|
6172 |
mthd notNil ifTrue:[ |
|
1371 | 6173 |
(self confirm:'Really remove the method (from both project and image) ?') ifTrue:[ |
6174 |
p removeMethod:mthd. |
|
6175 |
mthd who methodClass removeSelector:mthd who methodSelector. |
|
6176 |
self updatePatchesListForProject:p. |
|
6177 |
self projectTree remove:self selectedTreeNode. |
|
6178 |
] |
|
1327 | 6179 |
] ifFalse:[ |
1371 | 6180 |
self information:'No such method in the image (yet)'. |
1327 | 6181 |
] |
1248 | 6182 |
! |
6183 |
||
6184 |
removeMethodFromProject |
|
6185 |
|p mthd| |
|
6186 |
||
6187 |
p := self currentProject. |
|
6188 |
||
6189 |
mthd := self selectedMethod. |
|
6190 |
mthd notNil ifTrue:[ |
|
1371 | 6191 |
(self confirm:'Really remove the method (from the project) ?') ifTrue:[ |
6192 |
mthd package:#unknown. |
|
6193 |
p removeMethod:mthd. |
|
6194 |
self updatePatchesListForProject:p. |
|
6195 |
self projectTree remove:self selectedTreeNode. |
|
6196 |
] |
|
1248 | 6197 |
]. |
6198 |
! |
|
6199 |
||
6200 |
removeProject |
|
6201 |
|projectToRemove selectedNode subNode newNode parentNode parentProject newProject| |
|
6202 |
||
6203 |
self hasProjectNodeSelected ifTrue:[ |
|
1371 | 6204 |
selectedNode := self selectedTreeNode. |
6205 |
projectToRemove := selectedNode contents. |
|
6206 |
||
6207 |
(self confirm:'Really remove the project ?') ifTrue:[ |
|
6208 |
self withExecuteCursorDo:[ |
|
6209 |
self projectTreeHolder removeSelection. |
|
6210 |
projectToRemove removeFromSystem. |
|
6211 |
] |
|
6212 |
] |
|
1248 | 6213 |
] |
6214 |
! |
|
6215 |
||
6216 |
renameProject |
|
6217 |
|nm projectNode selectedProject| |
|
6218 |
||
6219 |
projectNode := self currentProjectNode. |
|
6220 |
projectNode notNil ifTrue:[ |
|
1371 | 6221 |
selectedProject := projectNode contents. |
6222 |
||
6223 |
nm := Dialog |
|
6224 |
request:'Rename to:' |
|
6225 |
initialAnswer:selectedProject name. |
|
6226 |
||
6227 |
nm size > 0 ifTrue:[ |
|
6228 |
selectedProject name:nm. |
|
1248 | 6229 |
"/ selectedNode name:nm. |
6230 |
"/ selectedNode changed. |
|
1371 | 6231 |
] |
1248 | 6232 |
] |
6233 |
! |
|
6234 |
||
6235 |
saveProjectFile |
|
6236 |
"save the project file in the project directory" |
|
6237 |
||
6238 |
|d p| |
|
6239 |
||
6240 |
self modifiedChannel value ifTrue:[ |
|
1371 | 6241 |
(self confirm:'Changes not confirmed; save anyway ?') ifFalse:[^ self] |
1248 | 6242 |
]. |
6243 |
||
6244 |
p := self currentProject. |
|
6245 |
p isNil ifTrue:[ |
|
1371 | 6246 |
self information:'Select a project first.'. |
6247 |
^self |
|
1248 | 6248 |
]. |
6249 |
p directory isNil ifTrue:[ |
|
1371 | 6250 |
d := (Dialog request:'Project Directory:'). |
6251 |
d size == 0 ifTrue:[ |
|
6252 |
^ self |
|
6253 |
]. |
|
6254 |
p directory:d |
|
1248 | 6255 |
]. |
6256 |
||
6257 |
self withCursor:Cursor write do:[ |
|
1371 | 6258 |
p saveAsProjectFile. |
1248 | 6259 |
] |
6260 |
||
6261 |
"Modified: / 26.4.1999 / 22:43:57 / cg" |
|
6262 |
! |
|
6263 |
||
6264 |
validateAgainstClassesInImage |
|
6265 |
"validate classes in project against classes found in the image" |
|
6266 |
||
6267 |
|project classesInProjectOnly classesInImageOnly bindings| |
|
6268 |
||
6269 |
project := self currentProject. |
|
6270 |
classesInImageOnly := IdentitySet new. |
|
6271 |
classesInProjectOnly := IdentitySet new. |
|
6272 |
||
6273 |
Smalltalk allClassesDo:[:aClass | |
|
1371 | 6274 |
aClass isMeta ifFalse:[ |
6275 |
(aClass isNameSpace not or:[aClass == Smalltalk]) ifTrue:[ |
|
6276 |
aClass package = project package ifTrue:[ |
|
6277 |
(project classInfoFor:aClass) isNil ifTrue:[ |
|
6278 |
classesInImageOnly add:aClass name. |
|
6279 |
] |
|
6280 |
] |
|
6281 |
] |
|
6282 |
] |
|
1248 | 6283 |
]. |
6284 |
project classInfo do:[:clsInfo | |
|
1371 | 6285 |
|clsName cls| |
6286 |
||
6287 |
clsName := clsInfo className. |
|
6288 |
cls := Smalltalk at:clsName asSymbol. |
|
6289 |
(cls isBehavior not) ifTrue:[ |
|
6290 |
classesInProjectOnly add:clsName |
|
6291 |
]. |
|
1248 | 6292 |
]. |
6293 |
||
6294 |
(classesInImageOnly isEmpty and:[classesInProjectOnly isEmpty]) ifTrue:[ |
|
1371 | 6295 |
self information:'Set of classes in project and image are equal.'. |
6296 |
^ self. |
|
1248 | 6297 |
]. |
6298 |
||
6299 |
classesInImageOnly := classesInImageOnly asOrderedCollection sort. |
|
6300 |
classesInProjectOnly := classesInProjectOnly asOrderedCollection sort. |
|
6301 |
||
6302 |
bindings := IdentityDictionary new. |
|
6303 |
bindings at:#classesInImageOnly put:classesInImageOnly. |
|
6304 |
bindings at:#classesInProjectOnly put:classesInProjectOnly. |
|
6305 |
||
6306 |
SimpleDialog |
|
1371 | 6307 |
openDialogInterfaceSpec:(self class classValidationDialogSpec) |
6308 |
withBindings:bindings |
|
1248 | 6309 |
|
6310 |
"Modified: / 26.9.1999 / 16:03:50 / cg" |
|
1255 | 6311 |
! |
6312 |
||
6313 |
validateAgainstMethodsInImage |
|
6314 |
"validate methods in project against methods found in the image" |
|
6315 |
||
6316 |
|project package methodsInProjectOnly methodsInImageOnly bindings who| |
|
6317 |
||
6318 |
project := self currentProject. |
|
6319 |
package := project package. |
|
6320 |
||
6321 |
methodsInImageOnly := IdentitySet new. |
|
6322 |
methodsInProjectOnly := IdentitySet new. |
|
6323 |
||
6324 |
Method allSubInstancesDo:[:aMethod | |
|
1371 | 6325 |
aMethod package = package ifTrue:[ |
6326 |
who := aMethod who. |
|
6327 |
who notNil ifTrue:[ |
|
6328 |
(project classInfoFor:who methodClass) isNil ifTrue:[ |
|
6329 |
"/ is it in the projects methodList ? |
|
6330 |
(project includesMethod:aMethod) ifFalse:[ |
|
6331 |
methodsInImageOnly add:(who methodClass name , ' ' , who methodSelector). |
|
6332 |
] |
|
6333 |
] |
|
6334 |
] |
|
6335 |
] |
|
1255 | 6336 |
]. |
6337 |
||
6338 |
project methodInfo do:[:mthdInfo | |
|
1371 | 6339 |
|clsName sel cls m| |
6340 |
||
6341 |
clsName := mthdInfo className. |
|
6342 |
sel := mthdInfo methodName. |
|
6343 |
cls := Smalltalk at:clsName asSymbol. |
|
6344 |
(project includesClass:clsName) ifFalse:[ |
|
6345 |
(cls isBehavior not |
|
6346 |
or:[(m := cls compiledMethodAt:sel) isNil |
|
6347 |
or:[m package ~= package]]) ifTrue:[ |
|
6348 |
methodsInProjectOnly add:(clsName , ' ' , sel) |
|
6349 |
]. |
|
6350 |
]. |
|
1255 | 6351 |
]. |
6352 |
||
6353 |
(methodsInImageOnly isEmpty and:[methodsInProjectOnly isEmpty]) ifTrue:[ |
|
1371 | 6354 |
self information:'Set of methods in project and image are equal.'. |
6355 |
^ self. |
|
1255 | 6356 |
]. |
6357 |
||
6358 |
methodsInImageOnly := methodsInImageOnly asOrderedCollection sort:[:a :b | a printString < b printString]. |
|
6359 |
methodsInProjectOnly := methodsInProjectOnly asOrderedCollection sort:[:a :b | a printString < b printString]. |
|
6360 |
||
6361 |
bindings := IdentityDictionary new. |
|
6362 |
bindings at:#methodsInImageOnly put:methodsInImageOnly. |
|
6363 |
bindings at:#methodsInProjectOnly put:methodsInProjectOnly. |
|
6364 |
||
6365 |
SimpleDialog |
|
1371 | 6366 |
openDialogInterfaceSpec:(self class methodValidationDialogSpec) |
6367 |
withBindings:bindings |
|
1255 | 6368 |
|
6369 |
"Modified: / 26.9.1999 / 16:03:50 / cg" |
|
1248 | 6370 |
! ! |
6371 |
||
1025 | 6372 |
!ProjectBrowser::ProjectTreeItem methodsFor:'accessing'! |
6373 |
||
6374 |
action |
|
6375 |
"return the value of the instance variable 'action' (automatically generated)" |
|
6376 |
||
6377 |
^ action! |
|
6378 |
||
6379 |
action:something |
|
6380 |
"set the value of the instance variable 'action' (automatically generated)" |
|
6381 |
||
1079 | 6382 |
action := something.! |
6383 |
||
1109 | 6384 |
info |
6385 |
"return the value of the instance variable 'info' (automatically generated)" |
|
6386 |
||
6387 |
^ info! |
|
6388 |
||
6389 |
info:something |
|
6390 |
"set the value of the instance variable 'info' (automatically generated)" |
|
6391 |
||
6392 |
info := something.! |
|
6393 |
||
1079 | 6394 |
spec |
6395 |
"return the value of the instance variable 'spec' (automatically generated)" |
|
6396 |
||
6397 |
^ spec! |
|
6398 |
||
6399 |
spec:something |
|
6400 |
"set the value of the instance variable 'spec' (automatically generated)" |
|
6401 |
||
6402 |
spec := something.! ! |
|
1025 | 6403 |
|
1026 | 6404 |
!ProjectBrowser::ProjectTreeItem methodsFor:'queries'! |
6405 |
||
6406 |
isProjectNode |
|
6407 |
^ false |
|
6408 |
! ! |
|
6409 |
||
6410 |
!ProjectBrowser::ProjectNode methodsFor:'queries'! |
|
6411 |
||
6412 |
isProjectNode |
|
6413 |
^ true |
|
6414 |
||
6415 |
||
6416 |
! ! |
|
6417 |
||
1025 | 6418 |
!ProjectBrowser class methodsFor:'documentation'! |
6419 |
||
6420 |
version |
|
6421 |
^ '$Header$' |
|
6422 |
! ! |
|
1236 | 6423 |
ProjectBrowser initialize! |