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