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