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