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