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
|
|
9 |
instanceVariableNames:'action spec'
|
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'
|
|
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@PDA@@PDA@@A@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@C @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a') ; yourself); yourself]!
|
|
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 |
|
|
136 |
prerequisitesIcon
|
|
137 |
"This resource specification was automatically generated
|
|
138 |
by the ImageEditor of ST/X."
|
|
139 |
|
|
140 |
"Do not manually edit this!! If it is corrupted,
|
|
141 |
the ImageEditor may not be able to read the specification."
|
|
142 |
|
|
143 |
"
|
|
144 |
self prerequisitesIcon inspect
|
|
145 |
ImageEditor openOnClass:self andSelector:#prerequisitesIcon
|
|
146 |
"
|
|
147 |
|
|
148 |
<resource: #image>
|
|
149 |
|
|
150 |
^Icon
|
|
151 |
constantNamed:#'ProjectBrowser prerequisitesIcon'
|
|
152 |
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]
|
|
153 |
|
|
154 |
"Modified: / 23.3.1999 / 14:28:11 / cg"
|
1079
|
155 |
! !
|
|
156 |
|
1025
|
157 |
!ProjectBrowser class methodsFor:'interface specs'!
|
|
158 |
|
|
159 |
emptyRightCanvasSpec
|
|
160 |
"This resource specification was automatically generated
|
|
161 |
by the UIPainter of ST/X."
|
|
162 |
|
|
163 |
"Do not manually edit this!! If it is corrupted,
|
|
164 |
the UIPainter may not be able to read the specification."
|
|
165 |
|
|
166 |
"
|
|
167 |
UIPainter new openOnClass:ProjectBrowser andSelector:#emptyRightCanvasSpec
|
|
168 |
ProjectBrowser new openInterface:#emptyRightCanvasSpec
|
|
169 |
"
|
|
170 |
|
|
171 |
<resource: #canvas>
|
|
172 |
|
|
173 |
^
|
|
174 |
|
|
175 |
#(#FullSpec
|
|
176 |
#window:
|
|
177 |
#(#WindowSpec
|
|
178 |
#name: 'NewApplication'
|
|
179 |
#layout: #(#LayoutFrame 216 0 173 0 515 0 472 0)
|
|
180 |
#label: 'NewApplication'
|
|
181 |
#min: #(#Point 10 10)
|
|
182 |
#max: #(#Point 1280 1024)
|
|
183 |
#bounds: #(#Rectangle 216 173 516 473)
|
|
184 |
#usePreferredExtent: false
|
|
185 |
)
|
|
186 |
#component:
|
|
187 |
#(#SpecCollection
|
|
188 |
#collection:
|
|
189 |
#(
|
|
190 |
#(#TextEditorSpec
|
|
191 |
#name: 'TextEditor1'
|
|
192 |
#layout: #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
|
|
193 |
#model: #rightCanvasTextHolder
|
|
194 |
#hasHorizontalScrollBar: true
|
|
195 |
#hasVerticalScrollBar: true
|
|
196 |
#miniScrollerHorizontal: true
|
|
197 |
#isReadOnly: true
|
|
198 |
)
|
|
199 |
)
|
|
200 |
)
|
|
201 |
)
|
|
202 |
!
|
|
203 |
|
1037
|
204 |
rightCanvasSpecForClassList
|
|
205 |
"This resource specification was automatically generated
|
|
206 |
by the UIPainter of ST/X."
|
|
207 |
|
|
208 |
"Do not manually edit this!! If it is corrupted,
|
|
209 |
the UIPainter may not be able to read the specification."
|
|
210 |
|
|
211 |
"
|
|
212 |
UIPainter new openOnClass:ProjectBrowser andSelector:#rightCanvasSpecForClassList
|
|
213 |
ProjectBrowser new openInterface:#rightCanvasSpecForClassList
|
|
214 |
"
|
|
215 |
|
|
216 |
<resource: #canvas>
|
|
217 |
|
|
218 |
^
|
|
219 |
|
|
220 |
#(#FullSpec
|
|
221 |
#window:
|
|
222 |
#(#WindowSpec
|
|
223 |
#name: 'NewApplication'
|
|
224 |
#layout: #(#LayoutFrame 216 0 173 0 515 0 472 0)
|
|
225 |
#level: 0
|
|
226 |
#label: 'NewApplication'
|
|
227 |
#min: #(#Point 10 10)
|
|
228 |
#max: #(#Point 1280 1024)
|
|
229 |
#bounds: #(#Rectangle 216 173 516 473)
|
|
230 |
#usePreferredExtent: false
|
|
231 |
)
|
|
232 |
#component:
|
|
233 |
#(#SpecCollection
|
|
234 |
#collection:
|
|
235 |
#(
|
|
236 |
#(#DataSetSpec
|
|
237 |
#name: 'classTable'
|
|
238 |
#layout: #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
|
|
239 |
#hasHorizontalScrollBar: true
|
|
240 |
#hasVerticalScrollBar: true
|
|
241 |
#dataList: #classList
|
|
242 |
#has3Dsepartors: false
|
|
243 |
#columnHolder: #classTableColumns
|
|
244 |
#columnAdaptor: #classTableAdaptor
|
|
245 |
)
|
|
246 |
)
|
|
247 |
)
|
|
248 |
)
|
|
249 |
!
|
|
250 |
|
1081
|
251 |
rightCanvasSpecForDeployment
|
|
252 |
"This resource specification was automatically generated
|
|
253 |
by the UIPainter of ST/X."
|
|
254 |
|
|
255 |
"Do not manually edit this!! If it is corrupted,
|
|
256 |
the UIPainter may not be able to read the specification."
|
|
257 |
|
|
258 |
"
|
|
259 |
UIPainter new openOnClass:ProjectBrowser andSelector:#rightCanvasSpecForDeployment
|
|
260 |
ProjectBrowser new openInterface:#rightCanvasSpecForDeployment
|
|
261 |
"
|
|
262 |
|
|
263 |
<resource: #canvas>
|
|
264 |
|
1088
|
265 |
^
|
|
266 |
#(#FullSpec
|
|
267 |
#name: #rightCanvasSpecForDeployment
|
|
268 |
#window:
|
|
269 |
#(#WindowSpec
|
|
270 |
#label: 'NewApplication'
|
|
271 |
#name: 'NewApplication'
|
1094
|
272 |
#layout: #(#LayoutFrame 216 0 173 0 515 0 472 0)
|
1088
|
273 |
#level: 0
|
|
274 |
#min: #(#Point 10 10)
|
|
275 |
#max: #(#Point 1280 1024)
|
1094
|
276 |
#bounds: #(#Rectangle 216 173 516 473)
|
1088
|
277 |
#usePreferredExtent: false
|
|
278 |
#returnIsOKInDialog: true
|
|
279 |
#escapeIsCancelInDialog: true
|
|
280 |
)
|
|
281 |
#component:
|
|
282 |
#(#SpecCollection
|
|
283 |
#collection: #(
|
1091
|
284 |
#(#FramedBoxSpec
|
|
285 |
#label: 'Delivery'
|
|
286 |
#name: 'FramedBox1'
|
|
287 |
#layout: #(#LayoutFrame 0 0.0 0 0.0 0 1.0 173 0)
|
|
288 |
#labelPosition: #topLeft
|
|
289 |
#translateLabel: true
|
|
290 |
#component:
|
|
291 |
#(#SpecCollection
|
|
292 |
#collection: #(
|
|
293 |
#(#CheckBoxSpec
|
|
294 |
#label: 'Compiled Binary'
|
|
295 |
#name: 'CheckBox1'
|
|
296 |
#layout: #(#LayoutFrame 0 0.0 10 0 0 1.0 32 0)
|
|
297 |
#tabable: true
|
|
298 |
#model: #deliverCompiledBinary
|
|
299 |
#translateLabel: true
|
|
300 |
)
|
|
301 |
#(#CheckBoxSpec
|
|
302 |
#label: 'Zip Archive'
|
|
303 |
#name: 'CheckBox2'
|
|
304 |
#layout: #(#LayoutFrame 0 0.0 38 0 0 1.0 60 0)
|
|
305 |
#tabable: true
|
|
306 |
#model: #deliverZipArchive
|
|
307 |
#translateLabel: true
|
|
308 |
)
|
|
309 |
#(#CheckBoxSpec
|
|
310 |
#label: 'GZip Archive (self extracting)'
|
|
311 |
#name: 'CheckBox3'
|
|
312 |
#layout: #(#LayoutFrame 0 0.0 66 0 0 1.0 88 0)
|
|
313 |
#tabable: true
|
1094
|
314 |
#model: #deliverGZipArchive
|
1091
|
315 |
#translateLabel: true
|
|
316 |
)
|
|
317 |
#(#CheckBoxSpec
|
1094
|
318 |
#label: 'Include Sources'
|
1091
|
319 |
#name: 'CheckBox4'
|
|
320 |
#layout: #(#LayoutFrame 0 0.0 94 0 0 1.0 116 0)
|
|
321 |
#tabable: true
|
1094
|
322 |
#model: #deliverSources
|
1091
|
323 |
#translateLabel: true
|
|
324 |
)
|
|
325 |
#(#CheckBoxSpec
|
|
326 |
#label: 'loadAll-File'
|
|
327 |
#name: 'CheckBox5'
|
|
328 |
#layout: #(#LayoutFrame 0 0.0 122 0 0 1.0 144 0)
|
|
329 |
#tabable: true
|
|
330 |
#model: #deliverLoadAllFile
|
|
331 |
#translateLabel: true
|
|
332 |
)
|
|
333 |
)
|
|
334 |
|
|
335 |
)
|
|
336 |
)
|
|
337 |
#(#FramedBoxSpec
|
|
338 |
#label: 'Install Directory'
|
|
339 |
#name: 'FramedBox2'
|
|
340 |
#layout: #(#LayoutFrame 0 0.0 178 0 0 1.0 243 0)
|
|
341 |
#labelPosition: #topLeft
|
|
342 |
#translateLabel: true
|
|
343 |
#component:
|
|
344 |
#(#SpecCollection
|
|
345 |
#collection: #(
|
|
346 |
#(#InputFieldSpec
|
|
347 |
#name: 'EntryField1'
|
|
348 |
#layout: #(#LayoutFrame 0 0.0 6 0 0 1.0 28 0)
|
|
349 |
#tabable: true
|
|
350 |
#model: #installDirectory
|
|
351 |
#modifiedChannel: #modifiedChannel
|
|
352 |
)
|
|
353 |
)
|
|
354 |
|
|
355 |
)
|
|
356 |
)
|
1088
|
357 |
#(#HorizontalPanelViewSpec
|
|
358 |
#name: 'HorizontalPanel1'
|
|
359 |
#layout: #(#LayoutFrame 0 0 -30 1 0 1 0 1)
|
|
360 |
#horizontalLayout: #fitSpace
|
|
361 |
#verticalLayout: #center
|
|
362 |
#horizontalSpace: 3
|
|
363 |
#verticalSpace: 3
|
|
364 |
#component:
|
|
365 |
#(#SpecCollection
|
|
366 |
#collection: #(
|
|
367 |
#(#ActionButtonSpec
|
|
368 |
#label: 'Cancel'
|
|
369 |
#name: 'Button1'
|
|
370 |
#translateLabel: true
|
1091
|
371 |
#tabable: true
|
1088
|
372 |
#model: #cancel
|
|
373 |
#enableChannel: #modifiedChannel
|
1091
|
374 |
#actionValue: ''
|
|
375 |
#useDefaultExtent: true
|
1088
|
376 |
)
|
|
377 |
#(#ActionButtonSpec
|
|
378 |
#label: 'OK'
|
|
379 |
#name: 'Button2'
|
|
380 |
#translateLabel: true
|
1091
|
381 |
#tabable: true
|
1088
|
382 |
#model: #accept
|
|
383 |
#enableChannel: #modifiedChannel
|
1091
|
384 |
#actionValue: ''
|
|
385 |
#useDefaultExtent: true
|
1085
|
386 |
)
|
1088
|
387 |
)
|
|
388 |
|
|
389 |
)
|
1085
|
390 |
)
|
1088
|
391 |
)
|
|
392 |
|
1085
|
393 |
)
|
1088
|
394 |
)
|
1081
|
395 |
!
|
|
396 |
|
1026
|
397 |
rightCanvasSpecForEditableText
|
|
398 |
"This resource specification was automatically generated
|
|
399 |
by the UIPainter of ST/X."
|
|
400 |
|
|
401 |
"Do not manually edit this!! If it is corrupted,
|
|
402 |
the UIPainter may not be able to read the specification."
|
|
403 |
|
|
404 |
"
|
|
405 |
UIPainter new openOnClass:ProjectBrowser andSelector:#emptyRightCanvasSpec
|
|
406 |
ProjectBrowser new openInterface:#emptyRightCanvasSpec
|
|
407 |
"
|
|
408 |
|
|
409 |
<resource: #canvas>
|
|
410 |
|
|
411 |
^
|
|
412 |
|
|
413 |
#(#FullSpec
|
|
414 |
#window:
|
|
415 |
#(#WindowSpec
|
|
416 |
#name: 'NewApplication'
|
|
417 |
#layout: #(#LayoutFrame 216 0 173 0 515 0 472 0)
|
|
418 |
#label: 'NewApplication'
|
|
419 |
#min: #(#Point 10 10)
|
|
420 |
#max: #(#Point 1280 1024)
|
|
421 |
#bounds: #(#Rectangle 216 173 516 473)
|
|
422 |
#usePreferredExtent: false
|
|
423 |
)
|
|
424 |
#component:
|
|
425 |
#(#SpecCollection
|
|
426 |
#collection:
|
|
427 |
#(
|
|
428 |
#(#TextEditorSpec
|
|
429 |
#name: 'TextEditor1'
|
|
430 |
#layout: #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
|
|
431 |
#model: #rightCanvasTextHolder
|
|
432 |
#hasHorizontalScrollBar: true
|
|
433 |
#hasVerticalScrollBar: true
|
|
434 |
#miniScrollerHorizontal: true
|
|
435 |
#isReadOnly: false
|
|
436 |
)
|
|
437 |
)
|
|
438 |
)
|
|
439 |
)
|
|
440 |
!
|
|
441 |
|
1037
|
442 |
rightCanvasSpecForHTMLText
|
|
443 |
"This resource specification was automatically generated
|
|
444 |
by the UIPainter of ST/X."
|
|
445 |
|
|
446 |
"Do not manually edit this!! If it is corrupted,
|
|
447 |
the UIPainter may not be able to read the specification."
|
|
448 |
|
|
449 |
"
|
|
450 |
UIPainter new openOnClass:ProjectBrowser andSelector:#rightCanvasSpecForHTMLText
|
|
451 |
ProjectBrowser new openInterface:#rightCanvasSpecForHTMLText
|
|
452 |
"
|
|
453 |
|
|
454 |
<resource: #canvas>
|
|
455 |
|
|
456 |
^
|
|
457 |
|
|
458 |
#(#FullSpec
|
|
459 |
#window:
|
|
460 |
#(#WindowSpec
|
|
461 |
#name: 'NewApplication'
|
|
462 |
#layout: #(#LayoutFrame 216 0 173 0 515 0 472 0)
|
|
463 |
#level: 0
|
|
464 |
#label: 'NewApplication'
|
|
465 |
#min: #(#Point 10 10)
|
|
466 |
#max: #(#Point 1280 1024)
|
|
467 |
#bounds: #(#Rectangle 216 173 516 473)
|
|
468 |
#usePreferredExtent: false
|
|
469 |
)
|
|
470 |
#component:
|
|
471 |
#(#SpecCollection
|
|
472 |
#collection:
|
|
473 |
#(
|
|
474 |
#(#HTMLViewSpec
|
|
475 |
#name: 'HTMLBrowser1'
|
|
476 |
#layout: #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
|
|
477 |
#model: #htmlDocumentURLHolder
|
|
478 |
#hasHorizontalScrollBar: true
|
|
479 |
#hasVerticalScrollBar: true
|
|
480 |
)
|
|
481 |
)
|
|
482 |
)
|
|
483 |
)
|
|
484 |
!
|
|
485 |
|
1043
|
486 |
rightCanvasSpecForPatchesList
|
|
487 |
"This resource specification was automatically generated
|
|
488 |
by the UIPainter of ST/X."
|
|
489 |
|
|
490 |
"Do not manually edit this!! If it is corrupted,
|
|
491 |
the UIPainter may not be able to read the specification."
|
|
492 |
|
|
493 |
"
|
|
494 |
UIPainter new openOnClass:ProjectBrowser andSelector:#rightCanvasSpecForPatchesList
|
|
495 |
ProjectBrowser new openInterface:#rightCanvasSpecForPatchesList
|
|
496 |
"
|
|
497 |
|
|
498 |
<resource: #canvas>
|
|
499 |
|
|
500 |
^
|
|
501 |
|
|
502 |
#(#FullSpec
|
|
503 |
#window:
|
|
504 |
#(#WindowSpec
|
|
505 |
#name: 'NewApplication'
|
|
506 |
#layout: #(#LayoutFrame 216 0 173 0 515 0 472 0)
|
|
507 |
#level: 0
|
|
508 |
#label: 'NewApplication'
|
|
509 |
#min: #(#Point 10 10)
|
|
510 |
#max: #(#Point 1280 1024)
|
|
511 |
#bounds: #(#Rectangle 216 173 516 473)
|
|
512 |
#usePreferredExtent: false
|
|
513 |
)
|
|
514 |
#component:
|
|
515 |
#(#SpecCollection
|
|
516 |
#collection:
|
|
517 |
#(
|
|
518 |
#(#DataSetSpec
|
|
519 |
#name: 'patchesTable'
|
|
520 |
#layout: #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
|
|
521 |
#hasHorizontalScrollBar: true
|
|
522 |
#hasVerticalScrollBar: true
|
|
523 |
#dataList: #patchesList
|
|
524 |
#has3Dsepartors: false
|
|
525 |
#columnHolder: #patchesTableColumns
|
|
526 |
#columnAdaptor: #classTableAdaptor
|
|
527 |
)
|
|
528 |
)
|
|
529 |
)
|
|
530 |
)
|
|
531 |
!
|
|
532 |
|
1089
|
533 |
rightCanvasSpecForPrerequisites
|
|
534 |
"This resource specification was automatically generated
|
|
535 |
by the UIPainter of ST/X."
|
|
536 |
|
|
537 |
"Do not manually edit this!! If it is corrupted,
|
|
538 |
the UIPainter may not be able to read the specification."
|
|
539 |
|
|
540 |
"
|
|
541 |
UIPainter new openOnClass:ProjectBrowser andSelector:#rightCanvasSpecForPrerequisites
|
|
542 |
ProjectBrowser new openInterface:#rightCanvasSpecForPrerequisites
|
|
543 |
"
|
|
544 |
|
|
545 |
<resource: #canvas>
|
|
546 |
|
|
547 |
^
|
|
548 |
#(#FullSpec
|
|
549 |
#name: #rightCanvasSpecForPrerequisites
|
|
550 |
#window:
|
|
551 |
#(#WindowSpec
|
|
552 |
#label: 'NewApplication'
|
|
553 |
#name: 'NewApplication'
|
1091
|
554 |
#layout: #(#LayoutFrame 208 0 222 0 507 0 521 0)
|
1089
|
555 |
#level: 0
|
|
556 |
#min: #(#Point 10 10)
|
|
557 |
#max: #(#Point 1280 1024)
|
1091
|
558 |
#bounds: #(#Rectangle 208 222 508 522)
|
1089
|
559 |
#usePreferredExtent: false
|
|
560 |
#returnIsOKInDialog: true
|
|
561 |
#escapeIsCancelInDialog: true
|
|
562 |
)
|
|
563 |
#component:
|
|
564 |
#(#SpecCollection
|
|
565 |
#collection: #(
|
|
566 |
#(#LabelSpec
|
1091
|
567 |
#label: 'Known Projects'
|
1089
|
568 |
#name: 'Label1'
|
|
569 |
#layout: #(#LayoutFrame 0 0 0 0 0 0.5 30 0)
|
|
570 |
#translateLabel: true
|
|
571 |
)
|
|
572 |
#(#SequenceViewSpec
|
|
573 |
#name: 'List1'
|
|
574 |
#layout: #(#LayoutFrame 0 0 30 0 0 0.5 -62 1)
|
|
575 |
#tabable: true
|
|
576 |
#model: #selectedProjectInPrerequisites
|
|
577 |
#hasHorizontalScrollBar: true
|
|
578 |
#hasVerticalScrollBar: true
|
|
579 |
#miniScrollerHorizontal: true
|
|
580 |
#miniScrollerVertical: true
|
|
581 |
#useIndex: false
|
|
582 |
#sequenceList: #listOfAllProjectsInPrerequisites
|
|
583 |
)
|
|
584 |
#(#LabelSpec
|
|
585 |
#label: 'Prerequisites'
|
|
586 |
#name: 'Label2'
|
|
587 |
#layout: #(#LayoutFrame 0 0.5 0 0 0 1 30 0)
|
|
588 |
#translateLabel: true
|
|
589 |
)
|
|
590 |
#(#SequenceViewSpec
|
|
591 |
#name: 'List2'
|
|
592 |
#layout: #(#LayoutFrame 0 0.5 30 0 0 1 -62 1)
|
|
593 |
#tabable: true
|
|
594 |
#model: #selectedRequiredProjectInPrerequisites
|
|
595 |
#hasHorizontalScrollBar: true
|
|
596 |
#hasVerticalScrollBar: true
|
|
597 |
#miniScrollerHorizontal: true
|
|
598 |
#miniScrollerVertical: true
|
|
599 |
#useIndex: false
|
|
600 |
#sequenceList: #listOfRequiredProjectsInPrerequisites
|
|
601 |
)
|
|
602 |
#(#HorizontalPanelViewSpec
|
|
603 |
#name: 'HorizontalPanel2'
|
|
604 |
#layout: #(#LayoutFrame 0 0 -62 1 0 1 -32 1)
|
|
605 |
#horizontalLayout: #fitSpace
|
|
606 |
#verticalLayout: #center
|
|
607 |
#horizontalSpace: 3
|
|
608 |
#verticalSpace: 3
|
|
609 |
#component:
|
|
610 |
#(#SpecCollection
|
|
611 |
#collection: #(
|
|
612 |
#(#ActionButtonSpec
|
|
613 |
#label: 'Add'
|
|
614 |
#name: 'addButton'
|
|
615 |
#translateLabel: true
|
|
616 |
#resizeForLabel: false
|
|
617 |
#tabable: true
|
|
618 |
#model: #addToPrerequisites
|
|
619 |
#enableChannel: #canAddSelectedProjectToPrerequisites
|
|
620 |
#actionValue: ''
|
|
621 |
#useDefaultExtent: true
|
|
622 |
)
|
|
623 |
#(#ActionButtonSpec
|
|
624 |
#label: 'Remove'
|
|
625 |
#name: 'removeButton'
|
|
626 |
#translateLabel: true
|
|
627 |
#resizeForLabel: false
|
|
628 |
#tabable: true
|
|
629 |
#model: #removeFromPrerequisites
|
|
630 |
#enableChannel: #canRemoveSelectedProjectFromPrerequisites
|
|
631 |
#actionValue: ''
|
|
632 |
#useDefaultExtent: true
|
|
633 |
)
|
|
634 |
)
|
|
635 |
|
|
636 |
)
|
|
637 |
)
|
|
638 |
#(#HorizontalPanelViewSpec
|
|
639 |
#name: 'HorizontalPanel1'
|
|
640 |
#layout: #(#LayoutFrame 0 0.0 -30 1 0 1.0 0 1.0)
|
|
641 |
#horizontalLayout: #fitSpace
|
|
642 |
#verticalLayout: #center
|
|
643 |
#horizontalSpace: 3
|
|
644 |
#verticalSpace: 3
|
|
645 |
#component:
|
|
646 |
#(#SpecCollection
|
|
647 |
#collection: #(
|
|
648 |
#(#ActionButtonSpec
|
|
649 |
#label: 'Cancel'
|
|
650 |
#name: 'Button1'
|
|
651 |
#translateLabel: true
|
|
652 |
#tabable: true
|
|
653 |
#model: #cancel
|
|
654 |
#useDefaultExtent: true
|
|
655 |
)
|
|
656 |
#(#ActionButtonSpec
|
|
657 |
#label: 'OK'
|
|
658 |
#name: 'Button2'
|
|
659 |
#translateLabel: true
|
|
660 |
#tabable: true
|
|
661 |
#model: #accept
|
|
662 |
#useDefaultExtent: true
|
|
663 |
)
|
|
664 |
)
|
|
665 |
|
|
666 |
)
|
|
667 |
)
|
|
668 |
)
|
|
669 |
|
|
670 |
)
|
|
671 |
)
|
|
672 |
!
|
|
673 |
|
1079
|
674 |
rightCanvasSpecForProperties
|
|
675 |
"This resource specification was automatically generated
|
|
676 |
by the UIPainter of ST/X."
|
|
677 |
|
|
678 |
"Do not manually edit this!! If it is corrupted,
|
|
679 |
the UIPainter may not be able to read the specification."
|
|
680 |
|
|
681 |
"
|
|
682 |
UIPainter new openOnClass:ProjectBrowser andSelector:#rightCanvasSpecForProperties
|
|
683 |
ProjectBrowser new openInterface:#rightCanvasSpecForProperties
|
|
684 |
"
|
|
685 |
|
|
686 |
<resource: #canvas>
|
|
687 |
|
1088
|
688 |
^
|
|
689 |
#(#FullSpec
|
|
690 |
#name: #rightCanvasSpecForProperties
|
|
691 |
#window:
|
|
692 |
#(#WindowSpec
|
|
693 |
#label: 'NewApplication'
|
|
694 |
#name: 'NewApplication'
|
1091
|
695 |
#layout: #(#LayoutFrame 21 0 21 0 320 0 364 0)
|
1088
|
696 |
#level: 0
|
|
697 |
#min: #(#Point 10 10)
|
|
698 |
#max: #(#Point 1280 1024)
|
1091
|
699 |
#bounds: #(#Rectangle 21 21 321 365)
|
1088
|
700 |
#usePreferredExtent: false
|
|
701 |
#returnIsOKInDialog: true
|
|
702 |
#escapeIsCancelInDialog: true
|
|
703 |
)
|
|
704 |
#component:
|
|
705 |
#(#SpecCollection
|
|
706 |
#collection: #(
|
|
707 |
#(#HorizontalPanelViewSpec
|
|
708 |
#name: 'HorizontalPanel1'
|
|
709 |
#layout: #(#LayoutFrame 0 0 -30 1 0 1 0 1)
|
|
710 |
#horizontalLayout: #fitSpace
|
|
711 |
#verticalLayout: #center
|
|
712 |
#horizontalSpace: 3
|
|
713 |
#verticalSpace: 3
|
|
714 |
#component:
|
|
715 |
#(#SpecCollection
|
|
716 |
#collection: #(
|
|
717 |
#(#ActionButtonSpec
|
|
718 |
#label: 'Cancel'
|
|
719 |
#name: 'Button1'
|
|
720 |
#translateLabel: true
|
|
721 |
#model: #cancel
|
|
722 |
#enableChannel: #modifiedChannel
|
1091
|
723 |
#actionValue: ''
|
|
724 |
#useDefaultExtent: true
|
1088
|
725 |
)
|
|
726 |
#(#ActionButtonSpec
|
|
727 |
#label: 'OK'
|
|
728 |
#name: 'Button2'
|
|
729 |
#translateLabel: true
|
|
730 |
#model: #accept
|
|
731 |
#enableChannel: #modifiedChannel
|
1091
|
732 |
#useDefaultExtent: true
|
1088
|
733 |
)
|
|
734 |
)
|
|
735 |
|
|
736 |
)
|
|
737 |
)
|
|
738 |
#(#FramedBoxSpec
|
|
739 |
#label: 'Project Type'
|
|
740 |
#name: 'FramedBox1'
|
1091
|
741 |
#layout: #(#LayoutFrame 0 0.0 0 0.0 0 1.0 89 0)
|
1088
|
742 |
#labelPosition: #topLeft
|
|
743 |
#translateLabel: true
|
|
744 |
#component:
|
|
745 |
#(#SpecCollection
|
|
746 |
#collection: #(
|
|
747 |
#(#RadioButtonSpec
|
|
748 |
#label: 'Application'
|
|
749 |
#name: 'RadioButton1'
|
|
750 |
#layout: #(#LayoutFrame -1 0.0 10 0 135 0 32 0)
|
1079
|
751 |
#translateLabel: true
|
1088
|
752 |
#model: #projectType
|
|
753 |
#isTriggerOnDown: true
|
|
754 |
#select: #application
|
|
755 |
)
|
|
756 |
#(#RadioButtonSpec
|
|
757 |
#label: 'Class Library'
|
|
758 |
#name: 'RadioButton2'
|
|
759 |
#layout: #(#LayoutFrame -1 0.0 38 0 135 0 60 0)
|
1079
|
760 |
#translateLabel: true
|
1088
|
761 |
#model: #projectType
|
|
762 |
#isTriggerOnDown: true
|
|
763 |
#select: #library
|
|
764 |
)
|
|
765 |
)
|
|
766 |
|
|
767 |
)
|
|
768 |
)
|
|
769 |
#(#FramedBoxSpec
|
|
770 |
#label: 'Directory'
|
|
771 |
#name: 'FramedBox2'
|
1091
|
772 |
#layout: #(#LayoutFrame 0 0.0 89 0.0 0 1.0 149 0)
|
1088
|
773 |
#labelPosition: #topLeft
|
|
774 |
#translateLabel: true
|
|
775 |
#component:
|
|
776 |
#(#SpecCollection
|
|
777 |
#collection: #(
|
|
778 |
#(#InputFieldSpec
|
|
779 |
#name: 'EntryField1'
|
|
780 |
#layout: #(#LayoutFrame 0 0.0 4 0 0 1.0 26 0)
|
|
781 |
#enableChannel: #currentProjectWasNotLoadedFromFile
|
|
782 |
#model: #projectDirectory
|
|
783 |
#modifiedChannel: #modifiedChannel
|
|
784 |
)
|
|
785 |
)
|
|
786 |
|
1079
|
787 |
)
|
1088
|
788 |
)
|
|
789 |
#(#FramedBoxSpec
|
|
790 |
#label: 'Repository'
|
|
791 |
#name: 'FramedBox3'
|
1091
|
792 |
#layout: #(#LayoutFrame 0 0.0 152 0.0 0 1.0 235 0)
|
1088
|
793 |
#labelPosition: #topLeft
|
|
794 |
#translateLabel: true
|
|
795 |
#component:
|
|
796 |
#(#SpecCollection
|
|
797 |
#collection: #(
|
|
798 |
#(#InputFieldSpec
|
|
799 |
#name: 'EntryField2'
|
|
800 |
#layout: #(#LayoutFrame 92 0.0 4 0 0 1.0 26 0)
|
|
801 |
#model: #repositoryModule
|
|
802 |
#modifiedChannel: #modifiedChannel
|
|
803 |
)
|
|
804 |
#(#InputFieldSpec
|
|
805 |
#name: 'EntryField3'
|
|
806 |
#layout: #(#LayoutFrame 92 0.0 29 0 0 1.0 51 0)
|
|
807 |
#model: #repositoryDirectory
|
|
808 |
#modifiedChannel: #modifiedChannel
|
|
809 |
)
|
|
810 |
#(#LabelSpec
|
|
811 |
#label: 'Module:'
|
|
812 |
#name: 'Label1'
|
|
813 |
#layout: #(#LayoutFrame 7 0 4 0 86 0 26 0)
|
|
814 |
#translateLabel: true
|
|
815 |
#adjust: #right
|
|
816 |
)
|
|
817 |
#(#LabelSpec
|
|
818 |
#label: 'Directory:'
|
|
819 |
#name: 'Label2'
|
|
820 |
#layout: #(#LayoutFrame 7 0 29 0 86 0 51 0)
|
|
821 |
#translateLabel: true
|
|
822 |
#adjust: #right
|
|
823 |
)
|
|
824 |
)
|
|
825 |
|
|
826 |
)
|
|
827 |
)
|
1091
|
828 |
#(#FramedBoxSpec
|
|
829 |
#label: 'Default Namespace'
|
|
830 |
#name: 'FramedBox4'
|
|
831 |
#layout: #(#LayoutFrame 0 0.0 236 0 0 1.0 294 0)
|
|
832 |
#labelPosition: #topLeft
|
|
833 |
#translateLabel: true
|
|
834 |
#component:
|
|
835 |
#(#SpecCollection
|
|
836 |
#collection: #(
|
|
837 |
#(#InputFieldSpec
|
|
838 |
#name: 'EntryField4'
|
|
839 |
#layout: #(#LayoutFrame 0 0.0 4 0 0 1.0 26 0)
|
|
840 |
#model: #projectNamespace
|
|
841 |
#modifiedChannel: #modifiedChannel
|
|
842 |
)
|
|
843 |
)
|
|
844 |
|
|
845 |
)
|
|
846 |
)
|
1088
|
847 |
)
|
|
848 |
|
|
849 |
)
|
1079
|
850 |
)
|
|
851 |
!
|
|
852 |
|
1026
|
853 |
rightCanvasSpecForReadOnlyText
|
|
854 |
"This resource specification was automatically generated
|
|
855 |
by the UIPainter of ST/X."
|
|
856 |
|
|
857 |
"Do not manually edit this!! If it is corrupted,
|
|
858 |
the UIPainter may not be able to read the specification."
|
|
859 |
|
|
860 |
"
|
|
861 |
UIPainter new openOnClass:ProjectBrowser andSelector:#emptyRightCanvasSpec
|
|
862 |
ProjectBrowser new openInterface:#emptyRightCanvasSpec
|
|
863 |
"
|
|
864 |
|
|
865 |
<resource: #canvas>
|
|
866 |
|
|
867 |
^
|
|
868 |
|
|
869 |
#(#FullSpec
|
|
870 |
#window:
|
|
871 |
#(#WindowSpec
|
|
872 |
#name: 'NewApplication'
|
|
873 |
#layout: #(#LayoutFrame 216 0 173 0 515 0 472 0)
|
|
874 |
#label: 'NewApplication'
|
|
875 |
#min: #(#Point 10 10)
|
|
876 |
#max: #(#Point 1280 1024)
|
|
877 |
#bounds: #(#Rectangle 216 173 516 473)
|
|
878 |
#usePreferredExtent: false
|
|
879 |
)
|
|
880 |
#component:
|
|
881 |
#(#SpecCollection
|
|
882 |
#collection:
|
|
883 |
#(
|
|
884 |
#(#TextEditorSpec
|
|
885 |
#name: 'TextEditor1'
|
|
886 |
#layout: #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
|
|
887 |
#model: #rightCanvasTextHolder
|
|
888 |
#hasHorizontalScrollBar: true
|
|
889 |
#hasVerticalScrollBar: true
|
|
890 |
#miniScrollerHorizontal: true
|
|
891 |
#isReadOnly: true
|
|
892 |
)
|
|
893 |
)
|
|
894 |
)
|
|
895 |
)
|
|
896 |
!
|
|
897 |
|
1025
|
898 |
windowSpec
|
|
899 |
"This resource specification was automatically generated
|
|
900 |
by the UIPainter of ST/X."
|
|
901 |
|
|
902 |
"Do not manually edit this!! If it is corrupted,
|
|
903 |
the UIPainter may not be able to read the specification."
|
|
904 |
|
|
905 |
"
|
|
906 |
UIPainter new openOnClass:ProjectBrowser andSelector:#windowSpec
|
|
907 |
ProjectBrowser new openInterface:#windowSpec
|
|
908 |
ProjectBrowser open
|
|
909 |
"
|
|
910 |
|
|
911 |
<resource: #canvas>
|
|
912 |
|
1088
|
913 |
^
|
|
914 |
#(#FullSpec
|
|
915 |
#name: #windowSpec
|
|
916 |
#window:
|
|
917 |
#(#WindowSpec
|
|
918 |
#label: 'ProjectBrowser'
|
|
919 |
#name: 'ProjectBrowser'
|
1099
|
920 |
#layout: #(#LayoutFrame 216 0 173 0 779 0 563 0)
|
1088
|
921 |
#level: 0
|
|
922 |
#min: #(#Point 10 10)
|
|
923 |
#max: #(#Point 1024 768)
|
1099
|
924 |
#bounds: #(#Rectangle 216 173 780 564)
|
1088
|
925 |
#menu: #mainMenu
|
|
926 |
#usePreferredExtent: false
|
|
927 |
#returnIsOKInDialog: true
|
|
928 |
#escapeIsCancelInDialog: true
|
|
929 |
)
|
|
930 |
#component:
|
|
931 |
#(#SpecCollection
|
|
932 |
#collection: #(
|
|
933 |
#(#MenuPanelSpec
|
|
934 |
#name: 'ToolBar1'
|
|
935 |
#layout: #(#LayoutFrame 0 0.0 0 0 0 1.0 32 0)
|
|
936 |
#menu: #menu
|
|
937 |
#textDefault: true
|
1085
|
938 |
)
|
1088
|
939 |
#(#VariableHorizontalPanelSpec
|
|
940 |
#name: 'VariableHorizontalPanel1'
|
|
941 |
#layout: #(#LayoutFrame 0 0.0 40 0.0 0 1.0 -24 1.0)
|
|
942 |
#handles: #(#Any 0.379433 1.0)
|
|
943 |
#component:
|
|
944 |
#(#SpecCollection
|
|
945 |
#collection: #(
|
|
946 |
#(#SelectionInTreeViewSpec
|
|
947 |
#name: 'TreeList1'
|
1099
|
948 |
#model: #selectedTreeNodeHolder
|
1088
|
949 |
#menu: #itemMenuHolder
|
|
950 |
#performer: #itemMenuPerformer
|
|
951 |
#hasHorizontalScrollBar: true
|
|
952 |
#hasVerticalScrollBar: true
|
|
953 |
#miniScrollerHorizontal: true
|
|
954 |
#showRoot: false
|
|
955 |
#showDirectoryIndicatorForRoot: false
|
|
956 |
#showDirectoryIndicator: true
|
|
957 |
#valueChangeSelector: #itemSelected:
|
1099
|
958 |
#doubleClickSelector: #itemDoubleClicked:
|
1088
|
959 |
#hierarchicalList: #projectTreeHolder
|
|
960 |
#selectConditionSelector: #selectionChangeAllowed
|
|
961 |
#highlightMode: #label
|
1085
|
962 |
)
|
1088
|
963 |
#(#SubCanvasSpec
|
|
964 |
#name: 'SubCanvas1'
|
|
965 |
#hasHorizontalScrollBar: false
|
|
966 |
#hasVerticalScrollBar: false
|
|
967 |
#specHolder: #currentCanvasHolder
|
1085
|
968 |
)
|
1088
|
969 |
)
|
|
970 |
|
|
971 |
)
|
1085
|
972 |
)
|
1088
|
973 |
#(#UISubSpecification
|
|
974 |
#name: 'infoBarSubSpec'
|
|
975 |
#layout: #(#LayoutFrame 0 0.0 -24 1 0 1.0 0 1.0)
|
|
976 |
#majorKey: #ToolApplicationModel
|
|
977 |
#minorKey: #windowSpecForInfoBar
|
|
978 |
)
|
|
979 |
)
|
|
980 |
|
1085
|
981 |
)
|
1088
|
982 |
)
|
1025
|
983 |
! !
|
|
984 |
|
|
985 |
!ProjectBrowser class methodsFor:'menu specs'!
|
|
986 |
|
1094
|
987 |
classItemMenu
|
|
988 |
"This resource specification was automatically generated
|
|
989 |
by the MenuEditor of ST/X."
|
|
990 |
|
|
991 |
"Do not manually edit this!! If it is corrupted,
|
|
992 |
the MenuEditor may not be able to read the specification."
|
|
993 |
|
|
994 |
"
|
|
995 |
MenuEditor new openOnClass:ProjectBrowser andSelector:#classItemMenu
|
|
996 |
(Menu new fromLiteralArrayEncoding:(ProjectBrowser classItemMenu)) startUp
|
|
997 |
"
|
|
998 |
|
|
999 |
<resource: #menu>
|
|
1000 |
|
|
1001 |
^
|
|
1002 |
#(#Menu
|
|
1003 |
#(
|
|
1004 |
#(#MenuItem
|
|
1005 |
#label: 'Remove from Project...'
|
|
1006 |
#translateLabel: true
|
|
1007 |
#value: #removeClassFromProject
|
|
1008 |
#enabled: #hasClassesSelectedHolder
|
|
1009 |
)
|
|
1010 |
#(#MenuItem
|
|
1011 |
#label: '-'
|
|
1012 |
)
|
|
1013 |
#(#MenuItem
|
|
1014 |
#label: 'Browse...'
|
|
1015 |
#translateLabel: true
|
|
1016 |
#value: #browseClass
|
|
1017 |
#enabled: #hasClassesSelectedHolder
|
|
1018 |
)
|
|
1019 |
)
|
|
1020 |
nil
|
|
1021 |
nil
|
|
1022 |
)
|
|
1023 |
!
|
|
1024 |
|
1052
|
1025 |
classesItemMenu
|
|
1026 |
"This resource specification was automatically generated
|
|
1027 |
by the MenuEditor of ST/X."
|
|
1028 |
|
|
1029 |
"Do not manually edit this!! If it is corrupted,
|
|
1030 |
the MenuEditor may not be able to read the specification."
|
|
1031 |
|
|
1032 |
"
|
|
1033 |
MenuEditor new openOnClass:ProjectBrowser andSelector:#classesItemMenu
|
|
1034 |
(Menu new fromLiteralArrayEncoding:(ProjectBrowser classesItemMenu)) startUp
|
|
1035 |
"
|
|
1036 |
|
|
1037 |
<resource: #menu>
|
|
1038 |
|
|
1039 |
^
|
|
1040 |
|
|
1041 |
#(#Menu
|
|
1042 |
|
|
1043 |
#(
|
|
1044 |
#(#MenuItem
|
|
1045 |
#label: 'Add Class...'
|
|
1046 |
#translateLabel: true
|
|
1047 |
#value: #addClass
|
|
1048 |
#enabled: #hasClassesSelectedHolder
|
|
1049 |
)
|
|
1050 |
#(#MenuItem
|
|
1051 |
#label: '-'
|
|
1052 |
)
|
|
1053 |
#(#MenuItem
|
1094
|
1054 |
#label: 'Load Classes from Directory...'
|
|
1055 |
#translateLabel: true
|
|
1056 |
#value: #loadClassesFromDirectory
|
|
1057 |
#enabled: #canLoadClassesFromDirectory
|
|
1058 |
)
|
|
1059 |
#(#MenuItem
|
|
1060 |
#label: 'Load Classes from Repository...'
|
|
1061 |
#translateLabel: true
|
|
1062 |
#value: #loadClassesFromRepository
|
|
1063 |
#enabled: #canLoadClassesFromRepository
|
|
1064 |
)
|
|
1065 |
#(#MenuItem
|
|
1066 |
#label: '-'
|
|
1067 |
)
|
|
1068 |
#(#MenuItem
|
1052
|
1069 |
#label: 'Browse...'
|
|
1070 |
#translateLabel: true
|
|
1071 |
#value: #browseClasses
|
|
1072 |
#enabled: #hasClassesSelectedHolder
|
|
1073 |
)
|
|
1074 |
) nil
|
|
1075 |
nil
|
|
1076 |
)
|
|
1077 |
!
|
|
1078 |
|
1025
|
1079 |
mainMenu
|
|
1080 |
"This resource specification was automatically generated
|
|
1081 |
by the MenuEditor of ST/X."
|
|
1082 |
|
|
1083 |
"Do not manually edit this!! If it is corrupted,
|
|
1084 |
the MenuEditor may not be able to read the specification."
|
|
1085 |
|
|
1086 |
"
|
|
1087 |
MenuEditor new openOnClass:ProjectBrowser andSelector:#mainMenu
|
|
1088 |
(Menu new fromLiteralArrayEncoding:(ProjectBrowser mainMenu)) startUp
|
|
1089 |
"
|
|
1090 |
|
|
1091 |
<resource: #menu>
|
|
1092 |
|
1085
|
1093 |
^
|
|
1094 |
#(#Menu
|
|
1095 |
#(
|
|
1096 |
#(#MenuItem
|
|
1097 |
#label: 'File'
|
|
1098 |
#translateLabel: true
|
|
1099 |
#submenu:
|
|
1100 |
#(#Menu
|
|
1101 |
#(
|
|
1102 |
#(#MenuItem
|
|
1103 |
#label: 'Load From...'
|
|
1104 |
#translateLabel: true
|
|
1105 |
#value: #openProject
|
|
1106 |
)
|
|
1107 |
#(#MenuItem
|
|
1108 |
#label: '-'
|
|
1109 |
)
|
|
1110 |
#(#MenuItem
|
|
1111 |
#label: 'Save'
|
|
1112 |
#translateLabel: true
|
|
1113 |
#value: #saveProject
|
|
1114 |
#enabled: #hasProjectSelectedHolder
|
|
1115 |
)
|
|
1116 |
#(#MenuItem
|
|
1117 |
#label: '-'
|
|
1118 |
)
|
|
1119 |
#(#MenuItem
|
|
1120 |
#label: 'Exit'
|
|
1121 |
#translateLabel: true
|
|
1122 |
#value: #closeRequest
|
1025
|
1123 |
)
|
1085
|
1124 |
)
|
|
1125 |
nil
|
|
1126 |
nil
|
1026
|
1127 |
)
|
1085
|
1128 |
)
|
|
1129 |
#(#MenuItem
|
|
1130 |
#label: 'Project'
|
|
1131 |
#translateLabel: true
|
|
1132 |
#submenuChannel: #projectItemMenu
|
|
1133 |
)
|
|
1134 |
#(#MenuItem
|
1093
|
1135 |
#label: 'Build'
|
|
1136 |
#translateLabel: true
|
|
1137 |
#submenu:
|
|
1138 |
#(#Menu
|
|
1139 |
#(
|
|
1140 |
#(#MenuItem
|
|
1141 |
#label: 'All'
|
|
1142 |
#translateLabel: true
|
|
1143 |
#value: #buildAll
|
|
1144 |
)
|
|
1145 |
#(#MenuItem
|
|
1146 |
#label: '-'
|
|
1147 |
)
|
|
1148 |
#(#MenuItem
|
|
1149 |
#label: 'Make.proto && Makefile'
|
|
1150 |
#translateLabel: true
|
|
1151 |
#value: #generateMakefiles
|
|
1152 |
)
|
|
1153 |
)
|
|
1154 |
nil
|
|
1155 |
nil
|
|
1156 |
)
|
|
1157 |
)
|
|
1158 |
#(#MenuItem
|
1085
|
1159 |
#label: 'Help'
|
|
1160 |
#translateLabel: true
|
|
1161 |
#startGroup: #right
|
|
1162 |
#submenu:
|
|
1163 |
#(#Menu
|
|
1164 |
#(
|
|
1165 |
#(#MenuItem
|
|
1166 |
#label: 'Documentation'
|
|
1167 |
#translateLabel: true
|
|
1168 |
#value: #openDocumentation
|
1025
|
1169 |
)
|
1085
|
1170 |
#(#MenuItem
|
|
1171 |
#label: '-'
|
|
1172 |
)
|
|
1173 |
#(#MenuItem
|
|
1174 |
#label: 'About this Application'
|
|
1175 |
#translateLabel: true
|
|
1176 |
#value: #openAboutThisApplication
|
|
1177 |
)
|
|
1178 |
)
|
|
1179 |
nil
|
|
1180 |
nil
|
1025
|
1181 |
)
|
1085
|
1182 |
)
|
|
1183 |
)
|
|
1184 |
nil
|
|
1185 |
nil
|
1025
|
1186 |
)
|
|
1187 |
!
|
|
1188 |
|
|
1189 |
menu
|
|
1190 |
"This resource specification was automatically generated
|
|
1191 |
by the MenuEditor of ST/X."
|
|
1192 |
|
|
1193 |
"Do not manually edit this!! If it is corrupted,
|
|
1194 |
the MenuEditor may not be able to read the specification."
|
|
1195 |
|
|
1196 |
"
|
|
1197 |
MenuEditor new openOnClass:ProjectBrowser andSelector:#menu
|
|
1198 |
(Menu new fromLiteralArrayEncoding:(ProjectBrowser menu)) startUp
|
|
1199 |
"
|
|
1200 |
|
|
1201 |
<resource: #menu>
|
|
1202 |
|
|
1203 |
^
|
|
1204 |
|
|
1205 |
#(#Menu
|
|
1206 |
|
|
1207 |
#(
|
|
1208 |
#(#MenuItem
|
|
1209 |
#label: 'New...'
|
|
1210 |
#translateLabel: true
|
|
1211 |
#isButton: true
|
|
1212 |
#value: #newProject
|
|
1213 |
#labelImage: #(#ResourceRetriever #Icon #newIcon)
|
|
1214 |
)
|
|
1215 |
#(#MenuItem
|
|
1216 |
#label: 'Open...'
|
|
1217 |
#translateLabel: true
|
|
1218 |
#isButton: true
|
|
1219 |
#value: #openProject
|
|
1220 |
#labelImage: #(#ResourceRetriever #Icon #loadIcon)
|
|
1221 |
)
|
|
1222 |
#(#MenuItem
|
|
1223 |
#label: 'SaveAs...'
|
|
1224 |
#translateLabel: true
|
|
1225 |
#isButton: true
|
|
1226 |
#value: #saveProject
|
|
1227 |
#labelImage: #(#ResourceRetriever #Icon #saveIcon)
|
|
1228 |
)
|
|
1229 |
) nil
|
|
1230 |
nil
|
|
1231 |
)
|
1026
|
1232 |
!
|
|
1233 |
|
1079
|
1234 |
noItemMenu
|
|
1235 |
"This resource specification was automatically generated
|
|
1236 |
by the MenuEditor of ST/X."
|
|
1237 |
|
|
1238 |
"Do not manually edit this!! If it is corrupted,
|
|
1239 |
the MenuEditor may not be able to read the specification."
|
|
1240 |
|
|
1241 |
"
|
|
1242 |
MenuEditor new openOnClass:ProjectBrowser andSelector:#projectItemMenu
|
|
1243 |
(Menu new fromLiteralArrayEncoding:(ProjectBrowser projectItemMenu)) startUp
|
|
1244 |
"
|
|
1245 |
|
|
1246 |
<resource: #menu>
|
|
1247 |
|
|
1248 |
^
|
|
1249 |
|
|
1250 |
#(#Menu
|
|
1251 |
|
|
1252 |
#(
|
|
1253 |
#(#MenuItem
|
|
1254 |
#label: 'New Project'
|
|
1255 |
#translateLabel: true
|
|
1256 |
#value: #newProject
|
|
1257 |
)
|
|
1258 |
) nil
|
|
1259 |
nil
|
|
1260 |
)
|
|
1261 |
!
|
|
1262 |
|
1026
|
1263 |
projectItemMenu
|
|
1264 |
"This resource specification was automatically generated
|
|
1265 |
by the MenuEditor of ST/X."
|
|
1266 |
|
|
1267 |
"Do not manually edit this!! If it is corrupted,
|
|
1268 |
the MenuEditor may not be able to read the specification."
|
|
1269 |
|
|
1270 |
"
|
|
1271 |
MenuEditor new openOnClass:ProjectBrowser andSelector:#projectItemMenu
|
|
1272 |
(Menu new fromLiteralArrayEncoding:(ProjectBrowser projectItemMenu)) startUp
|
|
1273 |
"
|
|
1274 |
|
|
1275 |
<resource: #menu>
|
|
1276 |
|
|
1277 |
^
|
|
1278 |
|
|
1279 |
#(#Menu
|
|
1280 |
|
|
1281 |
#(
|
|
1282 |
#(#MenuItem
|
1079
|
1283 |
#label: 'Make Current'
|
1026
|
1284 |
#translateLabel: true
|
1079
|
1285 |
#value: #makeCurrentProject
|
1026
|
1286 |
#enabled: #hasProjectSelectedHolder
|
|
1287 |
)
|
|
1288 |
#(#MenuItem
|
|
1289 |
#label: '-'
|
|
1290 |
)
|
|
1291 |
#(#MenuItem
|
|
1292 |
#label: 'New SubProject'
|
|
1293 |
#translateLabel: true
|
|
1294 |
#value: #newSubProject
|
|
1295 |
#enabled: #hasProjectSelectedHolder
|
|
1296 |
)
|
|
1297 |
#(#MenuItem
|
|
1298 |
#label: '-'
|
|
1299 |
)
|
|
1300 |
#(#MenuItem
|
1079
|
1301 |
#label: 'Rename...'
|
|
1302 |
#translateLabel: true
|
|
1303 |
#value: #renameProject
|
|
1304 |
#enabled: #hasProjectSelectedHolder
|
|
1305 |
)
|
|
1306 |
#(#MenuItem
|
|
1307 |
#label: '-'
|
|
1308 |
)
|
|
1309 |
#(#MenuItem
|
1026
|
1310 |
#label: 'Remove...'
|
|
1311 |
#translateLabel: true
|
|
1312 |
#value: #removeProject
|
|
1313 |
#enabled: #hasProjectSelectedHolder
|
|
1314 |
)
|
|
1315 |
) nil
|
|
1316 |
nil
|
|
1317 |
)
|
1037
|
1318 |
!
|
|
1319 |
|
|
1320 |
subProjectsItemMenu
|
|
1321 |
"This resource specification was automatically generated
|
|
1322 |
by the MenuEditor of ST/X."
|
|
1323 |
|
|
1324 |
"Do not manually edit this!! If it is corrupted,
|
|
1325 |
the MenuEditor may not be able to read the specification."
|
|
1326 |
|
|
1327 |
"
|
|
1328 |
MenuEditor new openOnClass:ProjectBrowser andSelector:#subProjectsItemMenu
|
|
1329 |
(Menu new fromLiteralArrayEncoding:(ProjectBrowser subProjectsItemMenu)) startUp
|
|
1330 |
"
|
|
1331 |
|
|
1332 |
<resource: #menu>
|
|
1333 |
|
|
1334 |
^
|
|
1335 |
|
|
1336 |
#(#Menu
|
|
1337 |
|
|
1338 |
#(
|
|
1339 |
#(#MenuItem
|
|
1340 |
#label: 'New SubProject'
|
|
1341 |
#translateLabel: true
|
|
1342 |
#value: #newSubProject
|
|
1343 |
#enabled: #hasSubProjectsSelectedHolder
|
|
1344 |
)
|
|
1345 |
) nil
|
|
1346 |
nil
|
|
1347 |
)
|
|
1348 |
! !
|
|
1349 |
|
1095
|
1350 |
!ProjectBrowser class methodsFor:'startup'!
|
|
1351 |
|
|
1352 |
openOnFile:aFilename
|
|
1353 |
|browser nodes|
|
|
1354 |
|
|
1355 |
browser := self new.
|
|
1356 |
browser allButOpen.
|
|
1357 |
browser loadFromProjectFile:aFilename.
|
|
1358 |
nodes := browser projectTreeHolder root children.
|
|
1359 |
nodes size > 0 ifTrue:[
|
|
1360 |
"/ browser projectTreeHolder selectNode:nodes first.
|
|
1361 |
browser projectTreeHolder expand:nodes first.
|
|
1362 |
].
|
|
1363 |
|
|
1364 |
browser openWindow
|
|
1365 |
! !
|
|
1366 |
|
1037
|
1367 |
!ProjectBrowser class methodsFor:'tableColumns specs'!
|
|
1368 |
|
|
1369 |
classTableColumns
|
|
1370 |
"This resource specification was automatically generated
|
|
1371 |
by the DataSetBuilder of ST/X."
|
|
1372 |
|
|
1373 |
"Do not manually edit this!! If it is corrupted,
|
|
1374 |
the DataSetBuilder may not be able to read the specification."
|
|
1375 |
|
|
1376 |
"
|
|
1377 |
DataSetBuilder new openOnClass:ProjectBrowser andSelector:#classTableColumns
|
|
1378 |
"
|
|
1379 |
|
|
1380 |
<resource: #tableColumns>
|
|
1381 |
|
|
1382 |
|
|
1383 |
^ #(
|
|
1384 |
#(#DataSetColumnSpec
|
|
1385 |
#label: 'Class'
|
|
1386 |
#id: 'classColumn'
|
|
1387 |
#labelAlignment: #left
|
|
1388 |
#model: #classNameFromClassInfo:
|
|
1389 |
)
|
|
1390 |
#(#DataSetColumnSpec
|
|
1391 |
#label: 'Included'
|
|
1392 |
#id: 'inclusion'
|
|
1393 |
#columnAlignment: #center
|
|
1394 |
#width: 100
|
|
1395 |
#editorType: #ComboList
|
|
1396 |
#model: #classIncludeConditionFromClassInfo:
|
|
1397 |
)
|
|
1398 |
#(#DataSetColumnSpec
|
|
1399 |
#label: 'Filename'
|
|
1400 |
#labelAlignment: #left
|
|
1401 |
#minWidth: 200
|
|
1402 |
#model: #classFilenameFromClassInfo:
|
|
1403 |
)
|
|
1404 |
)
|
1043
|
1405 |
!
|
|
1406 |
|
|
1407 |
patchesTableColumns
|
|
1408 |
"This resource specification was automatically generated
|
|
1409 |
by the DataSetBuilder of ST/X."
|
|
1410 |
|
|
1411 |
"Do not manually edit this!! If it is corrupted,
|
|
1412 |
the DataSetBuilder may not be able to read the specification."
|
|
1413 |
|
|
1414 |
"
|
|
1415 |
DataSetBuilder new openOnClass:ProjectBrowser andSelector:#patchesTableColumns
|
|
1416 |
"
|
|
1417 |
|
|
1418 |
<resource: #tableColumns>
|
|
1419 |
|
|
1420 |
|
|
1421 |
^ #(
|
|
1422 |
#(#DataSetColumnSpec
|
|
1423 |
#label: 'Class'
|
|
1424 |
#id: 'classColumn'
|
|
1425 |
#labelAlignment: #left
|
|
1426 |
#model: #classNameFromPatchesInfo:
|
|
1427 |
)
|
|
1428 |
#(#DataSetColumnSpec
|
|
1429 |
#label: 'Selector'
|
|
1430 |
#id: 'selectorColumn'
|
|
1431 |
#labelAlignment: #left
|
|
1432 |
#model: #selectorFromPatchesInfo:
|
|
1433 |
)
|
|
1434 |
)
|
1025
|
1435 |
! !
|
|
1436 |
|
1099
|
1437 |
!ProjectBrowser methodsFor:'accessing'!
|
|
1438 |
|
|
1439 |
selectedTreeNode
|
|
1440 |
"automatically generated by UIPainter ..."
|
|
1441 |
|
|
1442 |
^ self selectedTreeNodeHolder value
|
|
1443 |
! !
|
|
1444 |
|
1025
|
1445 |
!ProjectBrowser methodsFor:'aspects'!
|
|
1446 |
|
1094
|
1447 |
browseClass
|
|
1448 |
|node className cls|
|
|
1449 |
|
|
1450 |
self hasClassNodeSelected ifFalse:[^ self].
|
|
1451 |
|
1099
|
1452 |
node := self selectedTreeNode.
|
1094
|
1453 |
className := node contents value.
|
|
1454 |
cls := Smalltalk at:className.
|
|
1455 |
cls isNil ifTrue:[
|
|
1456 |
self information:'The class is not (yet) loaded'.
|
|
1457 |
^ self.
|
|
1458 |
].
|
|
1459 |
SystemBrowser openInClass:cls selector:nil.
|
|
1460 |
|
|
1461 |
!
|
|
1462 |
|
1089
|
1463 |
canAddSelectedProjectToPrerequisites
|
|
1464 |
|holder|
|
|
1465 |
|
|
1466 |
(holder := builder bindingAt:#canAddSelectedProjectToPrerequisites) isNil ifTrue:[
|
1091
|
1467 |
holder := BlockValue
|
|
1468 |
with:[:m | self canAddToPrerequisites:m]
|
|
1469 |
argument:(self selectedProjectInPrerequisites).
|
1089
|
1470 |
builder aspectAt:#canAddSelectedProjectToPrerequisites put:holder.
|
|
1471 |
].
|
|
1472 |
^ holder.
|
|
1473 |
|
|
1474 |
"Created: / 23.3.1999 / 14:18:05 / cg"
|
|
1475 |
!
|
|
1476 |
|
|
1477 |
canRemoveSelectedProjectFromPrerequisites
|
|
1478 |
|holder|
|
|
1479 |
|
|
1480 |
(holder := builder bindingAt:#canRemoveSelectedProjectFromPrerequisites) isNil ifTrue:[
|
|
1481 |
holder := BlockValue with:[:m | m notNil] argument:(self selectedRequiredProjectInPrerequisites).
|
|
1482 |
builder aspectAt:#canRemoveSelectedProjectFromPrerequisites put:holder.
|
|
1483 |
].
|
|
1484 |
^ holder.
|
|
1485 |
|
|
1486 |
"Created: / 23.3.1999 / 14:18:05 / cg"
|
|
1487 |
!
|
|
1488 |
|
1037
|
1489 |
classList
|
|
1490 |
"automatically generated by UIPainter ..."
|
|
1491 |
|
|
1492 |
|holder|
|
|
1493 |
|
|
1494 |
(holder := builder bindingAt:#classList) isNil ifTrue:[
|
|
1495 |
builder aspectAt:#classList put:(holder := List new).
|
|
1496 |
].
|
|
1497 |
^ holder.
|
|
1498 |
!
|
|
1499 |
|
|
1500 |
classTableAdaptor
|
|
1501 |
^ self
|
|
1502 |
!
|
|
1503 |
|
|
1504 |
classTableColumns
|
1038
|
1505 |
^ self class classTableColumns
|
1037
|
1506 |
!
|
|
1507 |
|
1025
|
1508 |
currentCanvasHolder
|
|
1509 |
"automatically generated by UIPainter ..."
|
|
1510 |
|
|
1511 |
|holder|
|
|
1512 |
|
|
1513 |
(holder := builder bindingAt:#currentCanvasHolder) isNil ifTrue:[
|
|
1514 |
builder aspectAt:#currentCanvasHolder put:(holder := ValueHolder new).
|
|
1515 |
].
|
|
1516 |
^ holder.
|
|
1517 |
!
|
|
1518 |
|
1080
|
1519 |
currentProjectWasNotLoadedFromFile
|
|
1520 |
"automatically generated by UIPainter ..."
|
|
1521 |
|
|
1522 |
|holder|
|
|
1523 |
|
|
1524 |
(holder := builder bindingAt:#currentProjectWasNotLoadedFromFile) isNil ifTrue:[
|
|
1525 |
builder aspectAt:#currentProjectWasNotLoadedFromFile put:(holder := ValueHolder new).
|
|
1526 |
].
|
|
1527 |
^ holder.
|
|
1528 |
|
|
1529 |
"Created: / 23.3.1999 / 14:01:09 / cg"
|
|
1530 |
!
|
|
1531 |
|
1081
|
1532 |
deliverCompiledBinary
|
|
1533 |
"automatically generated by UIPainter ..."
|
|
1534 |
|
|
1535 |
|holder|
|
|
1536 |
|
|
1537 |
(holder := builder bindingAt:#deliverCompiledBinary) isNil ifTrue:[
|
|
1538 |
builder aspectAt:#deliverCompiledBinary put:(holder := ValueHolder new).
|
|
1539 |
holder onChangeSend:#value to:[modifiedChannel value:true].
|
|
1540 |
].
|
|
1541 |
^ holder.
|
|
1542 |
|
|
1543 |
"Created: / 23.3.1999 / 14:18:05 / cg"
|
|
1544 |
!
|
|
1545 |
|
1088
|
1546 |
deliverGZipArchive
|
|
1547 |
"automatically generated by UIPainter ..."
|
|
1548 |
|
|
1549 |
|holder|
|
|
1550 |
|
|
1551 |
(holder := builder bindingAt:#deliverGZipArchive) isNil ifTrue:[
|
|
1552 |
builder aspectAt:#deliverGZipArchive put:(holder := ValueHolder new).
|
|
1553 |
holder onChangeSend:#value to:[modifiedChannel value:true].
|
|
1554 |
].
|
|
1555 |
^ holder.
|
|
1556 |
|
|
1557 |
"Created: / 23.3.1999 / 14:18:05 / cg"
|
|
1558 |
!
|
|
1559 |
|
1091
|
1560 |
deliverLoadAllFile
|
|
1561 |
"automatically generated by UIPainter ..."
|
|
1562 |
|
|
1563 |
|holder|
|
|
1564 |
|
|
1565 |
(holder := builder bindingAt:#deliverLoadAllFile) isNil ifTrue:[
|
|
1566 |
builder aspectAt:#deliverLoadAllFile put:(holder := ValueHolder new).
|
|
1567 |
holder onChangeSend:#value to:[modifiedChannel value:true].
|
|
1568 |
].
|
|
1569 |
^ holder.
|
|
1570 |
|
|
1571 |
"Created: / 23.3.1999 / 14:18:05 / cg"
|
|
1572 |
!
|
|
1573 |
|
1081
|
1574 |
deliverSources
|
|
1575 |
"automatically generated by UIPainter ..."
|
|
1576 |
|
|
1577 |
|holder|
|
|
1578 |
|
|
1579 |
(holder := builder bindingAt:#deliverSources) isNil ifTrue:[
|
|
1580 |
builder aspectAt:#deliverSources put:(holder := ValueHolder new).
|
|
1581 |
holder onChangeSend:#value to:[modifiedChannel value:true].
|
|
1582 |
].
|
|
1583 |
^ holder.
|
|
1584 |
|
|
1585 |
"Created: / 23.3.1999 / 14:18:05 / cg"
|
|
1586 |
!
|
|
1587 |
|
|
1588 |
deliverZipArchive
|
|
1589 |
"automatically generated by UIPainter ..."
|
|
1590 |
|
|
1591 |
|holder|
|
|
1592 |
|
|
1593 |
(holder := builder bindingAt:#deliverZipArchive) isNil ifTrue:[
|
|
1594 |
builder aspectAt:#deliverZipArchive put:(holder := ValueHolder new).
|
|
1595 |
holder onChangeSend:#value to:[modifiedChannel value:true].
|
|
1596 |
].
|
|
1597 |
^ holder.
|
|
1598 |
|
|
1599 |
"Created: / 23.3.1999 / 14:18:05 / cg"
|
|
1600 |
!
|
|
1601 |
|
1026
|
1602 |
hasProjectSelectedHolder
|
|
1603 |
^ [
|
|
1604 |
self hasProjectNodeSelected
|
|
1605 |
]
|
|
1606 |
!
|
|
1607 |
|
1037
|
1608 |
hasSubProjectsSelectedHolder
|
|
1609 |
^ [
|
|
1610 |
self hasSubProjectsNodeSelected
|
|
1611 |
]
|
|
1612 |
!
|
|
1613 |
|
|
1614 |
htmlDocumentURLHolder
|
|
1615 |
"automatically generated by UIPainter ..."
|
|
1616 |
|
|
1617 |
|holder|
|
|
1618 |
|
|
1619 |
(holder := builder bindingAt:#htmlDocumentURLHolder) isNil ifTrue:[
|
|
1620 |
builder aspectAt:#htmlDocumentURLHolder put:(holder := ValueHolder new).
|
|
1621 |
].
|
|
1622 |
^ holder.
|
|
1623 |
!
|
|
1624 |
|
1081
|
1625 |
installDirectory
|
|
1626 |
"automatically generated by UIPainter ..."
|
|
1627 |
|
|
1628 |
|holder|
|
|
1629 |
|
|
1630 |
(holder := builder bindingAt:#installDirectory) isNil ifTrue:[
|
|
1631 |
builder aspectAt:#installDirectory put:(holder := '/opt' asValue).
|
|
1632 |
holder onChangeSend:#value to:[modifiedChannel value:true].
|
|
1633 |
].
|
|
1634 |
^ holder.
|
|
1635 |
|
|
1636 |
"Created: / 23.3.1999 / 14:18:05 / cg"
|
|
1637 |
!
|
|
1638 |
|
1089
|
1639 |
listOfAllProjectsInPrerequisites
|
|
1640 |
"automatically generated by UIPainter ..."
|
|
1641 |
|
1091
|
1642 |
|holder projects currentProject|
|
1089
|
1643 |
|
|
1644 |
(holder := builder bindingAt:#listOfAllProjectsInPrerequisites) isNil ifTrue:[
|
|
1645 |
builder aspectAt:#listOfAllProjectsInPrerequisites put:(holder := List new).
|
1091
|
1646 |
|
|
1647 |
currentProject := self currentProject.
|
|
1648 |
|
1089
|
1649 |
projects := Set new.
|
|
1650 |
Project allInstancesDo:[:p |
|
1091
|
1651 |
(p ~~ currentProject
|
|
1652 |
and:[p ~~ Project defaultProject]) ifTrue:[
|
|
1653 |
projects add:p name.
|
|
1654 |
]
|
1089
|
1655 |
].
|
|
1656 |
projects := projects asOrderedCollection sort.
|
|
1657 |
holder addAll:projects.
|
|
1658 |
].
|
|
1659 |
^ holder.
|
|
1660 |
|
|
1661 |
"Created: / 23.3.1999 / 14:18:05 / cg"
|
|
1662 |
!
|
|
1663 |
|
|
1664 |
listOfRequiredProjectsInPrerequisites
|
|
1665 |
"automatically generated by UIPainter ..."
|
|
1666 |
|
|
1667 |
|holder|
|
|
1668 |
|
|
1669 |
(holder := builder bindingAt:#listOfRequiredProjectsInPrerequisites) isNil ifTrue:[
|
|
1670 |
builder aspectAt:#listOfRequiredProjectsInPrerequisites put:(holder := List new).
|
|
1671 |
].
|
|
1672 |
^ holder.
|
|
1673 |
|
|
1674 |
"Created: / 23.3.1999 / 14:18:05 / cg"
|
|
1675 |
!
|
|
1676 |
|
1081
|
1677 |
modifiedChannel
|
|
1678 |
"automatically generated by UIPainter ..."
|
|
1679 |
|
|
1680 |
modifiedChannel isNil ifTrue:[
|
|
1681 |
modifiedChannel := false asValue.
|
|
1682 |
].
|
|
1683 |
^ modifiedChannel.
|
|
1684 |
|
|
1685 |
!
|
|
1686 |
|
1043
|
1687 |
patchesList
|
|
1688 |
"automatically generated by UIPainter ..."
|
|
1689 |
|
|
1690 |
|holder|
|
|
1691 |
|
|
1692 |
(holder := builder bindingAt:#patchesList) isNil ifTrue:[
|
|
1693 |
builder aspectAt:#patchesList put:(holder := List new).
|
|
1694 |
].
|
|
1695 |
^ holder.
|
|
1696 |
!
|
|
1697 |
|
1081
|
1698 |
projectDirectory
|
|
1699 |
"automatically generated by UIPainter ..."
|
|
1700 |
|
|
1701 |
|holder|
|
|
1702 |
|
|
1703 |
(holder := builder bindingAt:#projectDirectory) isNil ifTrue:[
|
|
1704 |
builder aspectAt:#projectDirectory put:(holder := '.' asValue).
|
|
1705 |
holder onChangeSend:#value to:[modifiedChannel value:true].
|
|
1706 |
].
|
|
1707 |
^ holder.
|
|
1708 |
|
|
1709 |
"Created: / 23.3.1999 / 14:18:05 / cg"
|
|
1710 |
!
|
|
1711 |
|
1091
|
1712 |
projectNamespace
|
|
1713 |
"automatically generated by UIPainter ..."
|
|
1714 |
|
|
1715 |
|holder|
|
|
1716 |
|
|
1717 |
(holder := builder bindingAt:#projectNamespace) isNil ifTrue:[
|
|
1718 |
builder aspectAt:#projectNamespace put:(holder := ValueHolder new).
|
|
1719 |
holder onChangeSend:#value to:[modifiedChannel value:true].
|
|
1720 |
].
|
|
1721 |
^ holder.
|
|
1722 |
|
|
1723 |
"Created: / 23.3.1999 / 14:18:05 / cg"
|
|
1724 |
!
|
|
1725 |
|
1025
|
1726 |
projectTreeHolder
|
|
1727 |
"automatically generated by UIPainter ..."
|
|
1728 |
|
|
1729 |
|holder|
|
|
1730 |
|
|
1731 |
(holder := builder bindingAt:#projectTree) isNil ifTrue:[
|
|
1732 |
builder aspectAt:#projectTree put:(holder := SelectionInTree new).
|
|
1733 |
holder root:self projectTree.
|
|
1734 |
].
|
|
1735 |
^ holder.
|
|
1736 |
!
|
|
1737 |
|
1080
|
1738 |
projectType
|
|
1739 |
"automatically generated by UIPainter ..."
|
|
1740 |
|
|
1741 |
|holder|
|
|
1742 |
|
|
1743 |
(holder := builder bindingAt:#projectType) isNil ifTrue:[
|
|
1744 |
builder aspectAt:#projectType put:(holder := ValueHolder new).
|
1081
|
1745 |
holder onChangeSend:#value to:[modifiedChannel value:true].
|
1080
|
1746 |
].
|
|
1747 |
^ holder.
|
|
1748 |
|
|
1749 |
"Created: / 23.3.1999 / 14:18:05 / cg"
|
|
1750 |
!
|
|
1751 |
|
1088
|
1752 |
repositoryDirectory
|
|
1753 |
"automatically generated by UIPainter ..."
|
|
1754 |
|
|
1755 |
|holder|
|
|
1756 |
|
|
1757 |
(holder := builder bindingAt:#repositoryDirectory) isNil ifTrue:[
|
|
1758 |
builder aspectAt:#repositoryDirectory put:(holder := ValueHolder new).
|
|
1759 |
holder onChangeSend:#value to:[modifiedChannel value:true].
|
|
1760 |
].
|
|
1761 |
^ holder.
|
|
1762 |
|
|
1763 |
"Created: / 23.3.1999 / 14:18:05 / cg"
|
|
1764 |
!
|
|
1765 |
|
|
1766 |
repositoryModule
|
|
1767 |
"automatically generated by UIPainter ..."
|
|
1768 |
|
|
1769 |
|holder|
|
|
1770 |
|
|
1771 |
(holder := builder bindingAt:#repositoryModule) isNil ifTrue:[
|
|
1772 |
builder aspectAt:#repositoryModule put:(holder := ValueHolder new).
|
|
1773 |
holder onChangeSend:#value to:[modifiedChannel value:true].
|
|
1774 |
].
|
|
1775 |
^ holder.
|
|
1776 |
|
|
1777 |
"Created: / 23.3.1999 / 14:18:05 / cg"
|
|
1778 |
!
|
|
1779 |
|
1025
|
1780 |
rightCanvasTextHolder
|
|
1781 |
"automatically generated by UIPainter ..."
|
|
1782 |
|
|
1783 |
|holder|
|
|
1784 |
|
|
1785 |
(holder := builder bindingAt:#rightCanvasTextHolder) isNil ifTrue:[
|
|
1786 |
builder aspectAt:#rightCanvasTextHolder put:(holder := ValueHolder new).
|
|
1787 |
].
|
|
1788 |
^ holder.
|
|
1789 |
!
|
|
1790 |
|
1089
|
1791 |
selectedProjectInPrerequisites
|
|
1792 |
"automatically generated by UIPainter ..."
|
|
1793 |
|
|
1794 |
|holder|
|
|
1795 |
|
|
1796 |
(holder := builder bindingAt:#selectedProjectInPrerequisites) isNil ifTrue:[
|
|
1797 |
builder aspectAt:#selectedProjectInPrerequisites put:(holder := ValueHolder new).
|
|
1798 |
].
|
|
1799 |
^ holder.
|
|
1800 |
|
|
1801 |
"Created: / 23.3.1999 / 14:18:05 / cg"
|
|
1802 |
!
|
|
1803 |
|
|
1804 |
selectedRequiredProjectInPrerequisites
|
|
1805 |
"automatically generated by UIPainter ..."
|
|
1806 |
|
|
1807 |
|holder|
|
|
1808 |
|
|
1809 |
(holder := builder bindingAt:#selectedRequiredProjectInPrerequisites) isNil ifTrue:[
|
|
1810 |
builder aspectAt:#selectedRequiredProjectInPrerequisites put:(holder := ValueHolder new).
|
|
1811 |
].
|
|
1812 |
^ holder.
|
|
1813 |
|
|
1814 |
"Created: / 23.3.1999 / 14:18:05 / cg"
|
|
1815 |
!
|
|
1816 |
|
1099
|
1817 |
selectedTreeNodeHolder
|
1025
|
1818 |
"automatically generated by UIPainter ..."
|
|
1819 |
|
|
1820 |
|holder|
|
|
1821 |
|
1099
|
1822 |
(holder := builder bindingAt:#selectedTreeNodeHolder) isNil ifTrue:[
|
|
1823 |
builder aspectAt:#selectedTreeNodeHolder put:(holder := ValueHolder new).
|
1025
|
1824 |
].
|
|
1825 |
^ holder.
|
|
1826 |
! !
|
|
1827 |
|
1081
|
1828 |
!ProjectBrowser methodsFor:'change & update'!
|
|
1829 |
|
|
1830 |
update:something with:aParameter from:changedObject
|
1085
|
1831 |
something == #name ifTrue:[
|
|
1832 |
"/ a project was renamed - update my tree
|
|
1833 |
self projectTree children do:[:pNode |
|
|
1834 |
pNode contents == changedObject ifTrue:[
|
|
1835 |
pNode name:changedObject name.
|
|
1836 |
pNode changed.
|
|
1837 |
]
|
|
1838 |
].
|
|
1839 |
^ self.
|
|
1840 |
].
|
|
1841 |
|
1081
|
1842 |
changedObject == self currentProject ifTrue:[
|
1094
|
1843 |
self halt.
|
|
1844 |
self readAspectsFromProject.
|
|
1845 |
self halt.
|
1081
|
1846 |
].
|
|
1847 |
! !
|
|
1848 |
|
1025
|
1849 |
!ProjectBrowser methodsFor:'initialization'!
|
|
1850 |
|
|
1851 |
postBuildWith:aBuiler
|
1081
|
1852 |
self modifiedChannel value:false.
|
|
1853 |
|
1095
|
1854 |
self updateRightCanvas.
|
1026
|
1855 |
^ super postBuildWith:aBuiler
|
1025
|
1856 |
!
|
|
1857 |
|
|
1858 |
setupCanvasForNoSelection
|
1079
|
1859 |
self
|
|
1860 |
showReadOnlyText:'Please select an existing project,
|
|
1861 |
load one from a (''.prj'')-file,
|
1025
|
1862 |
or create a new project.'.
|
|
1863 |
! !
|
|
1864 |
|
1026
|
1865 |
!ProjectBrowser methodsFor:'menus'!
|
|
1866 |
|
|
1867 |
itemMenu
|
1052
|
1868 |
|m|
|
|
1869 |
|
1088
|
1870 |
self hasNodeSelected ifFalse:[
|
|
1871 |
^ self class noItemMenu
|
|
1872 |
].
|
1026
|
1873 |
self hasProjectNodeSelected ifTrue:[
|
|
1874 |
^ self class projectItemMenu
|
|
1875 |
].
|
1037
|
1876 |
self hasSubProjectsNodeSelected ifTrue:[
|
|
1877 |
^ self class subProjectsItemMenu
|
|
1878 |
].
|
1052
|
1879 |
self hasClassesNodeSelected ifTrue:[
|
|
1880 |
^ self class classesItemMenu
|
|
1881 |
].
|
1094
|
1882 |
self hasClassNodeSelected ifTrue:[
|
|
1883 |
^ self class classItemMenu
|
|
1884 |
].
|
1088
|
1885 |
^ nil
|
1026
|
1886 |
!
|
|
1887 |
|
|
1888 |
itemMenuHolder
|
|
1889 |
^ [ self itemMenu]
|
1037
|
1890 |
!
|
|
1891 |
|
|
1892 |
itemMenuPerformer
|
|
1893 |
^ self
|
1026
|
1894 |
! !
|
|
1895 |
|
1025
|
1896 |
!ProjectBrowser methodsFor:'private'!
|
|
1897 |
|
1091
|
1898 |
canAddToPrerequisites:aProjectName
|
|
1899 |
^ aProjectName notNil
|
|
1900 |
and:[aProjectName ~= self currentProject name]
|
|
1901 |
!
|
|
1902 |
|
1094
|
1903 |
canLoadClassesFromDirectory
|
|
1904 |
|p projectDir|
|
|
1905 |
|
|
1906 |
self hasClassesNodeSelected ifFalse:[^ false].
|
|
1907 |
|
|
1908 |
(p := self currentProject) isNil ifTrue:[^ false].
|
|
1909 |
(projectDir := p directory) size == 0 ifTrue:[^ false].
|
|
1910 |
projectDir asFilename exists ifFalse:[^ false].
|
|
1911 |
|
|
1912 |
^ true
|
|
1913 |
!
|
|
1914 |
|
|
1915 |
canLoadClassesFromRepository
|
|
1916 |
|manager p moduleDir packageDir|
|
|
1917 |
|
|
1918 |
self hasClassesNodeSelected ifFalse:[^ false].
|
|
1919 |
|
|
1920 |
(p := self currentProject) isNil ifTrue:[^ false].
|
|
1921 |
(moduleDir := p repositoryModule) size == 0 ifTrue:[^ false].
|
|
1922 |
(packageDir := p repositoryDirectory) size == 0 ifTrue:[^ false].
|
|
1923 |
|
|
1924 |
"/ SourceCodeManager available ?
|
|
1925 |
|
|
1926 |
(AbstractSourceCodeManager notNil
|
|
1927 |
and:[AbstractSourceCodeManager isLoaded not]) ifTrue:[
|
|
1928 |
AbstractSourceCodeManager autoload.
|
|
1929 |
].
|
|
1930 |
|
|
1931 |
AbstractSourceCodeManager isNil ifTrue:[^ false].
|
|
1932 |
AbstractSourceCodeManager isLoaded ifFalse:[^ false].
|
|
1933 |
(manager := Smalltalk at:#SourceCodeManager) isNil ifTrue:[^ false].
|
|
1934 |
|
|
1935 |
"/ does the repository contain the module/package ?
|
|
1936 |
|
|
1937 |
(manager checkForExistingModule:moduleDir package:packageDir) ifFalse:[^ false].
|
|
1938 |
|
|
1939 |
^ true
|
|
1940 |
!
|
|
1941 |
|
1081
|
1942 |
currentProject
|
|
1943 |
|node|
|
|
1944 |
|
1099
|
1945 |
node := self selectedTreeNode.
|
1081
|
1946 |
node isNil ifTrue:[^ nil].
|
|
1947 |
|
|
1948 |
[node notNil and:[node isProjectNode not]] whileTrue:[
|
|
1949 |
node := node parent.
|
|
1950 |
].
|
|
1951 |
node notNil ifTrue:[
|
|
1952 |
^ node contents
|
|
1953 |
].
|
|
1954 |
^ nil
|
|
1955 |
|
|
1956 |
!
|
|
1957 |
|
1094
|
1958 |
hasClassNodeSelected
|
|
1959 |
|selectedNode|
|
|
1960 |
|
1099
|
1961 |
selectedNode := self selectedTreeNode.
|
1094
|
1962 |
selectedNode isNil ifTrue:[^ false].
|
|
1963 |
|
|
1964 |
^ selectedNode contents isAssociation
|
|
1965 |
and:[selectedNode contents key == #class]
|
|
1966 |
|
|
1967 |
!
|
|
1968 |
|
1052
|
1969 |
hasClassesNodeSelected
|
|
1970 |
|selectedNode|
|
|
1971 |
|
1099
|
1972 |
selectedNode := self selectedTreeNode.
|
1052
|
1973 |
selectedNode isNil ifTrue:[^ false].
|
|
1974 |
|
|
1975 |
^ selectedNode contents == #classes
|
|
1976 |
|
|
1977 |
!
|
|
1978 |
|
1088
|
1979 |
hasNodeSelected
|
1099
|
1980 |
^ self selectedTreeNode notNil
|
1088
|
1981 |
|
|
1982 |
!
|
|
1983 |
|
1026
|
1984 |
hasProjectNodeSelected
|
|
1985 |
|selectedNode|
|
|
1986 |
|
1099
|
1987 |
selectedNode := self selectedTreeNode.
|
1026
|
1988 |
selectedNode isNil ifTrue:[^ false].
|
|
1989 |
|
|
1990 |
^ selectedNode isProjectNode
|
|
1991 |
|
|
1992 |
!
|
|
1993 |
|
1037
|
1994 |
hasSubProjectsNodeSelected
|
|
1995 |
|selectedNode|
|
|
1996 |
|
1099
|
1997 |
selectedNode := self selectedTreeNode.
|
1037
|
1998 |
selectedNode isNil ifTrue:[^ false].
|
|
1999 |
|
|
2000 |
^ selectedNode contents == #subprojects
|
|
2001 |
|
|
2002 |
!
|
|
2003 |
|
1025
|
2004 |
nodeFor:aProject
|
1026
|
2005 |
"generate and return a treeNode for some project"
|
|
2006 |
|
1025
|
2007 |
|projectName pNode
|
1043
|
2008 |
propertiesNode docNode classesNode patchesNode subprojectsNode filesNode
|
|
2009 |
commentNode prerequisitesNode analysisNode designNode codeNode
|
1079
|
2010 |
userDocNode userOverViewNode userGuideNode userRefManNode
|
1097
|
2011 |
deploymentNode classIcon|
|
1025
|
2012 |
|
|
2013 |
projectName := aProject name.
|
1026
|
2014 |
pNode := ProjectNode name:projectName.
|
1025
|
2015 |
pNode contents:aProject.
|
|
2016 |
|
|
2017 |
pNode add:(commentNode := ProjectTreeItem name:'Comment').
|
1079
|
2018 |
"/ pNode add:(docNode := ProjectTreeItem name:'Documentation').
|
1025
|
2019 |
pNode add:(propertiesNode := ProjectTreeItem name:'Properties').
|
1026
|
2020 |
pNode add:(prerequisitesNode := ProjectTreeItem name:'Prerequisites').
|
1079
|
2021 |
"/ pNode add:(subprojectsNode := ProjectTreeItem name:'SubProjects').
|
1043
|
2022 |
pNode add:(classesNode := ProjectTreeItem name:'Classes').
|
|
2023 |
pNode add:(patchesNode := ProjectTreeItem name:'Patches').
|
1025
|
2024 |
pNode add:(filesNode := ProjectTreeItem name:'Files').
|
1079
|
2025 |
pNode add:(deploymentNode := ProjectTreeItem name:'Deployment').
|
1025
|
2026 |
|
1079
|
2027 |
subprojectsNode notNil ifTrue:[
|
|
2028 |
subprojectsNode contents:#subprojects.
|
|
2029 |
aProject subProjects do:[:aSubProject |
|
|
2030 |
subprojectsNode add:(self nodeFor:aSubProject)
|
|
2031 |
].
|
1025
|
2032 |
].
|
|
2033 |
|
1079
|
2034 |
commentNode icon:(self class commentIcon).
|
1025
|
2035 |
commentNode action:[:item | self showCommentOf:item].
|
1026
|
2036 |
commentNode contents:#comment.
|
|
2037 |
|
1079
|
2038 |
docNode notNil ifTrue:[
|
|
2039 |
docNode contents:#documentation.
|
|
2040 |
docNode action:[:item | self showDocumentationFor:item].
|
1037
|
2041 |
|
1079
|
2042 |
docNode add:(analysisNode := ProjectTreeItem name:'Analysis').
|
|
2043 |
docNode add:(designNode := ProjectTreeItem name:'Design').
|
|
2044 |
docNode add:(codeNode := ProjectTreeItem name:'Code').
|
|
2045 |
docNode add:(userDocNode := ProjectTreeItem name:'User Documentation').
|
|
2046 |
userDocNode add:(userOverViewNode := ProjectTreeItem name:'Overview').
|
|
2047 |
userDocNode add:(userGuideNode := ProjectTreeItem name:'Guide').
|
|
2048 |
userDocNode add:(userRefManNode := ProjectTreeItem name:'Reference').
|
|
2049 |
docNode add:(userDocNode := ProjectTreeItem name:'Error Reports').
|
|
2050 |
docNode add:(userDocNode := ProjectTreeItem name:'Other').
|
|
2051 |
].
|
1043
|
2052 |
|
|
2053 |
prerequisitesNode contents:#prerequisites.
|
1080
|
2054 |
prerequisitesNode icon:(self class prerequisitesIcon).
|
1091
|
2055 |
prerequisitesNode spec:[self class rightCanvasSpecForPrerequisites].
|
1043
|
2056 |
|
1097
|
2057 |
classIcon := self class classIcon.
|
|
2058 |
|
1037
|
2059 |
classesNode contents:#classes.
|
1079
|
2060 |
classesNode icon:(self class classesIcon).
|
1090
|
2061 |
((aProject classes ? #()) copy sort:[:a :b |
|
|
2062 |
|nmA nmB|
|
|
2063 |
|
|
2064 |
nmA := a isSymbol ifTrue:[a] ifFalse:[a name].
|
|
2065 |
nmB := b isSymbol ifTrue:[b] ifFalse:[b name].
|
|
2066 |
nmA < nmB
|
|
2067 |
])
|
1043
|
2068 |
do:[:aClass |
|
1090
|
2069 |
|cNode cName|
|
1043
|
2070 |
|
1090
|
2071 |
cName := aClass isSymbol ifTrue:[aClass] ifFalse:[aClass name].
|
|
2072 |
cNode := ProjectTreeItem name:cName.
|
1094
|
2073 |
cNode contents:(#class -> aClass).
|
1097
|
2074 |
cNode icon:classIcon.
|
1043
|
2075 |
classesNode add:cNode.
|
|
2076 |
].
|
1026
|
2077 |
|
|
2078 |
propertiesNode contents:#properties.
|
1091
|
2079 |
propertiesNode spec:[self class rightCanvasSpecForProperties].
|
1026
|
2080 |
|
|
2081 |
filesNode contents:#files.
|
1079
|
2082 |
filesNode icon:(self class filesIcon).
|
1025
|
2083 |
|
1043
|
2084 |
patchesNode contents:#patches.
|
1079
|
2085 |
patchesNode icon:(self class methodsIcon).
|
|
2086 |
|
|
2087 |
deploymentNode icon:(self class deploymentIcon).
|
1091
|
2088 |
deploymentNode spec:[self class rightCanvasSpecForDeployment].
|
1043
|
2089 |
|
1025
|
2090 |
^ pNode
|
1026
|
2091 |
|
1080
|
2092 |
"Modified: / 23.3.1999 / 14:27:30 / cg"
|
1025
|
2093 |
!
|
|
2094 |
|
|
2095 |
projectTree
|
|
2096 |
|tree root|
|
|
2097 |
|
1026
|
2098 |
projectTree isNil ifTrue:[
|
|
2099 |
tree := SelectionInTree new.
|
|
2100 |
tree root:(root := TreeItem name:'invisibleRoot').
|
1025
|
2101 |
|
1026
|
2102 |
Project knownProjects do:[:aProject |
|
|
2103 |
root add:(self nodeFor:aProject).
|
|
2104 |
].
|
|
2105 |
projectTree := root.
|
1025
|
2106 |
].
|
|
2107 |
|
1026
|
2108 |
^ projectTree
|
1025
|
2109 |
!
|
|
2110 |
|
1081
|
2111 |
readAspectsFromProject
|
|
2112 |
|p|
|
1080
|
2113 |
|
1081
|
2114 |
p := self currentProject.
|
|
2115 |
p notNil ifTrue:[
|
1099
|
2116 |
self selectedTreeNode contents == #comment ifTrue:[
|
1097
|
2117 |
self rightCanvasTextHolder value:p comment.
|
|
2118 |
].
|
1080
|
2119 |
|
|
2120 |
self currentProjectWasNotLoadedFromFile value:p wasLoadedFromFile not.
|
|
2121 |
self projectType value:(p type).
|
1081
|
2122 |
self projectDirectory value:(p directory).
|
1089
|
2123 |
|
1091
|
2124 |
self projectNamespace value:(p defaultNameSpace ? Smalltalk) name.
|
|
2125 |
|
1088
|
2126 |
self repositoryModule value:(p repositoryModule).
|
|
2127 |
self repositoryDirectory value:(p repositoryDirectory).
|
|
2128 |
|
|
2129 |
self deliverCompiledBinary value:(p propertyAt:#deliverCompiledBinary) ? false.
|
|
2130 |
self deliverGZipArchive value:(p propertyAt:#deliverGZipArchive) ? false.
|
|
2131 |
self deliverZipArchive value:(p propertyAt:#deliverZipArchive) ? false.
|
|
2132 |
self deliverSources value:(p propertyAt:#deliverSources) ? false.
|
1091
|
2133 |
self deliverLoadAllFile value:(p propertyAt:#deliverLoadAllFile) ? false.
|
1088
|
2134 |
|
1094
|
2135 |
self installDirectory value:(p propertyAt:#installDirectory) ? '/opt'.
|
|
2136 |
|
1081
|
2137 |
modifiedChannel value:false.
|
|
2138 |
p addDependent:self.
|
|
2139 |
].
|
|
2140 |
|
|
2141 |
"Created: / 23.3.1999 / 14:16:12 / cg"
|
|
2142 |
"Modified: / 23.3.1999 / 14:18:38 / cg"
|
|
2143 |
!
|
|
2144 |
|
|
2145 |
saveAspectsIntoProject
|
1091
|
2146 |
|p s ns|
|
1081
|
2147 |
|
|
2148 |
p := self currentProject.
|
|
2149 |
p notNil ifTrue:[
|
1094
|
2150 |
p removeDependent:self.
|
|
2151 |
|
1081
|
2152 |
"/ self currentProjectWasNotLoadedFromFile value:p wasLoadedFromFile not.
|
1088
|
2153 |
p type:self projectType value.
|
|
2154 |
"/ p directory:self projectDirectory value.
|
|
2155 |
|
|
2156 |
p repositoryModule:self repositoryModule value.
|
|
2157 |
p repositoryDirectory:self repositoryDirectory value.
|
|
2158 |
|
1091
|
2159 |
s := self projectNamespace value.
|
|
2160 |
(s size == 0) ifTrue:[
|
|
2161 |
ns := Smalltalk
|
|
2162 |
] ifFalse:[
|
|
2163 |
ns := Namespace name:s
|
|
2164 |
].
|
|
2165 |
p defaultNameSpace:ns.
|
|
2166 |
|
1088
|
2167 |
p propertyAt:#deliverCompiledBinary put:self deliverCompiledBinary value.
|
|
2168 |
p propertyAt:#deliverSources put:self deliverSources value.
|
|
2169 |
p propertyAt:#deliverZipArchive put:self deliverZipArchive value.
|
|
2170 |
p propertyAt:#deliverGZipArchive put:self deliverGZipArchive value.
|
1091
|
2171 |
p propertyAt:#deliverLoadAllFile put:self deliverLoadAllFile value.
|
1088
|
2172 |
|
1094
|
2173 |
p propertyAt:#installDirectory put:self installDirectory value.
|
|
2174 |
|
|
2175 |
p addDependent:self.
|
1080
|
2176 |
].
|
|
2177 |
|
|
2178 |
"Created: / 23.3.1999 / 14:16:12 / cg"
|
|
2179 |
"Modified: / 23.3.1999 / 14:18:38 / cg"
|
|
2180 |
!
|
|
2181 |
|
1025
|
2182 |
updateRightCanvas
|
1079
|
2183 |
|selectedNode nodeContents spec|
|
1025
|
2184 |
|
1091
|
2185 |
self selectedProjectInPrerequisites value:nil.
|
|
2186 |
self selectedRequiredProjectInPrerequisites value:nil.
|
|
2187 |
|
1099
|
2188 |
selectedNode := self selectedTreeNode.
|
1025
|
2189 |
selectedNode isNil ifTrue:[
|
|
2190 |
self setupCanvasForNoSelection.
|
|
2191 |
^ self
|
|
2192 |
].
|
1026
|
2193 |
|
1079
|
2194 |
(spec := selectedNode spec) notNil ifTrue:[
|
1091
|
2195 |
self currentCanvasHolder value:spec value.
|
1079
|
2196 |
^ self
|
|
2197 |
].
|
|
2198 |
|
1026
|
2199 |
selectedNode isProjectNode ifTrue:[
|
|
2200 |
self showCommentOf:selectedNode.
|
1025
|
2201 |
^ self.
|
|
2202 |
].
|
|
2203 |
|
1037
|
2204 |
selectedNode contents == #classes ifTrue:[
|
|
2205 |
self showClassListOf:selectedNode.
|
|
2206 |
^ self.
|
|
2207 |
].
|
1043
|
2208 |
selectedNode contents == #patches ifTrue:[
|
|
2209 |
self showPatchesListOf:selectedNode.
|
|
2210 |
^ self.
|
|
2211 |
].
|
1097
|
2212 |
self hasClassNodeSelected ifTrue:[
|
|
2213 |
self showClassDefinitionOf:selectedNode.
|
|
2214 |
^ self.
|
|
2215 |
].
|
1043
|
2216 |
|
1025
|
2217 |
self currentCanvasHolder value:(self class emptyRightCanvasSpec).
|
|
2218 |
self rightCanvasTextHolder value:''.
|
|
2219 |
|
1080
|
2220 |
"Modified: / 23.3.1999 / 14:16:02 / cg"
|
1025
|
2221 |
! !
|
|
2222 |
|
1037
|
2223 |
!ProjectBrowser methodsFor:'private - table col access'!
|
|
2224 |
|
1038
|
2225 |
classFilenameFromClassInfo:cInfo
|
|
2226 |
^ cInfo classFileName
|
|
2227 |
!
|
|
2228 |
|
|
2229 |
classIncludeConditionFromClassInfo:cInfo
|
|
2230 |
^ cInfo conditionForInclusion
|
|
2231 |
!
|
|
2232 |
|
1037
|
2233 |
classNameFromClassInfo:cInfo
|
1038
|
2234 |
^ cInfo className
|
1043
|
2235 |
!
|
|
2236 |
|
|
2237 |
classNameFromPatchesInfo:pInfo
|
|
2238 |
^ pInfo methodClass name
|
|
2239 |
!
|
|
2240 |
|
|
2241 |
selectorFromPatchesInfo:pInfo
|
|
2242 |
^ pInfo methodSelector
|
1037
|
2243 |
! !
|
|
2244 |
|
1025
|
2245 |
!ProjectBrowser methodsFor:'user actions'!
|
|
2246 |
|
1081
|
2247 |
accept
|
|
2248 |
"save values from aspects into the project"
|
|
2249 |
|
1088
|
2250 |
self saveAspectsIntoProject.
|
1094
|
2251 |
modifiedChannel value:false.
|
|
2252 |
|
1081
|
2253 |
!
|
|
2254 |
|
1089
|
2255 |
addToPrerequisites
|
|
2256 |
|sel|
|
|
2257 |
|
|
2258 |
sel := self selectedProjectInPrerequisites value.
|
|
2259 |
self listOfRequiredProjectsInPrerequisites add:sel.
|
|
2260 |
self listOfAllProjectsInPrerequisites remove:sel.
|
|
2261 |
self selectedProjectInPrerequisites value:nil.
|
|
2262 |
!
|
|
2263 |
|
1096
|
2264 |
browseClasses
|
|
2265 |
|ns p classes nBad|
|
|
2266 |
|
|
2267 |
p := self currentProject.
|
|
2268 |
classes := p classes
|
|
2269 |
collect:[:clsOrName |
|
|
2270 |
|cls|
|
|
2271 |
|
|
2272 |
clsOrName isSymbol ifTrue:[
|
|
2273 |
cls := Smalltalk at:clsOrName
|
|
2274 |
] ifFalse:[
|
|
2275 |
cls := clsOrName
|
|
2276 |
].
|
|
2277 |
cls
|
|
2278 |
].
|
|
2279 |
nBad := classes inject:0 into:[:sum :el | el isNil ifTrue:[sum+1] ifFalse:[sum]].
|
|
2280 |
nBad ~~ 0 ifTrue:[
|
|
2281 |
classes := classes select:[:cls | cls notNil].
|
|
2282 |
self warn:('Oops - %1 classes could not be found.' bindWith:nBad).
|
|
2283 |
].
|
|
2284 |
|
|
2285 |
|
|
2286 |
SystemBrowser
|
|
2287 |
browseClasses:classes title:('Classes in ' , p name) sort:true.
|
|
2288 |
|
|
2289 |
|
|
2290 |
|
|
2291 |
!
|
|
2292 |
|
1081
|
2293 |
cancel
|
|
2294 |
"reload aspects from the project"
|
|
2295 |
|
|
2296 |
self readAspectsFromProject
|
|
2297 |
!
|
|
2298 |
|
1099
|
2299 |
itemDoubleClicked:index
|
|
2300 |
|node className cls|
|
|
2301 |
|
|
2302 |
self hasClassNodeSelected ifTrue:[
|
|
2303 |
node := self selectedTreeNode.
|
|
2304 |
className := node contents value.
|
|
2305 |
cls := Smalltalk at:className.
|
|
2306 |
cls isNil ifTrue:[
|
|
2307 |
self information:'The class is not (yet) loaded'.
|
|
2308 |
^ self
|
|
2309 |
].
|
|
2310 |
SystemBrowser browseClass:cls.
|
|
2311 |
].
|
|
2312 |
!
|
|
2313 |
|
1025
|
2314 |
itemSelected:index
|
|
2315 |
|item action|
|
|
2316 |
|
|
2317 |
self updateRightCanvas.
|
|
2318 |
|
1081
|
2319 |
self readAspectsFromProject.
|
|
2320 |
|
1025
|
2321 |
item := self projectTreeHolder value at:index.
|
|
2322 |
action := item action.
|
|
2323 |
action notNil ifTrue:[
|
|
2324 |
action value:item.
|
|
2325 |
].
|
|
2326 |
!
|
|
2327 |
|
1095
|
2328 |
loadClassesFromDirectory
|
|
2329 |
"load all classes as contained in the project into the system"
|
|
2330 |
|
1096
|
2331 |
self withReadCursorDo:[
|
1098
|
2332 |
self currentProject loadClassesFromProjectDirectory.
|
1095
|
2333 |
].
|
|
2334 |
|
|
2335 |
!
|
|
2336 |
|
|
2337 |
loadFromProjectFile:aFilenameString
|
|
2338 |
|newProject|
|
|
2339 |
|
1096
|
2340 |
self withReadCursorDo:[
|
|
2341 |
newProject := Project new loadFromProjectFile:aFilenameString.
|
|
2342 |
newProject notNil ifTrue:[
|
|
2343 |
self newProject:newProject
|
|
2344 |
]
|
1095
|
2345 |
]
|
|
2346 |
!
|
|
2347 |
|
1079
|
2348 |
makeCurrentProject
|
|
2349 |
"make the selected Project the current project"
|
|
2350 |
|
|
2351 |
|project selectedNode|
|
|
2352 |
|
|
2353 |
self hasProjectNodeSelected ifTrue:[
|
1099
|
2354 |
selectedNode := self selectedTreeNode.
|
1079
|
2355 |
project := selectedNode contents.
|
|
2356 |
|
|
2357 |
Project current:project.
|
|
2358 |
]
|
|
2359 |
!
|
|
2360 |
|
1026
|
2361 |
newProject
|
1037
|
2362 |
self newProject:Project new.
|
|
2363 |
|
|
2364 |
!
|
1026
|
2365 |
|
1037
|
2366 |
newProject:newProject
|
|
2367 |
|newNode|
|
|
2368 |
|
1026
|
2369 |
newNode := self nodeFor:newProject.
|
|
2370 |
projectTree add:newNode.
|
|
2371 |
self projectTreeHolder root:projectTree.
|
1095
|
2372 |
"/ self projectTreeHolder selectNode:newNode.
|
|
2373 |
"/ self projectTreeHolder expand:newNode.
|
1026
|
2374 |
!
|
|
2375 |
|
|
2376 |
newSubProject
|
1037
|
2377 |
|selectedNode subProjectsNode newNode parentProject newProject|
|
|
2378 |
|
1099
|
2379 |
selectedNode := self selectedTreeNode.
|
1026
|
2380 |
|
|
2381 |
self hasProjectNodeSelected ifTrue:[
|
|
2382 |
parentProject := selectedNode contents.
|
1037
|
2383 |
subProjectsNode := selectedNode children detect:[:child | child contents == #subprojects].
|
|
2384 |
] ifFalse:[
|
|
2385 |
self hasSubProjectsNodeSelected ifTrue:[
|
|
2386 |
subProjectsNode := selectedNode.
|
|
2387 |
parentProject := selectedNode parent contents.
|
|
2388 |
].
|
|
2389 |
].
|
|
2390 |
self halt.
|
|
2391 |
parentProject notNil ifTrue:[
|
1026
|
2392 |
newProject := Project new.
|
|
2393 |
newNode := self nodeFor:newProject.
|
|
2394 |
|
|
2395 |
parentProject addSubProject:newProject.
|
1037
|
2396 |
subProjectsNode add:newNode.
|
1026
|
2397 |
self projectTreeHolder root:projectTree.
|
1037
|
2398 |
self projectTreeHolder selectNode:newNode.
|
|
2399 |
]
|
|
2400 |
!
|
|
2401 |
|
|
2402 |
openProject
|
1095
|
2403 |
|fn|
|
1037
|
2404 |
|
|
2405 |
fn := Dialog
|
|
2406 |
requestFileName:'filename:'
|
|
2407 |
default:nil
|
|
2408 |
ifFail:nil
|
|
2409 |
pattern:'*.prj'
|
|
2410 |
fromDirectory:(FileSelectionBox lastFileSelectionDirectory).
|
|
2411 |
|
|
2412 |
fn notNil ifTrue:[
|
1095
|
2413 |
self loadFromProjectFile:fn.
|
1026
|
2414 |
]
|
|
2415 |
!
|
|
2416 |
|
1089
|
2417 |
removeFromPrerequisites
|
|
2418 |
|sel|
|
|
2419 |
|
|
2420 |
sel := self selectedRequiredProjectInPrerequisites value.
|
|
2421 |
self listOfAllProjectsInPrerequisites add:sel.
|
|
2422 |
self listOfRequiredProjectsInPrerequisites remove:sel.
|
|
2423 |
self selectedRequiredProjectInPrerequisites value:nil.
|
|
2424 |
!
|
|
2425 |
|
1037
|
2426 |
removeProject
|
|
2427 |
|projectToRemove selectedNode subNode newNode parentNode parentProject newProject|
|
1025
|
2428 |
|
1026
|
2429 |
self hasProjectNodeSelected ifTrue:[
|
1099
|
2430 |
selectedNode := self selectedTreeNode.
|
1026
|
2431 |
projectToRemove := selectedNode contents.
|
|
2432 |
|
1079
|
2433 |
(self confirm:'Really remove the project ?') ifTrue:[
|
1098
|
2434 |
self withExecuteCursorDo:[
|
|
2435 |
self projectTreeHolder removeSelection.
|
|
2436 |
projectToRemove removeFromSystem.
|
|
2437 |
]
|
1079
|
2438 |
]
|
1037
|
2439 |
]
|
|
2440 |
!
|
|
2441 |
|
|
2442 |
renameProject
|
|
2443 |
|nm selectedNode selectedProject|
|
|
2444 |
|
|
2445 |
self hasProjectNodeSelected ifTrue:[
|
1099
|
2446 |
selectedNode := self selectedTreeNode.
|
1037
|
2447 |
selectedProject := selectedNode contents.
|
1026
|
2448 |
|
1037
|
2449 |
nm := Dialog
|
|
2450 |
request:'Rename to:'
|
|
2451 |
initialAnswer:selectedProject name.
|
|
2452 |
|
|
2453 |
nm size > 0 ifTrue:[
|
|
2454 |
selectedProject name:nm.
|
1085
|
2455 |
"/ selectedNode name:nm.
|
|
2456 |
"/ selectedNode changed.
|
1037
|
2457 |
]
|
1026
|
2458 |
]
|
|
2459 |
!
|
|
2460 |
|
1081
|
2461 |
saveProject
|
|
2462 |
|d p|
|
|
2463 |
|
|
2464 |
p := self currentProject.
|
|
2465 |
p directory isNil ifTrue:[
|
|
2466 |
d := (Dialog request:'Project Directory:').
|
|
2467 |
d size == 0 ifTrue:[
|
|
2468 |
^ self
|
|
2469 |
].
|
|
2470 |
p directory:d
|
|
2471 |
].
|
|
2472 |
|
|
2473 |
p saveAsProjectFile.
|
|
2474 |
!
|
|
2475 |
|
|
2476 |
selectionChangeAllowed
|
|
2477 |
|answer|
|
|
2478 |
|
|
2479 |
modifiedChannel value ifTrue:[
|
|
2480 |
answer := Dialog confirmWithCancel:'Accept changes ?'.
|
|
2481 |
answer isNil ifTrue:[
|
|
2482 |
^ false
|
|
2483 |
].
|
|
2484 |
answer == true ifTrue:[
|
|
2485 |
self accept.
|
|
2486 |
].
|
|
2487 |
].
|
|
2488 |
^ true
|
|
2489 |
|
|
2490 |
!
|
|
2491 |
|
1097
|
2492 |
showClassDefinitionOf:anItem
|
|
2493 |
|node className cls text|
|
|
2494 |
|
|
2495 |
self hasClassNodeSelected ifFalse:[^ self].
|
|
2496 |
|
|
2497 |
self currentCanvasHolder value:(self class rightCanvasSpecForEditableText).
|
|
2498 |
|
1099
|
2499 |
node := self selectedTreeNode.
|
1097
|
2500 |
className := node contents value.
|
|
2501 |
cls := Smalltalk at:className.
|
|
2502 |
cls isNil ifTrue:[
|
|
2503 |
text := 'The class is not (yet) loaded'.
|
|
2504 |
] ifFalse:[
|
|
2505 |
text := cls definition
|
|
2506 |
].
|
|
2507 |
self rightCanvasTextHolder value:text.
|
|
2508 |
|
|
2509 |
!
|
|
2510 |
|
1037
|
2511 |
showClassListOf:anItem
|
|
2512 |
|projectItem project classInfo l|
|
|
2513 |
|
|
2514 |
projectItem := anItem parent.
|
|
2515 |
project := projectItem contents.
|
|
2516 |
|
1038
|
2517 |
classInfo := project classInfo asOrderedCollection.
|
|
2518 |
classInfo sort:[:a :b | a className < b className].
|
|
2519 |
|
1037
|
2520 |
l := self classList.
|
|
2521 |
l removeAll.
|
|
2522 |
l addAll:classInfo.
|
|
2523 |
|
|
2524 |
self currentCanvasHolder value:(self class rightCanvasSpecForClassList).
|
|
2525 |
!
|
|
2526 |
|
1026
|
2527 |
showCommentOf:anItem
|
|
2528 |
|projectItem project|
|
1025
|
2529 |
|
1026
|
2530 |
anItem contents == #comment ifTrue:[
|
|
2531 |
projectItem := anItem parent
|
|
2532 |
] ifFalse:[
|
|
2533 |
projectItem := anItem
|
|
2534 |
].
|
|
2535 |
project := projectItem contents.
|
|
2536 |
|
|
2537 |
self currentCanvasHolder value:(self class rightCanvasSpecForEditableText).
|
1025
|
2538 |
self rightCanvasTextHolder value:project comment.
|
|
2539 |
|
|
2540 |
!
|
|
2541 |
|
1037
|
2542 |
showDocumentationFor:anItem
|
|
2543 |
|projectItem project|
|
|
2544 |
|
|
2545 |
anItem contents == #documentation ifTrue:[
|
|
2546 |
projectItem := anItem parent
|
|
2547 |
] ifFalse:[
|
|
2548 |
projectItem := anItem
|
|
2549 |
].
|
|
2550 |
project := projectItem contents.
|
|
2551 |
|
|
2552 |
self currentCanvasHolder value:(self class rightCanvasSpecForHTMLText).
|
|
2553 |
self htmlDocumentURLHolder value:project documentationURL.
|
|
2554 |
!
|
|
2555 |
|
1043
|
2556 |
showPatchesListOf:anItem
|
|
2557 |
|projectItem project patches l|
|
|
2558 |
|
|
2559 |
projectItem := anItem parent.
|
|
2560 |
project := projectItem contents.
|
|
2561 |
|
|
2562 |
patches := project individualMethods.
|
|
2563 |
patches := patches collect:[:m | m who].
|
|
2564 |
patches := patches sort:[:w1 :w2 |
|
|
2565 |
w1 methodClass name < w2 methodClass name ifTrue:[
|
|
2566 |
true
|
|
2567 |
] ifFalse:[
|
|
2568 |
w1 methodClass name = w2 methodClass name ifFalse:[
|
|
2569 |
false
|
|
2570 |
] ifTrue:[
|
|
2571 |
w1 methodSelector < w2 methodSelector
|
|
2572 |
]
|
|
2573 |
]
|
|
2574 |
].
|
|
2575 |
|
|
2576 |
l := self patchesList.
|
|
2577 |
l removeAll.
|
|
2578 |
l addAll:patches.
|
|
2579 |
|
|
2580 |
self currentCanvasHolder value:(self class rightCanvasSpecForPatchesList).
|
|
2581 |
!
|
|
2582 |
|
1026
|
2583 |
showReadOnlyText:someText
|
|
2584 |
self currentCanvasHolder value:(self class rightCanvasSpecForReadOnlyText).
|
|
2585 |
self rightCanvasTextHolder value:someText.
|
|
2586 |
|
1025
|
2587 |
! !
|
|
2588 |
|
|
2589 |
!ProjectBrowser::ProjectTreeItem methodsFor:'accessing'!
|
|
2590 |
|
|
2591 |
action
|
|
2592 |
"return the value of the instance variable 'action' (automatically generated)"
|
|
2593 |
|
|
2594 |
^ action!
|
|
2595 |
|
|
2596 |
action:something
|
|
2597 |
"set the value of the instance variable 'action' (automatically generated)"
|
|
2598 |
|
1079
|
2599 |
action := something.!
|
|
2600 |
|
|
2601 |
spec
|
|
2602 |
"return the value of the instance variable 'spec' (automatically generated)"
|
|
2603 |
|
|
2604 |
^ spec!
|
|
2605 |
|
|
2606 |
spec:something
|
|
2607 |
"set the value of the instance variable 'spec' (automatically generated)"
|
|
2608 |
|
|
2609 |
spec := something.! !
|
1025
|
2610 |
|
1026
|
2611 |
!ProjectBrowser::ProjectTreeItem methodsFor:'queries'!
|
|
2612 |
|
|
2613 |
isProjectNode
|
|
2614 |
^ false
|
|
2615 |
! !
|
|
2616 |
|
|
2617 |
!ProjectBrowser::ProjectNode methodsFor:'queries'!
|
|
2618 |
|
|
2619 |
isProjectNode
|
|
2620 |
^ true
|
|
2621 |
|
|
2622 |
|
|
2623 |
! !
|
|
2624 |
|
1025
|
2625 |
!ProjectBrowser class methodsFor:'documentation'!
|
|
2626 |
|
|
2627 |
version
|
|
2628 |
^ '$Header$'
|
|
2629 |
! !
|