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