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