1037
|
1 |
ToolApplicationModel subclass:#ProjectBrowser
|
1026
|
2 |
instanceVariableNames:'projectTree'
|
1025
|
3 |
classVariableNames:''
|
|
4 |
poolDictionaries:''
|
|
5 |
category:'Interface-Smalltalk'
|
|
6 |
!
|
|
7 |
|
|
8 |
TreeItem subclass:#ProjectTreeItem
|
|
9 |
instanceVariableNames:'action'
|
|
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 |
|
|
23 |
!ProjectBrowser class methodsFor:'interface specs'!
|
|
24 |
|
|
25 |
emptyRightCanvasSpec
|
|
26 |
"This resource specification was automatically generated
|
|
27 |
by the UIPainter of ST/X."
|
|
28 |
|
|
29 |
"Do not manually edit this!! If it is corrupted,
|
|
30 |
the UIPainter may not be able to read the specification."
|
|
31 |
|
|
32 |
"
|
|
33 |
UIPainter new openOnClass:ProjectBrowser andSelector:#emptyRightCanvasSpec
|
|
34 |
ProjectBrowser new openInterface:#emptyRightCanvasSpec
|
|
35 |
"
|
|
36 |
|
|
37 |
<resource: #canvas>
|
|
38 |
|
|
39 |
^
|
|
40 |
|
|
41 |
#(#FullSpec
|
|
42 |
#window:
|
|
43 |
#(#WindowSpec
|
|
44 |
#name: 'NewApplication'
|
|
45 |
#layout: #(#LayoutFrame 216 0 173 0 515 0 472 0)
|
|
46 |
#label: 'NewApplication'
|
|
47 |
#min: #(#Point 10 10)
|
|
48 |
#max: #(#Point 1280 1024)
|
|
49 |
#bounds: #(#Rectangle 216 173 516 473)
|
|
50 |
#usePreferredExtent: false
|
|
51 |
)
|
|
52 |
#component:
|
|
53 |
#(#SpecCollection
|
|
54 |
#collection:
|
|
55 |
#(
|
|
56 |
#(#TextEditorSpec
|
|
57 |
#name: 'TextEditor1'
|
|
58 |
#layout: #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
|
|
59 |
#model: #rightCanvasTextHolder
|
|
60 |
#hasHorizontalScrollBar: true
|
|
61 |
#hasVerticalScrollBar: true
|
|
62 |
#miniScrollerHorizontal: true
|
|
63 |
#isReadOnly: true
|
|
64 |
)
|
|
65 |
)
|
|
66 |
)
|
|
67 |
)
|
|
68 |
!
|
|
69 |
|
1037
|
70 |
rightCanvasSpecForClassList
|
|
71 |
"This resource specification was automatically generated
|
|
72 |
by the UIPainter of ST/X."
|
|
73 |
|
|
74 |
"Do not manually edit this!! If it is corrupted,
|
|
75 |
the UIPainter may not be able to read the specification."
|
|
76 |
|
|
77 |
"
|
|
78 |
UIPainter new openOnClass:ProjectBrowser andSelector:#rightCanvasSpecForClassList
|
|
79 |
ProjectBrowser new openInterface:#rightCanvasSpecForClassList
|
|
80 |
"
|
|
81 |
|
|
82 |
<resource: #canvas>
|
|
83 |
|
|
84 |
^
|
|
85 |
|
|
86 |
#(#FullSpec
|
|
87 |
#window:
|
|
88 |
#(#WindowSpec
|
|
89 |
#name: 'NewApplication'
|
|
90 |
#layout: #(#LayoutFrame 216 0 173 0 515 0 472 0)
|
|
91 |
#level: 0
|
|
92 |
#label: 'NewApplication'
|
|
93 |
#min: #(#Point 10 10)
|
|
94 |
#max: #(#Point 1280 1024)
|
|
95 |
#bounds: #(#Rectangle 216 173 516 473)
|
|
96 |
#usePreferredExtent: false
|
|
97 |
)
|
|
98 |
#component:
|
|
99 |
#(#SpecCollection
|
|
100 |
#collection:
|
|
101 |
#(
|
|
102 |
#(#DataSetSpec
|
|
103 |
#name: 'classTable'
|
|
104 |
#layout: #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
|
|
105 |
#hasHorizontalScrollBar: true
|
|
106 |
#hasVerticalScrollBar: true
|
|
107 |
#dataList: #classList
|
|
108 |
#has3Dsepartors: false
|
|
109 |
#columnHolder: #classTableColumns
|
|
110 |
#columnAdaptor: #classTableAdaptor
|
|
111 |
)
|
|
112 |
)
|
|
113 |
)
|
|
114 |
)
|
|
115 |
!
|
|
116 |
|
1026
|
117 |
rightCanvasSpecForEditableText
|
|
118 |
"This resource specification was automatically generated
|
|
119 |
by the UIPainter of ST/X."
|
|
120 |
|
|
121 |
"Do not manually edit this!! If it is corrupted,
|
|
122 |
the UIPainter may not be able to read the specification."
|
|
123 |
|
|
124 |
"
|
|
125 |
UIPainter new openOnClass:ProjectBrowser andSelector:#emptyRightCanvasSpec
|
|
126 |
ProjectBrowser new openInterface:#emptyRightCanvasSpec
|
|
127 |
"
|
|
128 |
|
|
129 |
<resource: #canvas>
|
|
130 |
|
|
131 |
^
|
|
132 |
|
|
133 |
#(#FullSpec
|
|
134 |
#window:
|
|
135 |
#(#WindowSpec
|
|
136 |
#name: 'NewApplication'
|
|
137 |
#layout: #(#LayoutFrame 216 0 173 0 515 0 472 0)
|
|
138 |
#label: 'NewApplication'
|
|
139 |
#min: #(#Point 10 10)
|
|
140 |
#max: #(#Point 1280 1024)
|
|
141 |
#bounds: #(#Rectangle 216 173 516 473)
|
|
142 |
#usePreferredExtent: false
|
|
143 |
)
|
|
144 |
#component:
|
|
145 |
#(#SpecCollection
|
|
146 |
#collection:
|
|
147 |
#(
|
|
148 |
#(#TextEditorSpec
|
|
149 |
#name: 'TextEditor1'
|
|
150 |
#layout: #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
|
|
151 |
#model: #rightCanvasTextHolder
|
|
152 |
#hasHorizontalScrollBar: true
|
|
153 |
#hasVerticalScrollBar: true
|
|
154 |
#miniScrollerHorizontal: true
|
|
155 |
#isReadOnly: false
|
|
156 |
)
|
|
157 |
)
|
|
158 |
)
|
|
159 |
)
|
|
160 |
!
|
|
161 |
|
1037
|
162 |
rightCanvasSpecForHTMLText
|
|
163 |
"This resource specification was automatically generated
|
|
164 |
by the UIPainter of ST/X."
|
|
165 |
|
|
166 |
"Do not manually edit this!! If it is corrupted,
|
|
167 |
the UIPainter may not be able to read the specification."
|
|
168 |
|
|
169 |
"
|
|
170 |
UIPainter new openOnClass:ProjectBrowser andSelector:#rightCanvasSpecForHTMLText
|
|
171 |
ProjectBrowser new openInterface:#rightCanvasSpecForHTMLText
|
|
172 |
"
|
|
173 |
|
|
174 |
<resource: #canvas>
|
|
175 |
|
|
176 |
^
|
|
177 |
|
|
178 |
#(#FullSpec
|
|
179 |
#window:
|
|
180 |
#(#WindowSpec
|
|
181 |
#name: 'NewApplication'
|
|
182 |
#layout: #(#LayoutFrame 216 0 173 0 515 0 472 0)
|
|
183 |
#level: 0
|
|
184 |
#label: 'NewApplication'
|
|
185 |
#min: #(#Point 10 10)
|
|
186 |
#max: #(#Point 1280 1024)
|
|
187 |
#bounds: #(#Rectangle 216 173 516 473)
|
|
188 |
#usePreferredExtent: false
|
|
189 |
)
|
|
190 |
#component:
|
|
191 |
#(#SpecCollection
|
|
192 |
#collection:
|
|
193 |
#(
|
|
194 |
#(#HTMLViewSpec
|
|
195 |
#name: 'HTMLBrowser1'
|
|
196 |
#layout: #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
|
|
197 |
#model: #htmlDocumentURLHolder
|
|
198 |
#hasHorizontalScrollBar: true
|
|
199 |
#hasVerticalScrollBar: true
|
|
200 |
)
|
|
201 |
)
|
|
202 |
)
|
|
203 |
)
|
|
204 |
!
|
|
205 |
|
1043
|
206 |
rightCanvasSpecForPatchesList
|
|
207 |
"This resource specification was automatically generated
|
|
208 |
by the UIPainter of ST/X."
|
|
209 |
|
|
210 |
"Do not manually edit this!! If it is corrupted,
|
|
211 |
the UIPainter may not be able to read the specification."
|
|
212 |
|
|
213 |
"
|
|
214 |
UIPainter new openOnClass:ProjectBrowser andSelector:#rightCanvasSpecForPatchesList
|
|
215 |
ProjectBrowser new openInterface:#rightCanvasSpecForPatchesList
|
|
216 |
"
|
|
217 |
|
|
218 |
<resource: #canvas>
|
|
219 |
|
|
220 |
^
|
|
221 |
|
|
222 |
#(#FullSpec
|
|
223 |
#window:
|
|
224 |
#(#WindowSpec
|
|
225 |
#name: 'NewApplication'
|
|
226 |
#layout: #(#LayoutFrame 216 0 173 0 515 0 472 0)
|
|
227 |
#level: 0
|
|
228 |
#label: 'NewApplication'
|
|
229 |
#min: #(#Point 10 10)
|
|
230 |
#max: #(#Point 1280 1024)
|
|
231 |
#bounds: #(#Rectangle 216 173 516 473)
|
|
232 |
#usePreferredExtent: false
|
|
233 |
)
|
|
234 |
#component:
|
|
235 |
#(#SpecCollection
|
|
236 |
#collection:
|
|
237 |
#(
|
|
238 |
#(#DataSetSpec
|
|
239 |
#name: 'patchesTable'
|
|
240 |
#layout: #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
|
|
241 |
#hasHorizontalScrollBar: true
|
|
242 |
#hasVerticalScrollBar: true
|
|
243 |
#dataList: #patchesList
|
|
244 |
#has3Dsepartors: false
|
|
245 |
#columnHolder: #patchesTableColumns
|
|
246 |
#columnAdaptor: #classTableAdaptor
|
|
247 |
)
|
|
248 |
)
|
|
249 |
)
|
|
250 |
)
|
|
251 |
!
|
|
252 |
|
1026
|
253 |
rightCanvasSpecForReadOnlyText
|
|
254 |
"This resource specification was automatically generated
|
|
255 |
by the UIPainter of ST/X."
|
|
256 |
|
|
257 |
"Do not manually edit this!! If it is corrupted,
|
|
258 |
the UIPainter may not be able to read the specification."
|
|
259 |
|
|
260 |
"
|
|
261 |
UIPainter new openOnClass:ProjectBrowser andSelector:#emptyRightCanvasSpec
|
|
262 |
ProjectBrowser new openInterface:#emptyRightCanvasSpec
|
|
263 |
"
|
|
264 |
|
|
265 |
<resource: #canvas>
|
|
266 |
|
|
267 |
^
|
|
268 |
|
|
269 |
#(#FullSpec
|
|
270 |
#window:
|
|
271 |
#(#WindowSpec
|
|
272 |
#name: 'NewApplication'
|
|
273 |
#layout: #(#LayoutFrame 216 0 173 0 515 0 472 0)
|
|
274 |
#label: 'NewApplication'
|
|
275 |
#min: #(#Point 10 10)
|
|
276 |
#max: #(#Point 1280 1024)
|
|
277 |
#bounds: #(#Rectangle 216 173 516 473)
|
|
278 |
#usePreferredExtent: false
|
|
279 |
)
|
|
280 |
#component:
|
|
281 |
#(#SpecCollection
|
|
282 |
#collection:
|
|
283 |
#(
|
|
284 |
#(#TextEditorSpec
|
|
285 |
#name: 'TextEditor1'
|
|
286 |
#layout: #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
|
|
287 |
#model: #rightCanvasTextHolder
|
|
288 |
#hasHorizontalScrollBar: true
|
|
289 |
#hasVerticalScrollBar: true
|
|
290 |
#miniScrollerHorizontal: true
|
|
291 |
#isReadOnly: true
|
|
292 |
)
|
|
293 |
)
|
|
294 |
)
|
|
295 |
)
|
|
296 |
!
|
|
297 |
|
1025
|
298 |
windowSpec
|
|
299 |
"This resource specification was automatically generated
|
|
300 |
by the UIPainter of ST/X."
|
|
301 |
|
|
302 |
"Do not manually edit this!! If it is corrupted,
|
|
303 |
the UIPainter may not be able to read the specification."
|
|
304 |
|
|
305 |
"
|
|
306 |
UIPainter new openOnClass:ProjectBrowser andSelector:#windowSpec
|
|
307 |
ProjectBrowser new openInterface:#windowSpec
|
|
308 |
ProjectBrowser open
|
|
309 |
"
|
|
310 |
|
|
311 |
<resource: #canvas>
|
|
312 |
|
|
313 |
^
|
|
314 |
|
|
315 |
#(#FullSpec
|
|
316 |
#window:
|
|
317 |
#(#WindowSpec
|
|
318 |
#name: 'ProjectBrowser'
|
1026
|
319 |
#layout: #(#LayoutFrame 216 0 173 0 779 0 495 0)
|
1037
|
320 |
#level: 0
|
1025
|
321 |
#label: 'ProjectBrowser'
|
|
322 |
#min: #(#Point 10 10)
|
|
323 |
#max: #(#Point 1024 768)
|
1026
|
324 |
#bounds: #(#Rectangle 216 173 780 496)
|
1025
|
325 |
#menu: #mainMenu
|
|
326 |
#usePreferredExtent: false
|
|
327 |
)
|
|
328 |
#component:
|
|
329 |
#(#SpecCollection
|
|
330 |
#collection:
|
|
331 |
#(
|
|
332 |
#(#MenuPanelSpec
|
|
333 |
#name: 'ToolBar1'
|
|
334 |
#layout: #(#LayoutFrame 0 0.0 0 0 0 1.0 32 0)
|
|
335 |
#menu: #menu
|
|
336 |
#textDefault: true
|
|
337 |
)
|
|
338 |
#(#VariableHorizontalPanelSpec
|
|
339 |
#name: 'VariableHorizontalPanel1'
|
1037
|
340 |
#layout: #(#LayoutFrame 0 0.0 40 0.0 0 1.0 -24 1.0)
|
1025
|
341 |
#component:
|
|
342 |
#(#SpecCollection
|
|
343 |
#collection:
|
|
344 |
#(
|
|
345 |
#(#SelectionInTreeViewSpec
|
|
346 |
#name: 'TreeList1'
|
|
347 |
#model: #selectedTreeNode
|
1026
|
348 |
#menu: #itemMenuHolder
|
1037
|
349 |
#performer: #itemMenuPerformer
|
1025
|
350 |
#hasHorizontalScrollBar: true
|
|
351 |
#hasVerticalScrollBar: true
|
|
352 |
#miniScrollerHorizontal: true
|
|
353 |
#showRoot: false
|
|
354 |
#showDirectoryIndicatorForRoot: false
|
|
355 |
#showDirectoryIndicator: true
|
|
356 |
#valueChangeSelector: #itemSelected:
|
|
357 |
#hierarchicalList: #projectTreeHolder
|
|
358 |
#highlightMode: #label
|
|
359 |
)
|
|
360 |
#(#SubCanvasSpec
|
|
361 |
#name: 'SubCanvas1'
|
|
362 |
#hasHorizontalScrollBar: false
|
|
363 |
#hasVerticalScrollBar: false
|
|
364 |
#specHolder: #currentCanvasHolder
|
|
365 |
)
|
|
366 |
)
|
|
367 |
)
|
1026
|
368 |
#handles: #(#Any 0.379433 1.0)
|
1025
|
369 |
)
|
1037
|
370 |
#(#UISubSpecification
|
|
371 |
#name: 'infoBarSubSpec'
|
|
372 |
#layout: #(#LayoutFrame 0 0.0 -24 1 0 1.0 0 1.0)
|
|
373 |
#majorKey: #ToolApplicationModel
|
|
374 |
#minorKey: #windowSpecForInfoBar
|
|
375 |
)
|
1025
|
376 |
)
|
|
377 |
)
|
|
378 |
)
|
|
379 |
! !
|
|
380 |
|
|
381 |
!ProjectBrowser class methodsFor:'menu specs'!
|
|
382 |
|
1052
|
383 |
classesItemMenu
|
|
384 |
"This resource specification was automatically generated
|
|
385 |
by the MenuEditor of ST/X."
|
|
386 |
|
|
387 |
"Do not manually edit this!! If it is corrupted,
|
|
388 |
the MenuEditor may not be able to read the specification."
|
|
389 |
|
|
390 |
"
|
|
391 |
MenuEditor new openOnClass:ProjectBrowser andSelector:#classesItemMenu
|
|
392 |
(Menu new fromLiteralArrayEncoding:(ProjectBrowser classesItemMenu)) startUp
|
|
393 |
"
|
|
394 |
|
|
395 |
<resource: #menu>
|
|
396 |
|
|
397 |
^
|
|
398 |
|
|
399 |
#(#Menu
|
|
400 |
|
|
401 |
#(
|
|
402 |
#(#MenuItem
|
|
403 |
#label: 'Add Class...'
|
|
404 |
#translateLabel: true
|
|
405 |
#value: #addClass
|
|
406 |
#enabled: #hasClassesSelectedHolder
|
|
407 |
)
|
|
408 |
#(#MenuItem
|
|
409 |
#label: '-'
|
|
410 |
)
|
|
411 |
#(#MenuItem
|
|
412 |
#label: 'Browse...'
|
|
413 |
#translateLabel: true
|
|
414 |
#value: #browseClasses
|
|
415 |
#enabled: #hasClassesSelectedHolder
|
|
416 |
)
|
|
417 |
) nil
|
|
418 |
nil
|
|
419 |
)
|
|
420 |
!
|
|
421 |
|
1025
|
422 |
mainMenu
|
|
423 |
"This resource specification was automatically generated
|
|
424 |
by the MenuEditor of ST/X."
|
|
425 |
|
|
426 |
"Do not manually edit this!! If it is corrupted,
|
|
427 |
the MenuEditor may not be able to read the specification."
|
|
428 |
|
|
429 |
"
|
|
430 |
MenuEditor new openOnClass:ProjectBrowser andSelector:#mainMenu
|
|
431 |
(Menu new fromLiteralArrayEncoding:(ProjectBrowser mainMenu)) startUp
|
|
432 |
"
|
|
433 |
|
|
434 |
<resource: #menu>
|
|
435 |
|
|
436 |
^
|
|
437 |
|
|
438 |
#(#Menu
|
|
439 |
|
|
440 |
#(
|
|
441 |
#(#MenuItem
|
|
442 |
#label: 'File'
|
|
443 |
#translateLabel: true
|
|
444 |
#submenu:
|
|
445 |
#(#Menu
|
|
446 |
|
|
447 |
#(
|
|
448 |
#(#MenuItem
|
|
449 |
#label: 'New'
|
|
450 |
#translateLabel: true
|
|
451 |
#value: #newProject
|
|
452 |
)
|
|
453 |
#(#MenuItem
|
|
454 |
#label: '-'
|
|
455 |
)
|
|
456 |
#(#MenuItem
|
|
457 |
#label: 'Open...'
|
|
458 |
#translateLabel: true
|
|
459 |
#value: #openProject
|
|
460 |
)
|
|
461 |
#(#MenuItem
|
|
462 |
#label: '-'
|
|
463 |
)
|
|
464 |
#(#MenuItem
|
|
465 |
#label: 'Save'
|
|
466 |
#translateLabel: true
|
|
467 |
#value: #saveProject
|
1026
|
468 |
#enabled: #hasProjectSelectedHolder
|
1025
|
469 |
)
|
|
470 |
#(#MenuItem
|
|
471 |
#label: 'Save As...'
|
|
472 |
#translateLabel: true
|
|
473 |
#value: #saveProjectAs
|
1026
|
474 |
#enabled: #hasProjectSelectedHolder
|
1025
|
475 |
)
|
|
476 |
#(#MenuItem
|
|
477 |
#label: '-'
|
|
478 |
)
|
|
479 |
#(#MenuItem
|
|
480 |
#label: 'Exit'
|
|
481 |
#translateLabel: true
|
|
482 |
#value: #closeRequest
|
|
483 |
)
|
|
484 |
) nil
|
|
485 |
nil
|
|
486 |
)
|
|
487 |
)
|
|
488 |
#(#MenuItem
|
1026
|
489 |
#label: 'Project'
|
|
490 |
#translateLabel: true
|
|
491 |
#submenuChannel: #projectItemMenu
|
|
492 |
)
|
|
493 |
#(#MenuItem
|
1025
|
494 |
#label: 'Help'
|
|
495 |
#translateLabel: true
|
|
496 |
#startGroup: #right
|
|
497 |
#submenu:
|
|
498 |
#(#Menu
|
|
499 |
|
|
500 |
#(
|
|
501 |
#(#MenuItem
|
|
502 |
#label: 'Documentation'
|
|
503 |
#translateLabel: true
|
|
504 |
#value: #openDocumentation
|
|
505 |
)
|
|
506 |
#(#MenuItem
|
|
507 |
#label: '-'
|
|
508 |
)
|
|
509 |
#(#MenuItem
|
|
510 |
#label: 'About this Application'
|
|
511 |
#translateLabel: true
|
|
512 |
#value: #openAboutThisApplication
|
|
513 |
)
|
|
514 |
) nil
|
|
515 |
nil
|
|
516 |
)
|
|
517 |
)
|
|
518 |
) nil
|
|
519 |
nil
|
|
520 |
)
|
|
521 |
!
|
|
522 |
|
|
523 |
menu
|
|
524 |
"This resource specification was automatically generated
|
|
525 |
by the MenuEditor of ST/X."
|
|
526 |
|
|
527 |
"Do not manually edit this!! If it is corrupted,
|
|
528 |
the MenuEditor may not be able to read the specification."
|
|
529 |
|
|
530 |
"
|
|
531 |
MenuEditor new openOnClass:ProjectBrowser andSelector:#menu
|
|
532 |
(Menu new fromLiteralArrayEncoding:(ProjectBrowser menu)) startUp
|
|
533 |
"
|
|
534 |
|
|
535 |
<resource: #menu>
|
|
536 |
|
|
537 |
^
|
|
538 |
|
|
539 |
#(#Menu
|
|
540 |
|
|
541 |
#(
|
|
542 |
#(#MenuItem
|
|
543 |
#label: 'New...'
|
|
544 |
#translateLabel: true
|
|
545 |
#isButton: true
|
|
546 |
#value: #newProject
|
|
547 |
#labelImage: #(#ResourceRetriever #Icon #newIcon)
|
|
548 |
)
|
|
549 |
#(#MenuItem
|
|
550 |
#label: 'Open...'
|
|
551 |
#translateLabel: true
|
|
552 |
#isButton: true
|
|
553 |
#value: #openProject
|
|
554 |
#labelImage: #(#ResourceRetriever #Icon #loadIcon)
|
|
555 |
)
|
|
556 |
#(#MenuItem
|
|
557 |
#label: 'SaveAs...'
|
|
558 |
#translateLabel: true
|
|
559 |
#isButton: true
|
|
560 |
#value: #saveProject
|
|
561 |
#labelImage: #(#ResourceRetriever #Icon #saveIcon)
|
|
562 |
)
|
|
563 |
) nil
|
|
564 |
nil
|
|
565 |
)
|
1026
|
566 |
!
|
|
567 |
|
|
568 |
projectItemMenu
|
|
569 |
"This resource specification was automatically generated
|
|
570 |
by the MenuEditor of ST/X."
|
|
571 |
|
|
572 |
"Do not manually edit this!! If it is corrupted,
|
|
573 |
the MenuEditor may not be able to read the specification."
|
|
574 |
|
|
575 |
"
|
|
576 |
MenuEditor new openOnClass:ProjectBrowser andSelector:#projectItemMenu
|
|
577 |
(Menu new fromLiteralArrayEncoding:(ProjectBrowser projectItemMenu)) startUp
|
|
578 |
"
|
|
579 |
|
|
580 |
<resource: #menu>
|
|
581 |
|
|
582 |
^
|
|
583 |
|
|
584 |
#(#Menu
|
|
585 |
|
|
586 |
#(
|
|
587 |
#(#MenuItem
|
|
588 |
#label: 'Rename...'
|
|
589 |
#translateLabel: true
|
|
590 |
#value: #renameProject
|
|
591 |
#enabled: #hasProjectSelectedHolder
|
|
592 |
)
|
|
593 |
#(#MenuItem
|
|
594 |
#label: '-'
|
|
595 |
)
|
|
596 |
#(#MenuItem
|
|
597 |
#label: 'New SubProject'
|
|
598 |
#translateLabel: true
|
|
599 |
#value: #newSubProject
|
|
600 |
#enabled: #hasProjectSelectedHolder
|
|
601 |
)
|
|
602 |
#(#MenuItem
|
|
603 |
#label: '-'
|
|
604 |
)
|
|
605 |
#(#MenuItem
|
|
606 |
#label: 'Remove...'
|
|
607 |
#translateLabel: true
|
|
608 |
#value: #removeProject
|
|
609 |
#enabled: #hasProjectSelectedHolder
|
|
610 |
)
|
|
611 |
) nil
|
|
612 |
nil
|
|
613 |
)
|
1037
|
614 |
!
|
|
615 |
|
|
616 |
subProjectsItemMenu
|
|
617 |
"This resource specification was automatically generated
|
|
618 |
by the MenuEditor of ST/X."
|
|
619 |
|
|
620 |
"Do not manually edit this!! If it is corrupted,
|
|
621 |
the MenuEditor may not be able to read the specification."
|
|
622 |
|
|
623 |
"
|
|
624 |
MenuEditor new openOnClass:ProjectBrowser andSelector:#subProjectsItemMenu
|
|
625 |
(Menu new fromLiteralArrayEncoding:(ProjectBrowser subProjectsItemMenu)) startUp
|
|
626 |
"
|
|
627 |
|
|
628 |
<resource: #menu>
|
|
629 |
|
|
630 |
^
|
|
631 |
|
|
632 |
#(#Menu
|
|
633 |
|
|
634 |
#(
|
|
635 |
#(#MenuItem
|
|
636 |
#label: 'New SubProject'
|
|
637 |
#translateLabel: true
|
|
638 |
#value: #newSubProject
|
|
639 |
#enabled: #hasSubProjectsSelectedHolder
|
|
640 |
)
|
|
641 |
) nil
|
|
642 |
nil
|
|
643 |
)
|
|
644 |
! !
|
|
645 |
|
|
646 |
!ProjectBrowser class methodsFor:'tableColumns specs'!
|
|
647 |
|
|
648 |
classTableColumns
|
|
649 |
"This resource specification was automatically generated
|
|
650 |
by the DataSetBuilder of ST/X."
|
|
651 |
|
|
652 |
"Do not manually edit this!! If it is corrupted,
|
|
653 |
the DataSetBuilder may not be able to read the specification."
|
|
654 |
|
|
655 |
"
|
|
656 |
DataSetBuilder new openOnClass:ProjectBrowser andSelector:#classTableColumns
|
|
657 |
"
|
|
658 |
|
|
659 |
<resource: #tableColumns>
|
|
660 |
|
|
661 |
|
|
662 |
^ #(
|
|
663 |
#(#DataSetColumnSpec
|
|
664 |
#label: 'Class'
|
|
665 |
#id: 'classColumn'
|
|
666 |
#labelAlignment: #left
|
|
667 |
#model: #classNameFromClassInfo:
|
|
668 |
)
|
|
669 |
#(#DataSetColumnSpec
|
|
670 |
#label: 'Included'
|
|
671 |
#id: 'inclusion'
|
|
672 |
#columnAlignment: #center
|
|
673 |
#width: 100
|
|
674 |
#editorType: #ComboList
|
|
675 |
#model: #classIncludeConditionFromClassInfo:
|
|
676 |
)
|
|
677 |
#(#DataSetColumnSpec
|
|
678 |
#label: 'Filename'
|
|
679 |
#labelAlignment: #left
|
|
680 |
#minWidth: 200
|
|
681 |
#model: #classFilenameFromClassInfo:
|
|
682 |
)
|
|
683 |
)
|
1043
|
684 |
!
|
|
685 |
|
|
686 |
patchesTableColumns
|
|
687 |
"This resource specification was automatically generated
|
|
688 |
by the DataSetBuilder of ST/X."
|
|
689 |
|
|
690 |
"Do not manually edit this!! If it is corrupted,
|
|
691 |
the DataSetBuilder may not be able to read the specification."
|
|
692 |
|
|
693 |
"
|
|
694 |
DataSetBuilder new openOnClass:ProjectBrowser andSelector:#patchesTableColumns
|
|
695 |
"
|
|
696 |
|
|
697 |
<resource: #tableColumns>
|
|
698 |
|
|
699 |
|
|
700 |
^ #(
|
|
701 |
#(#DataSetColumnSpec
|
|
702 |
#label: 'Class'
|
|
703 |
#id: 'classColumn'
|
|
704 |
#labelAlignment: #left
|
|
705 |
#model: #classNameFromPatchesInfo:
|
|
706 |
)
|
|
707 |
#(#DataSetColumnSpec
|
|
708 |
#label: 'Selector'
|
|
709 |
#id: 'selectorColumn'
|
|
710 |
#labelAlignment: #left
|
|
711 |
#model: #selectorFromPatchesInfo:
|
|
712 |
)
|
|
713 |
)
|
1025
|
714 |
! !
|
|
715 |
|
|
716 |
!ProjectBrowser methodsFor:'aspects'!
|
|
717 |
|
1037
|
718 |
classList
|
|
719 |
"automatically generated by UIPainter ..."
|
|
720 |
|
|
721 |
"*** the code below creates a default model when invoked."
|
|
722 |
"*** (which may not be the one you wanted)"
|
|
723 |
"*** Please change as required and accept in the browser."
|
|
724 |
|
|
725 |
|holder|
|
|
726 |
|
|
727 |
(holder := builder bindingAt:#classList) isNil ifTrue:[
|
|
728 |
builder aspectAt:#classList put:(holder := List new).
|
|
729 |
].
|
|
730 |
^ holder.
|
|
731 |
!
|
|
732 |
|
|
733 |
classTableAdaptor
|
|
734 |
^ self
|
|
735 |
!
|
|
736 |
|
|
737 |
classTableColumns
|
1038
|
738 |
^ self class classTableColumns
|
1037
|
739 |
!
|
|
740 |
|
1025
|
741 |
currentCanvasHolder
|
|
742 |
"automatically generated by UIPainter ..."
|
|
743 |
|
|
744 |
"*** the code below creates a default model when invoked."
|
|
745 |
"*** (which may not be the one you wanted)"
|
|
746 |
"*** Please change as required and accept in the browser."
|
|
747 |
|
|
748 |
|holder|
|
|
749 |
|
|
750 |
(holder := builder bindingAt:#currentCanvasHolder) isNil ifTrue:[
|
|
751 |
builder aspectAt:#currentCanvasHolder put:(holder := ValueHolder new).
|
|
752 |
].
|
|
753 |
^ holder.
|
|
754 |
!
|
|
755 |
|
1026
|
756 |
hasProjectSelectedHolder
|
|
757 |
^ [
|
|
758 |
self hasProjectNodeSelected
|
|
759 |
]
|
|
760 |
!
|
|
761 |
|
1037
|
762 |
hasSubProjectsSelectedHolder
|
|
763 |
^ [
|
|
764 |
self hasSubProjectsNodeSelected
|
|
765 |
]
|
|
766 |
!
|
|
767 |
|
|
768 |
htmlDocumentURLHolder
|
|
769 |
"automatically generated by UIPainter ..."
|
|
770 |
|
|
771 |
"*** the code below creates a default model when invoked."
|
|
772 |
"*** (which may not be the one you wanted)"
|
|
773 |
"*** Please change as required and accept in the browser."
|
|
774 |
|
|
775 |
|holder|
|
|
776 |
|
|
777 |
(holder := builder bindingAt:#htmlDocumentURLHolder) isNil ifTrue:[
|
|
778 |
builder aspectAt:#htmlDocumentURLHolder put:(holder := ValueHolder new).
|
|
779 |
].
|
|
780 |
^ holder.
|
|
781 |
!
|
|
782 |
|
1043
|
783 |
patchesList
|
|
784 |
"automatically generated by UIPainter ..."
|
|
785 |
|
|
786 |
"*** the code below creates a default model when invoked."
|
|
787 |
"*** (which may not be the one you wanted)"
|
|
788 |
"*** Please change as required and accept in the browser."
|
|
789 |
|
|
790 |
|holder|
|
|
791 |
|
|
792 |
(holder := builder bindingAt:#patchesList) isNil ifTrue:[
|
|
793 |
builder aspectAt:#patchesList put:(holder := List new).
|
|
794 |
].
|
|
795 |
^ holder.
|
|
796 |
!
|
|
797 |
|
1025
|
798 |
projectTreeHolder
|
|
799 |
"automatically generated by UIPainter ..."
|
|
800 |
|
|
801 |
"*** the code below creates a default model when invoked."
|
|
802 |
"*** (which may not be the one you wanted)"
|
|
803 |
"*** Please change as required and accept in the browser."
|
|
804 |
|
|
805 |
|holder|
|
|
806 |
|
|
807 |
(holder := builder bindingAt:#projectTree) isNil ifTrue:[
|
|
808 |
builder aspectAt:#projectTree put:(holder := SelectionInTree new).
|
|
809 |
holder root:self projectTree.
|
|
810 |
].
|
|
811 |
^ holder.
|
|
812 |
!
|
|
813 |
|
|
814 |
rightCanvasTextHolder
|
|
815 |
"automatically generated by UIPainter ..."
|
|
816 |
|
|
817 |
"*** the code below creates a default model when invoked."
|
|
818 |
"*** (which may not be the one you wanted)"
|
|
819 |
"*** Please change as required and accept in the browser."
|
|
820 |
|
|
821 |
|holder|
|
|
822 |
|
|
823 |
(holder := builder bindingAt:#rightCanvasTextHolder) isNil ifTrue:[
|
|
824 |
builder aspectAt:#rightCanvasTextHolder put:(holder := ValueHolder new).
|
|
825 |
].
|
|
826 |
^ holder.
|
|
827 |
!
|
|
828 |
|
|
829 |
selectedTreeNode
|
|
830 |
"automatically generated by UIPainter ..."
|
|
831 |
|
|
832 |
"*** the code below creates a default model when invoked."
|
|
833 |
"*** (which may not be the one you wanted)"
|
|
834 |
"*** Please change as required and accept in the browser."
|
|
835 |
|
|
836 |
|holder|
|
|
837 |
|
|
838 |
(holder := builder bindingAt:#selectedTreeNode) isNil ifTrue:[
|
|
839 |
builder aspectAt:#selectedTreeNode put:(holder := ValueHolder new).
|
|
840 |
].
|
|
841 |
^ holder.
|
|
842 |
! !
|
|
843 |
|
|
844 |
!ProjectBrowser methodsFor:'initialization'!
|
|
845 |
|
|
846 |
postBuildWith:aBuiler
|
1026
|
847 |
self setupCanvasForNoSelection.
|
|
848 |
^ super postBuildWith:aBuiler
|
1025
|
849 |
!
|
|
850 |
|
|
851 |
setupCanvasForNoSelection
|
1026
|
852 |
self showReadOnlyText:'Please select an existing,
|
1025
|
853 |
or create a new project.'.
|
|
854 |
! !
|
|
855 |
|
1026
|
856 |
!ProjectBrowser methodsFor:'menus'!
|
|
857 |
|
|
858 |
itemMenu
|
1052
|
859 |
|m|
|
|
860 |
|
1026
|
861 |
self hasProjectNodeSelected ifTrue:[
|
|
862 |
^ self class projectItemMenu
|
|
863 |
].
|
1037
|
864 |
self hasSubProjectsNodeSelected ifTrue:[
|
|
865 |
^ self class subProjectsItemMenu
|
|
866 |
].
|
1052
|
867 |
self hasClassesNodeSelected ifTrue:[
|
|
868 |
^ self class classesItemMenu
|
|
869 |
].
|
1026
|
870 |
|
|
871 |
^ nil
|
|
872 |
!
|
|
873 |
|
|
874 |
itemMenuHolder
|
|
875 |
^ [ self itemMenu]
|
1037
|
876 |
!
|
|
877 |
|
|
878 |
itemMenuPerformer
|
|
879 |
^ self
|
1026
|
880 |
! !
|
|
881 |
|
1025
|
882 |
!ProjectBrowser methodsFor:'private'!
|
|
883 |
|
1052
|
884 |
hasClassesNodeSelected
|
|
885 |
|selectedNode|
|
|
886 |
|
|
887 |
selectedNode := self selectedTreeNode value.
|
|
888 |
selectedNode isNil ifTrue:[^ false].
|
|
889 |
|
|
890 |
^ selectedNode contents == #classes
|
|
891 |
|
|
892 |
!
|
|
893 |
|
1026
|
894 |
hasProjectNodeSelected
|
|
895 |
|selectedNode|
|
|
896 |
|
|
897 |
selectedNode := self selectedTreeNode value.
|
|
898 |
selectedNode isNil ifTrue:[^ false].
|
|
899 |
|
|
900 |
^ selectedNode isProjectNode
|
|
901 |
|
|
902 |
!
|
|
903 |
|
1037
|
904 |
hasSubProjectsNodeSelected
|
|
905 |
|selectedNode|
|
|
906 |
|
|
907 |
selectedNode := self selectedTreeNode value.
|
|
908 |
selectedNode isNil ifTrue:[^ false].
|
|
909 |
|
|
910 |
^ selectedNode contents == #subprojects
|
|
911 |
|
|
912 |
!
|
|
913 |
|
1025
|
914 |
nodeFor:aProject
|
1026
|
915 |
"generate and return a treeNode for some project"
|
|
916 |
|
1025
|
917 |
|projectName pNode
|
1043
|
918 |
propertiesNode docNode classesNode patchesNode subprojectsNode filesNode
|
|
919 |
commentNode prerequisitesNode analysisNode designNode codeNode
|
|
920 |
userDocNode userOverViewNode userGuideNode userRefManNode|
|
1025
|
921 |
|
|
922 |
projectName := aProject name.
|
1026
|
923 |
pNode := ProjectNode name:projectName.
|
1025
|
924 |
pNode contents:aProject.
|
|
925 |
|
|
926 |
pNode add:(commentNode := ProjectTreeItem name:'Comment').
|
|
927 |
pNode add:(docNode := ProjectTreeItem name:'Documentation').
|
|
928 |
pNode add:(propertiesNode := ProjectTreeItem name:'Properties').
|
1026
|
929 |
pNode add:(prerequisitesNode := ProjectTreeItem name:'Prerequisites').
|
1025
|
930 |
pNode add:(subprojectsNode := ProjectTreeItem name:'SubProjects').
|
1043
|
931 |
pNode add:(classesNode := ProjectTreeItem name:'Classes').
|
|
932 |
pNode add:(patchesNode := ProjectTreeItem name:'Patches').
|
1025
|
933 |
pNode add:(filesNode := ProjectTreeItem name:'Files').
|
|
934 |
|
|
935 |
aProject subProjects do:[:aSubProject |
|
|
936 |
subprojectsNode add:(self nodeFor:aSubProject)
|
|
937 |
].
|
|
938 |
|
|
939 |
commentNode action:[:item | self showCommentOf:item].
|
1026
|
940 |
commentNode contents:#comment.
|
|
941 |
|
|
942 |
docNode contents:#documentation.
|
1037
|
943 |
docNode action:[:item | self showDocumentationFor:item].
|
|
944 |
|
1043
|
945 |
docNode add:(analysisNode := ProjectTreeItem name:'Analysis').
|
|
946 |
docNode add:(designNode := ProjectTreeItem name:'Design').
|
|
947 |
docNode add:(codeNode := ProjectTreeItem name:'Code').
|
|
948 |
docNode add:(userDocNode := ProjectTreeItem name:'User Documentation').
|
|
949 |
userDocNode add:(userOverViewNode := ProjectTreeItem name:'Overview').
|
|
950 |
userDocNode add:(userGuideNode := ProjectTreeItem name:'Guide').
|
|
951 |
userDocNode add:(userRefManNode := ProjectTreeItem name:'Reference').
|
|
952 |
docNode add:(userDocNode := ProjectTreeItem name:'Error Reports').
|
|
953 |
docNode add:(userDocNode := ProjectTreeItem name:'Other').
|
|
954 |
|
|
955 |
prerequisitesNode contents:#prerequisites.
|
|
956 |
|
1037
|
957 |
classesNode contents:#classes.
|
1043
|
958 |
((aProject classes ? #()) copy sort:[:a :b | a name < b name])
|
|
959 |
do:[:aClass |
|
|
960 |
|cNode|
|
|
961 |
|
|
962 |
cNode := ProjectTreeItem name:aClass name.
|
|
963 |
classesNode add:cNode.
|
|
964 |
].
|
1026
|
965 |
|
|
966 |
propertiesNode contents:#properties.
|
|
967 |
|
|
968 |
subprojectsNode contents:#subprojects.
|
|
969 |
|
|
970 |
filesNode contents:#files.
|
1025
|
971 |
|
1043
|
972 |
patchesNode contents:#patches.
|
|
973 |
|
1025
|
974 |
^ pNode
|
1026
|
975 |
|
1025
|
976 |
!
|
|
977 |
|
|
978 |
projectTree
|
|
979 |
|tree root|
|
|
980 |
|
1026
|
981 |
projectTree isNil ifTrue:[
|
|
982 |
tree := SelectionInTree new.
|
|
983 |
tree root:(root := TreeItem name:'invisibleRoot').
|
1025
|
984 |
|
1026
|
985 |
Project knownProjects do:[:aProject |
|
|
986 |
root add:(self nodeFor:aProject).
|
|
987 |
].
|
|
988 |
projectTree := root.
|
1025
|
989 |
].
|
|
990 |
|
1026
|
991 |
^ projectTree
|
1025
|
992 |
!
|
|
993 |
|
|
994 |
updateRightCanvas
|
|
995 |
|selectedNode nodeContents|
|
|
996 |
|
|
997 |
selectedNode := self selectedTreeNode value.
|
|
998 |
selectedNode isNil ifTrue:[
|
|
999 |
self setupCanvasForNoSelection.
|
|
1000 |
^ self
|
|
1001 |
].
|
1026
|
1002 |
|
|
1003 |
selectedNode isProjectNode ifTrue:[
|
|
1004 |
self showCommentOf:selectedNode.
|
1025
|
1005 |
^ self.
|
|
1006 |
].
|
|
1007 |
|
1037
|
1008 |
selectedNode contents == #classes ifTrue:[
|
|
1009 |
self showClassListOf:selectedNode.
|
|
1010 |
^ self.
|
|
1011 |
].
|
1043
|
1012 |
selectedNode contents == #patches ifTrue:[
|
|
1013 |
self showPatchesListOf:selectedNode.
|
|
1014 |
^ self.
|
|
1015 |
].
|
|
1016 |
|
1037
|
1017 |
|
1025
|
1018 |
self currentCanvasHolder value:(self class emptyRightCanvasSpec).
|
|
1019 |
self rightCanvasTextHolder value:''.
|
|
1020 |
|
|
1021 |
! !
|
|
1022 |
|
1037
|
1023 |
!ProjectBrowser methodsFor:'private - table col access'!
|
|
1024 |
|
1038
|
1025 |
classFilenameFromClassInfo:cInfo
|
|
1026 |
^ cInfo classFileName
|
|
1027 |
!
|
|
1028 |
|
|
1029 |
classIncludeConditionFromClassInfo:cInfo
|
|
1030 |
^ cInfo conditionForInclusion
|
|
1031 |
!
|
|
1032 |
|
1037
|
1033 |
classNameFromClassInfo:cInfo
|
1038
|
1034 |
^ cInfo className
|
1043
|
1035 |
!
|
|
1036 |
|
|
1037 |
classNameFromPatchesInfo:pInfo
|
|
1038 |
^ pInfo methodClass name
|
|
1039 |
!
|
|
1040 |
|
|
1041 |
selectorFromPatchesInfo:pInfo
|
|
1042 |
^ pInfo methodSelector
|
1037
|
1043 |
! !
|
|
1044 |
|
1025
|
1045 |
!ProjectBrowser methodsFor:'user actions'!
|
|
1046 |
|
|
1047 |
itemSelected:index
|
|
1048 |
|item action|
|
|
1049 |
|
|
1050 |
self updateRightCanvas.
|
|
1051 |
|
|
1052 |
item := self projectTreeHolder value at:index.
|
|
1053 |
action := item action.
|
|
1054 |
action notNil ifTrue:[
|
|
1055 |
action value:item.
|
|
1056 |
].
|
|
1057 |
!
|
|
1058 |
|
1026
|
1059 |
newProject
|
1037
|
1060 |
self newProject:Project new.
|
|
1061 |
|
|
1062 |
!
|
1026
|
1063 |
|
1037
|
1064 |
newProject:newProject
|
|
1065 |
|newNode|
|
|
1066 |
|
1026
|
1067 |
newNode := self nodeFor:newProject.
|
|
1068 |
projectTree add:newNode.
|
|
1069 |
self projectTreeHolder root:projectTree.
|
|
1070 |
|
|
1071 |
!
|
|
1072 |
|
|
1073 |
newSubProject
|
1037
|
1074 |
|selectedNode subProjectsNode newNode parentProject newProject|
|
|
1075 |
|
|
1076 |
selectedNode := self selectedTreeNode value.
|
1026
|
1077 |
|
|
1078 |
self hasProjectNodeSelected ifTrue:[
|
|
1079 |
parentProject := selectedNode contents.
|
1037
|
1080 |
subProjectsNode := selectedNode children detect:[:child | child contents == #subprojects].
|
|
1081 |
] ifFalse:[
|
|
1082 |
self hasSubProjectsNodeSelected ifTrue:[
|
|
1083 |
subProjectsNode := selectedNode.
|
|
1084 |
parentProject := selectedNode parent contents.
|
|
1085 |
].
|
|
1086 |
].
|
|
1087 |
self halt.
|
|
1088 |
parentProject notNil ifTrue:[
|
1026
|
1089 |
newProject := Project new.
|
|
1090 |
newNode := self nodeFor:newProject.
|
|
1091 |
|
|
1092 |
parentProject addSubProject:newProject.
|
1037
|
1093 |
subProjectsNode add:newNode.
|
1026
|
1094 |
self projectTreeHolder root:projectTree.
|
1037
|
1095 |
self projectTreeHolder selectNode:newNode.
|
|
1096 |
]
|
|
1097 |
!
|
|
1098 |
|
|
1099 |
openProject
|
|
1100 |
|fn newProject|
|
|
1101 |
|
|
1102 |
fn := Dialog
|
|
1103 |
requestFileName:'filename:'
|
|
1104 |
default:nil
|
|
1105 |
ifFail:nil
|
|
1106 |
pattern:'*.prj'
|
|
1107 |
fromDirectory:(FileSelectionBox lastFileSelectionDirectory).
|
|
1108 |
|
|
1109 |
fn notNil ifTrue:[
|
|
1110 |
newProject := Project new loadFromProjectFile:fn.
|
|
1111 |
newProject notNil ifTrue:[
|
|
1112 |
self newProject:newProject
|
|
1113 |
]
|
1026
|
1114 |
]
|
|
1115 |
!
|
|
1116 |
|
1037
|
1117 |
removeProject
|
|
1118 |
|projectToRemove selectedNode subNode newNode parentNode parentProject newProject|
|
1025
|
1119 |
|
1026
|
1120 |
self hasProjectNodeSelected ifTrue:[
|
|
1121 |
selectedNode := self selectedTreeNode value.
|
|
1122 |
projectToRemove := selectedNode contents.
|
|
1123 |
|
1037
|
1124 |
"/ parentNode := selectedNode parent.
|
|
1125 |
"/ parentNode contents == #subprojects ifTrue:[
|
|
1126 |
"/ parentNode removeChild:selectedNode.
|
|
1127 |
"/ ] ifFalse:[
|
|
1128 |
"/ parentNode removeChild:selectedNode.
|
|
1129 |
"/ ].
|
|
1130 |
self projectTreeHolder removeSelection
|
|
1131 |
|
|
1132 |
"/ self projectTreeHolder root:projectTree.
|
|
1133 |
|
|
1134 |
"/ parentProject addSubProject:newProject.
|
|
1135 |
"/ subNode := selectedNode children detect:[:child | child contents == #subprojects].
|
|
1136 |
"/ subNode add:newNode.
|
|
1137 |
"/ self projectTreeHolder root:projectTree.
|
|
1138 |
]
|
|
1139 |
!
|
|
1140 |
|
|
1141 |
renameProject
|
|
1142 |
|nm selectedNode selectedProject|
|
|
1143 |
|
|
1144 |
self hasProjectNodeSelected ifTrue:[
|
|
1145 |
selectedNode := self selectedTreeNode value.
|
|
1146 |
selectedProject := selectedNode contents.
|
1026
|
1147 |
|
1037
|
1148 |
nm := Dialog
|
|
1149 |
request:'Rename to:'
|
|
1150 |
initialAnswer:selectedProject name.
|
|
1151 |
|
|
1152 |
nm size > 0 ifTrue:[
|
|
1153 |
selectedProject name:nm.
|
|
1154 |
selectedNode name:nm.
|
|
1155 |
selectedNode changed.
|
|
1156 |
]
|
1026
|
1157 |
]
|
|
1158 |
!
|
|
1159 |
|
1037
|
1160 |
showClassListOf:anItem
|
|
1161 |
|projectItem project classInfo l|
|
|
1162 |
|
|
1163 |
projectItem := anItem parent.
|
|
1164 |
project := projectItem contents.
|
|
1165 |
|
1038
|
1166 |
classInfo := project classInfo asOrderedCollection.
|
|
1167 |
classInfo sort:[:a :b | a className < b className].
|
|
1168 |
|
1037
|
1169 |
l := self classList.
|
|
1170 |
l removeAll.
|
|
1171 |
l addAll:classInfo.
|
|
1172 |
|
|
1173 |
self currentCanvasHolder value:(self class rightCanvasSpecForClassList).
|
|
1174 |
!
|
|
1175 |
|
1026
|
1176 |
showCommentOf:anItem
|
|
1177 |
|projectItem project|
|
1025
|
1178 |
|
1026
|
1179 |
anItem contents == #comment ifTrue:[
|
|
1180 |
projectItem := anItem parent
|
|
1181 |
] ifFalse:[
|
|
1182 |
projectItem := anItem
|
|
1183 |
].
|
|
1184 |
project := projectItem contents.
|
|
1185 |
|
|
1186 |
self currentCanvasHolder value:(self class rightCanvasSpecForEditableText).
|
1025
|
1187 |
self rightCanvasTextHolder value:project comment.
|
|
1188 |
|
|
1189 |
!
|
|
1190 |
|
1037
|
1191 |
showDocumentationFor:anItem
|
|
1192 |
|projectItem project|
|
|
1193 |
|
|
1194 |
anItem contents == #documentation ifTrue:[
|
|
1195 |
projectItem := anItem parent
|
|
1196 |
] ifFalse:[
|
|
1197 |
projectItem := anItem
|
|
1198 |
].
|
|
1199 |
project := projectItem contents.
|
|
1200 |
|
|
1201 |
self currentCanvasHolder value:(self class rightCanvasSpecForHTMLText).
|
|
1202 |
self htmlDocumentURLHolder value:project documentationURL.
|
|
1203 |
!
|
|
1204 |
|
1043
|
1205 |
showPatchesListOf:anItem
|
|
1206 |
|projectItem project patches l|
|
|
1207 |
|
|
1208 |
projectItem := anItem parent.
|
|
1209 |
project := projectItem contents.
|
|
1210 |
|
|
1211 |
patches := project individualMethods.
|
|
1212 |
patches := patches collect:[:m | m who].
|
|
1213 |
patches := patches sort:[:w1 :w2 |
|
|
1214 |
w1 methodClass name < w2 methodClass name ifTrue:[
|
|
1215 |
true
|
|
1216 |
] ifFalse:[
|
|
1217 |
w1 methodClass name = w2 methodClass name ifFalse:[
|
|
1218 |
false
|
|
1219 |
] ifTrue:[
|
|
1220 |
w1 methodSelector < w2 methodSelector
|
|
1221 |
]
|
|
1222 |
]
|
|
1223 |
].
|
|
1224 |
|
|
1225 |
l := self patchesList.
|
|
1226 |
l removeAll.
|
|
1227 |
l addAll:patches.
|
|
1228 |
|
|
1229 |
self currentCanvasHolder value:(self class rightCanvasSpecForPatchesList).
|
|
1230 |
!
|
|
1231 |
|
1026
|
1232 |
showReadOnlyText:someText
|
|
1233 |
self currentCanvasHolder value:(self class rightCanvasSpecForReadOnlyText).
|
|
1234 |
self rightCanvasTextHolder value:someText.
|
|
1235 |
|
|
1236 |
!
|
|
1237 |
|
1025
|
1238 |
showTreeItem:anItem
|
|
1239 |
anItem contents == #comment ifTrue:[
|
|
1240 |
self showCommentOf:anItem.
|
|
1241 |
^ self
|
|
1242 |
].
|
|
1243 |
! !
|
|
1244 |
|
|
1245 |
!ProjectBrowser::ProjectTreeItem methodsFor:'accessing'!
|
|
1246 |
|
|
1247 |
action
|
|
1248 |
"return the value of the instance variable 'action' (automatically generated)"
|
|
1249 |
|
|
1250 |
^ action!
|
|
1251 |
|
|
1252 |
action:something
|
|
1253 |
"set the value of the instance variable 'action' (automatically generated)"
|
|
1254 |
|
|
1255 |
action := something.! !
|
|
1256 |
|
1026
|
1257 |
!ProjectBrowser::ProjectTreeItem methodsFor:'queries'!
|
|
1258 |
|
|
1259 |
isProjectNode
|
|
1260 |
^ false
|
|
1261 |
! !
|
|
1262 |
|
|
1263 |
!ProjectBrowser::ProjectNode methodsFor:'queries'!
|
|
1264 |
|
|
1265 |
isProjectNode
|
|
1266 |
^ true
|
|
1267 |
|
|
1268 |
|
|
1269 |
! !
|
|
1270 |
|
1025
|
1271 |
!ProjectBrowser class methodsFor:'documentation'!
|
|
1272 |
|
|
1273 |
version
|
|
1274 |
^ '$Header$'
|
|
1275 |
! !
|