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