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