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