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 |
|
1026
|
206 |
rightCanvasSpecForReadOnlyText
|
|
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:#emptyRightCanvasSpec
|
|
215 |
ProjectBrowser new openInterface:#emptyRightCanvasSpec
|
|
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 |
#label: 'NewApplication'
|
|
228 |
#min: #(#Point 10 10)
|
|
229 |
#max: #(#Point 1280 1024)
|
|
230 |
#bounds: #(#Rectangle 216 173 516 473)
|
|
231 |
#usePreferredExtent: false
|
|
232 |
)
|
|
233 |
#component:
|
|
234 |
#(#SpecCollection
|
|
235 |
#collection:
|
|
236 |
#(
|
|
237 |
#(#TextEditorSpec
|
|
238 |
#name: 'TextEditor1'
|
|
239 |
#layout: #(#LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
|
|
240 |
#model: #rightCanvasTextHolder
|
|
241 |
#hasHorizontalScrollBar: true
|
|
242 |
#hasVerticalScrollBar: true
|
|
243 |
#miniScrollerHorizontal: true
|
|
244 |
#isReadOnly: true
|
|
245 |
)
|
|
246 |
)
|
|
247 |
)
|
|
248 |
)
|
|
249 |
!
|
|
250 |
|
1025
|
251 |
windowSpec
|
|
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:#windowSpec
|
|
260 |
ProjectBrowser new openInterface:#windowSpec
|
|
261 |
ProjectBrowser open
|
|
262 |
"
|
|
263 |
|
|
264 |
<resource: #canvas>
|
|
265 |
|
|
266 |
^
|
|
267 |
|
|
268 |
#(#FullSpec
|
|
269 |
#window:
|
|
270 |
#(#WindowSpec
|
|
271 |
#name: 'ProjectBrowser'
|
1026
|
272 |
#layout: #(#LayoutFrame 216 0 173 0 779 0 495 0)
|
1037
|
273 |
#level: 0
|
1025
|
274 |
#label: 'ProjectBrowser'
|
|
275 |
#min: #(#Point 10 10)
|
|
276 |
#max: #(#Point 1024 768)
|
1026
|
277 |
#bounds: #(#Rectangle 216 173 780 496)
|
1025
|
278 |
#menu: #mainMenu
|
|
279 |
#usePreferredExtent: false
|
|
280 |
)
|
|
281 |
#component:
|
|
282 |
#(#SpecCollection
|
|
283 |
#collection:
|
|
284 |
#(
|
|
285 |
#(#MenuPanelSpec
|
|
286 |
#name: 'ToolBar1'
|
|
287 |
#layout: #(#LayoutFrame 0 0.0 0 0 0 1.0 32 0)
|
|
288 |
#menu: #menu
|
|
289 |
#textDefault: true
|
|
290 |
)
|
|
291 |
#(#VariableHorizontalPanelSpec
|
|
292 |
#name: 'VariableHorizontalPanel1'
|
1037
|
293 |
#layout: #(#LayoutFrame 0 0.0 40 0.0 0 1.0 -24 1.0)
|
1025
|
294 |
#component:
|
|
295 |
#(#SpecCollection
|
|
296 |
#collection:
|
|
297 |
#(
|
|
298 |
#(#SelectionInTreeViewSpec
|
|
299 |
#name: 'TreeList1'
|
|
300 |
#model: #selectedTreeNode
|
1026
|
301 |
#menu: #itemMenuHolder
|
1037
|
302 |
#performer: #itemMenuPerformer
|
1025
|
303 |
#hasHorizontalScrollBar: true
|
|
304 |
#hasVerticalScrollBar: true
|
|
305 |
#miniScrollerHorizontal: true
|
|
306 |
#showRoot: false
|
|
307 |
#showDirectoryIndicatorForRoot: false
|
|
308 |
#showDirectoryIndicator: true
|
|
309 |
#valueChangeSelector: #itemSelected:
|
|
310 |
#hierarchicalList: #projectTreeHolder
|
|
311 |
#highlightMode: #label
|
|
312 |
)
|
|
313 |
#(#SubCanvasSpec
|
|
314 |
#name: 'SubCanvas1'
|
|
315 |
#hasHorizontalScrollBar: false
|
|
316 |
#hasVerticalScrollBar: false
|
|
317 |
#specHolder: #currentCanvasHolder
|
|
318 |
)
|
|
319 |
)
|
|
320 |
)
|
1026
|
321 |
#handles: #(#Any 0.379433 1.0)
|
1025
|
322 |
)
|
1037
|
323 |
#(#UISubSpecification
|
|
324 |
#name: 'infoBarSubSpec'
|
|
325 |
#layout: #(#LayoutFrame 0 0.0 -24 1 0 1.0 0 1.0)
|
|
326 |
#majorKey: #ToolApplicationModel
|
|
327 |
#minorKey: #windowSpecForInfoBar
|
|
328 |
)
|
1025
|
329 |
)
|
|
330 |
)
|
|
331 |
)
|
|
332 |
! !
|
|
333 |
|
|
334 |
!ProjectBrowser class methodsFor:'menu specs'!
|
|
335 |
|
|
336 |
mainMenu
|
|
337 |
"This resource specification was automatically generated
|
|
338 |
by the MenuEditor of ST/X."
|
|
339 |
|
|
340 |
"Do not manually edit this!! If it is corrupted,
|
|
341 |
the MenuEditor may not be able to read the specification."
|
|
342 |
|
|
343 |
"
|
|
344 |
MenuEditor new openOnClass:ProjectBrowser andSelector:#mainMenu
|
|
345 |
(Menu new fromLiteralArrayEncoding:(ProjectBrowser mainMenu)) startUp
|
|
346 |
"
|
|
347 |
|
|
348 |
<resource: #menu>
|
|
349 |
|
|
350 |
^
|
|
351 |
|
|
352 |
#(#Menu
|
|
353 |
|
|
354 |
#(
|
|
355 |
#(#MenuItem
|
|
356 |
#label: 'File'
|
|
357 |
#translateLabel: true
|
|
358 |
#submenu:
|
|
359 |
#(#Menu
|
|
360 |
|
|
361 |
#(
|
|
362 |
#(#MenuItem
|
|
363 |
#label: 'New'
|
|
364 |
#translateLabel: true
|
|
365 |
#value: #newProject
|
|
366 |
)
|
|
367 |
#(#MenuItem
|
|
368 |
#label: '-'
|
|
369 |
)
|
|
370 |
#(#MenuItem
|
|
371 |
#label: 'Open...'
|
|
372 |
#translateLabel: true
|
|
373 |
#value: #openProject
|
|
374 |
)
|
|
375 |
#(#MenuItem
|
|
376 |
#label: '-'
|
|
377 |
)
|
|
378 |
#(#MenuItem
|
|
379 |
#label: 'Save'
|
|
380 |
#translateLabel: true
|
|
381 |
#value: #saveProject
|
1026
|
382 |
#enabled: #hasProjectSelectedHolder
|
1025
|
383 |
)
|
|
384 |
#(#MenuItem
|
|
385 |
#label: 'Save As...'
|
|
386 |
#translateLabel: true
|
|
387 |
#value: #saveProjectAs
|
1026
|
388 |
#enabled: #hasProjectSelectedHolder
|
1025
|
389 |
)
|
|
390 |
#(#MenuItem
|
|
391 |
#label: '-'
|
|
392 |
)
|
|
393 |
#(#MenuItem
|
|
394 |
#label: 'Exit'
|
|
395 |
#translateLabel: true
|
|
396 |
#value: #closeRequest
|
|
397 |
)
|
|
398 |
) nil
|
|
399 |
nil
|
|
400 |
)
|
|
401 |
)
|
|
402 |
#(#MenuItem
|
1026
|
403 |
#label: 'Project'
|
|
404 |
#translateLabel: true
|
|
405 |
#submenuChannel: #projectItemMenu
|
|
406 |
)
|
|
407 |
#(#MenuItem
|
1025
|
408 |
#label: 'Help'
|
|
409 |
#translateLabel: true
|
|
410 |
#startGroup: #right
|
|
411 |
#submenu:
|
|
412 |
#(#Menu
|
|
413 |
|
|
414 |
#(
|
|
415 |
#(#MenuItem
|
|
416 |
#label: 'Documentation'
|
|
417 |
#translateLabel: true
|
|
418 |
#value: #openDocumentation
|
|
419 |
)
|
|
420 |
#(#MenuItem
|
|
421 |
#label: '-'
|
|
422 |
)
|
|
423 |
#(#MenuItem
|
|
424 |
#label: 'About this Application'
|
|
425 |
#translateLabel: true
|
|
426 |
#value: #openAboutThisApplication
|
|
427 |
)
|
|
428 |
) nil
|
|
429 |
nil
|
|
430 |
)
|
|
431 |
)
|
|
432 |
) nil
|
|
433 |
nil
|
|
434 |
)
|
|
435 |
!
|
|
436 |
|
|
437 |
menu
|
|
438 |
"This resource specification was automatically generated
|
|
439 |
by the MenuEditor of ST/X."
|
|
440 |
|
|
441 |
"Do not manually edit this!! If it is corrupted,
|
|
442 |
the MenuEditor may not be able to read the specification."
|
|
443 |
|
|
444 |
"
|
|
445 |
MenuEditor new openOnClass:ProjectBrowser andSelector:#menu
|
|
446 |
(Menu new fromLiteralArrayEncoding:(ProjectBrowser menu)) startUp
|
|
447 |
"
|
|
448 |
|
|
449 |
<resource: #menu>
|
|
450 |
|
|
451 |
^
|
|
452 |
|
|
453 |
#(#Menu
|
|
454 |
|
|
455 |
#(
|
|
456 |
#(#MenuItem
|
|
457 |
#label: 'New...'
|
|
458 |
#translateLabel: true
|
|
459 |
#isButton: true
|
|
460 |
#value: #newProject
|
|
461 |
#labelImage: #(#ResourceRetriever #Icon #newIcon)
|
|
462 |
)
|
|
463 |
#(#MenuItem
|
|
464 |
#label: 'Open...'
|
|
465 |
#translateLabel: true
|
|
466 |
#isButton: true
|
|
467 |
#value: #openProject
|
|
468 |
#labelImage: #(#ResourceRetriever #Icon #loadIcon)
|
|
469 |
)
|
|
470 |
#(#MenuItem
|
|
471 |
#label: 'SaveAs...'
|
|
472 |
#translateLabel: true
|
|
473 |
#isButton: true
|
|
474 |
#value: #saveProject
|
|
475 |
#labelImage: #(#ResourceRetriever #Icon #saveIcon)
|
|
476 |
)
|
|
477 |
) nil
|
|
478 |
nil
|
|
479 |
)
|
1026
|
480 |
!
|
|
481 |
|
|
482 |
projectItemMenu
|
|
483 |
"This resource specification was automatically generated
|
|
484 |
by the MenuEditor of ST/X."
|
|
485 |
|
|
486 |
"Do not manually edit this!! If it is corrupted,
|
|
487 |
the MenuEditor may not be able to read the specification."
|
|
488 |
|
|
489 |
"
|
|
490 |
MenuEditor new openOnClass:ProjectBrowser andSelector:#projectItemMenu
|
|
491 |
(Menu new fromLiteralArrayEncoding:(ProjectBrowser projectItemMenu)) startUp
|
|
492 |
"
|
|
493 |
|
|
494 |
<resource: #menu>
|
|
495 |
|
|
496 |
^
|
|
497 |
|
|
498 |
#(#Menu
|
|
499 |
|
|
500 |
#(
|
|
501 |
#(#MenuItem
|
|
502 |
#label: 'Rename...'
|
|
503 |
#translateLabel: true
|
|
504 |
#value: #renameProject
|
|
505 |
#enabled: #hasProjectSelectedHolder
|
|
506 |
)
|
|
507 |
#(#MenuItem
|
|
508 |
#label: '-'
|
|
509 |
)
|
|
510 |
#(#MenuItem
|
|
511 |
#label: 'New SubProject'
|
|
512 |
#translateLabel: true
|
|
513 |
#value: #newSubProject
|
|
514 |
#enabled: #hasProjectSelectedHolder
|
|
515 |
)
|
|
516 |
#(#MenuItem
|
|
517 |
#label: '-'
|
|
518 |
)
|
|
519 |
#(#MenuItem
|
|
520 |
#label: 'Remove...'
|
|
521 |
#translateLabel: true
|
|
522 |
#value: #removeProject
|
|
523 |
#enabled: #hasProjectSelectedHolder
|
|
524 |
)
|
|
525 |
) nil
|
|
526 |
nil
|
|
527 |
)
|
1037
|
528 |
!
|
|
529 |
|
|
530 |
subProjectsItemMenu
|
|
531 |
"This resource specification was automatically generated
|
|
532 |
by the MenuEditor of ST/X."
|
|
533 |
|
|
534 |
"Do not manually edit this!! If it is corrupted,
|
|
535 |
the MenuEditor may not be able to read the specification."
|
|
536 |
|
|
537 |
"
|
|
538 |
MenuEditor new openOnClass:ProjectBrowser andSelector:#subProjectsItemMenu
|
|
539 |
(Menu new fromLiteralArrayEncoding:(ProjectBrowser subProjectsItemMenu)) startUp
|
|
540 |
"
|
|
541 |
|
|
542 |
<resource: #menu>
|
|
543 |
|
|
544 |
^
|
|
545 |
|
|
546 |
#(#Menu
|
|
547 |
|
|
548 |
#(
|
|
549 |
#(#MenuItem
|
|
550 |
#label: 'New SubProject'
|
|
551 |
#translateLabel: true
|
|
552 |
#value: #newSubProject
|
|
553 |
#enabled: #hasSubProjectsSelectedHolder
|
|
554 |
)
|
|
555 |
) nil
|
|
556 |
nil
|
|
557 |
)
|
|
558 |
! !
|
|
559 |
|
|
560 |
!ProjectBrowser class methodsFor:'tableColumns specs'!
|
|
561 |
|
|
562 |
classTableColumns
|
|
563 |
"This resource specification was automatically generated
|
|
564 |
by the DataSetBuilder of ST/X."
|
|
565 |
|
|
566 |
"Do not manually edit this!! If it is corrupted,
|
|
567 |
the DataSetBuilder may not be able to read the specification."
|
|
568 |
|
|
569 |
"
|
|
570 |
DataSetBuilder new openOnClass:ProjectBrowser andSelector:#classTableColumns
|
|
571 |
"
|
|
572 |
|
|
573 |
<resource: #tableColumns>
|
|
574 |
|
|
575 |
|
|
576 |
^ #(
|
|
577 |
#(#DataSetColumnSpec
|
|
578 |
#label: 'Class'
|
|
579 |
#id: 'classColumn'
|
|
580 |
#labelAlignment: #left
|
|
581 |
#model: #classNameFromClassInfo:
|
|
582 |
)
|
|
583 |
#(#DataSetColumnSpec
|
|
584 |
#label: 'Included'
|
|
585 |
#id: 'inclusion'
|
|
586 |
#columnAlignment: #center
|
|
587 |
#width: 100
|
|
588 |
#editorType: #ComboList
|
|
589 |
#model: #classIncludeConditionFromClassInfo:
|
|
590 |
)
|
|
591 |
#(#DataSetColumnSpec
|
|
592 |
#label: 'Filename'
|
|
593 |
#labelAlignment: #left
|
|
594 |
#minWidth: 200
|
|
595 |
#model: #classFilenameFromClassInfo:
|
|
596 |
)
|
|
597 |
)
|
1025
|
598 |
! !
|
|
599 |
|
|
600 |
!ProjectBrowser methodsFor:'aspects'!
|
|
601 |
|
1037
|
602 |
classList
|
|
603 |
"automatically generated by UIPainter ..."
|
|
604 |
|
|
605 |
"*** the code below creates a default model when invoked."
|
|
606 |
"*** (which may not be the one you wanted)"
|
|
607 |
"*** Please change as required and accept in the browser."
|
|
608 |
|
|
609 |
|holder|
|
|
610 |
|
|
611 |
(holder := builder bindingAt:#classList) isNil ifTrue:[
|
|
612 |
builder aspectAt:#classList put:(holder := List new).
|
|
613 |
].
|
|
614 |
^ holder.
|
|
615 |
!
|
|
616 |
|
|
617 |
classTableAdaptor
|
|
618 |
^ self
|
|
619 |
!
|
|
620 |
|
|
621 |
classTableColumns
|
|
622 |
"automatically generated by UIPainter ..."
|
|
623 |
|
|
624 |
"*** the code below creates a default model when invoked."
|
|
625 |
"*** (which may not be the one you wanted)"
|
|
626 |
"*** Please change as required and accept in the browser."
|
|
627 |
|
|
628 |
|holder|
|
|
629 |
|
|
630 |
(holder := builder bindingAt:#classTableColumns) isNil ifTrue:[
|
|
631 |
builder aspectAt:#classTableColumns put:(holder := ValueHolder new).
|
|
632 |
].
|
|
633 |
^ holder.
|
|
634 |
!
|
|
635 |
|
1025
|
636 |
currentCanvasHolder
|
|
637 |
"automatically generated by UIPainter ..."
|
|
638 |
|
|
639 |
"*** the code below creates a default model when invoked."
|
|
640 |
"*** (which may not be the one you wanted)"
|
|
641 |
"*** Please change as required and accept in the browser."
|
|
642 |
|
|
643 |
|holder|
|
|
644 |
|
|
645 |
(holder := builder bindingAt:#currentCanvasHolder) isNil ifTrue:[
|
|
646 |
builder aspectAt:#currentCanvasHolder put:(holder := ValueHolder new).
|
|
647 |
].
|
|
648 |
^ holder.
|
|
649 |
!
|
|
650 |
|
1026
|
651 |
hasProjectSelectedHolder
|
|
652 |
^ [
|
|
653 |
self hasProjectNodeSelected
|
|
654 |
]
|
|
655 |
!
|
|
656 |
|
1037
|
657 |
hasSubProjectsSelectedHolder
|
|
658 |
^ [
|
|
659 |
self hasSubProjectsNodeSelected
|
|
660 |
]
|
|
661 |
!
|
|
662 |
|
|
663 |
htmlDocumentURLHolder
|
|
664 |
"automatically generated by UIPainter ..."
|
|
665 |
|
|
666 |
"*** the code below creates a default model when invoked."
|
|
667 |
"*** (which may not be the one you wanted)"
|
|
668 |
"*** Please change as required and accept in the browser."
|
|
669 |
|
|
670 |
|holder|
|
|
671 |
|
|
672 |
(holder := builder bindingAt:#htmlDocumentURLHolder) isNil ifTrue:[
|
|
673 |
builder aspectAt:#htmlDocumentURLHolder put:(holder := ValueHolder new).
|
|
674 |
].
|
|
675 |
^ holder.
|
|
676 |
!
|
|
677 |
|
1025
|
678 |
projectTreeHolder
|
|
679 |
"automatically generated by UIPainter ..."
|
|
680 |
|
|
681 |
"*** the code below creates a default model when invoked."
|
|
682 |
"*** (which may not be the one you wanted)"
|
|
683 |
"*** Please change as required and accept in the browser."
|
|
684 |
|
|
685 |
|holder|
|
|
686 |
|
|
687 |
(holder := builder bindingAt:#projectTree) isNil ifTrue:[
|
|
688 |
builder aspectAt:#projectTree put:(holder := SelectionInTree new).
|
|
689 |
holder root:self projectTree.
|
|
690 |
].
|
|
691 |
^ holder.
|
|
692 |
!
|
|
693 |
|
|
694 |
rightCanvasTextHolder
|
|
695 |
"automatically generated by UIPainter ..."
|
|
696 |
|
|
697 |
"*** the code below creates a default model when invoked."
|
|
698 |
"*** (which may not be the one you wanted)"
|
|
699 |
"*** Please change as required and accept in the browser."
|
|
700 |
|
|
701 |
|holder|
|
|
702 |
|
|
703 |
(holder := builder bindingAt:#rightCanvasTextHolder) isNil ifTrue:[
|
|
704 |
builder aspectAt:#rightCanvasTextHolder put:(holder := ValueHolder new).
|
|
705 |
].
|
|
706 |
^ holder.
|
|
707 |
!
|
|
708 |
|
|
709 |
selectedTreeNode
|
|
710 |
"automatically generated by UIPainter ..."
|
|
711 |
|
|
712 |
"*** the code below creates a default model when invoked."
|
|
713 |
"*** (which may not be the one you wanted)"
|
|
714 |
"*** Please change as required and accept in the browser."
|
|
715 |
|
|
716 |
|holder|
|
|
717 |
|
|
718 |
(holder := builder bindingAt:#selectedTreeNode) isNil ifTrue:[
|
|
719 |
builder aspectAt:#selectedTreeNode put:(holder := ValueHolder new).
|
|
720 |
].
|
|
721 |
^ holder.
|
|
722 |
! !
|
|
723 |
|
|
724 |
!ProjectBrowser methodsFor:'initialization'!
|
|
725 |
|
|
726 |
postBuildWith:aBuiler
|
1026
|
727 |
self setupCanvasForNoSelection.
|
|
728 |
^ super postBuildWith:aBuiler
|
1025
|
729 |
!
|
|
730 |
|
|
731 |
setupCanvasForNoSelection
|
1026
|
732 |
self showReadOnlyText:'Please select an existing,
|
1025
|
733 |
or create a new project.'.
|
|
734 |
! !
|
|
735 |
|
1026
|
736 |
!ProjectBrowser methodsFor:'menus'!
|
|
737 |
|
|
738 |
itemMenu
|
|
739 |
self hasProjectNodeSelected ifTrue:[
|
|
740 |
^ self class projectItemMenu
|
|
741 |
].
|
1037
|
742 |
self hasSubProjectsNodeSelected ifTrue:[
|
|
743 |
^ self class subProjectsItemMenu
|
|
744 |
].
|
1026
|
745 |
|
|
746 |
^ nil
|
|
747 |
!
|
|
748 |
|
|
749 |
itemMenuHolder
|
|
750 |
^ [ self itemMenu]
|
1037
|
751 |
!
|
|
752 |
|
|
753 |
itemMenuPerformer
|
|
754 |
^ self
|
1026
|
755 |
! !
|
|
756 |
|
1025
|
757 |
!ProjectBrowser methodsFor:'private'!
|
|
758 |
|
1026
|
759 |
hasProjectNodeSelected
|
|
760 |
|selectedNode|
|
|
761 |
|
|
762 |
selectedNode := self selectedTreeNode value.
|
|
763 |
selectedNode isNil ifTrue:[^ false].
|
|
764 |
|
|
765 |
^ selectedNode isProjectNode
|
|
766 |
|
|
767 |
!
|
|
768 |
|
1037
|
769 |
hasSubProjectsNodeSelected
|
|
770 |
|selectedNode|
|
|
771 |
|
|
772 |
selectedNode := self selectedTreeNode value.
|
|
773 |
selectedNode isNil ifTrue:[^ false].
|
|
774 |
|
|
775 |
^ selectedNode contents == #subprojects
|
|
776 |
|
|
777 |
!
|
|
778 |
|
1025
|
779 |
nodeFor:aProject
|
1026
|
780 |
"generate and return a treeNode for some project"
|
|
781 |
|
1025
|
782 |
|projectName pNode
|
|
783 |
propertiesNode docNode classesNode subprojectsNode filesNode
|
1026
|
784 |
commentNode prerequisitesNode|
|
1025
|
785 |
|
|
786 |
projectName := aProject name.
|
1026
|
787 |
pNode := ProjectNode name:projectName.
|
1025
|
788 |
pNode contents:aProject.
|
|
789 |
|
|
790 |
pNode add:(commentNode := ProjectTreeItem name:'Comment').
|
|
791 |
pNode add:(docNode := ProjectTreeItem name:'Documentation').
|
|
792 |
pNode add:(propertiesNode := ProjectTreeItem name:'Properties').
|
|
793 |
pNode add:(classesNode := ProjectTreeItem name:'Classes').
|
1026
|
794 |
pNode add:(prerequisitesNode := ProjectTreeItem name:'Prerequisites').
|
1025
|
795 |
pNode add:(subprojectsNode := ProjectTreeItem name:'SubProjects').
|
|
796 |
pNode add:(filesNode := ProjectTreeItem name:'Files').
|
|
797 |
|
|
798 |
aProject subProjects do:[:aSubProject |
|
|
799 |
subprojectsNode add:(self nodeFor:aSubProject)
|
|
800 |
].
|
|
801 |
|
|
802 |
commentNode action:[:item | self showCommentOf:item].
|
1026
|
803 |
commentNode contents:#comment.
|
|
804 |
|
|
805 |
docNode contents:#documentation.
|
1037
|
806 |
docNode action:[:item | self showDocumentationFor:item].
|
|
807 |
|
|
808 |
classesNode contents:#classes.
|
1026
|
809 |
|
|
810 |
propertiesNode contents:#properties.
|
|
811 |
|
|
812 |
prerequisitesNode contents:#prerequisites.
|
|
813 |
|
|
814 |
subprojectsNode contents:#subprojects.
|
|
815 |
|
|
816 |
filesNode contents:#files.
|
1025
|
817 |
|
|
818 |
^ pNode
|
1026
|
819 |
|
1025
|
820 |
!
|
|
821 |
|
|
822 |
projectTree
|
|
823 |
|tree root|
|
|
824 |
|
1026
|
825 |
projectTree isNil ifTrue:[
|
|
826 |
tree := SelectionInTree new.
|
|
827 |
tree root:(root := TreeItem name:'invisibleRoot').
|
1025
|
828 |
|
1026
|
829 |
Project knownProjects do:[:aProject |
|
|
830 |
root add:(self nodeFor:aProject).
|
|
831 |
].
|
|
832 |
projectTree := root.
|
1025
|
833 |
].
|
|
834 |
|
1026
|
835 |
^ projectTree
|
1025
|
836 |
!
|
|
837 |
|
|
838 |
updateRightCanvas
|
|
839 |
|selectedNode nodeContents|
|
|
840 |
|
|
841 |
selectedNode := self selectedTreeNode value.
|
|
842 |
selectedNode isNil ifTrue:[
|
|
843 |
self setupCanvasForNoSelection.
|
|
844 |
^ self
|
|
845 |
].
|
1026
|
846 |
|
|
847 |
selectedNode isProjectNode ifTrue:[
|
|
848 |
self showCommentOf:selectedNode.
|
1025
|
849 |
^ self.
|
|
850 |
].
|
|
851 |
|
1037
|
852 |
selectedNode contents == #classes ifTrue:[
|
|
853 |
self showClassListOf:selectedNode.
|
|
854 |
^ self.
|
|
855 |
].
|
|
856 |
|
1025
|
857 |
self currentCanvasHolder value:(self class emptyRightCanvasSpec).
|
|
858 |
self rightCanvasTextHolder value:''.
|
|
859 |
|
|
860 |
! !
|
|
861 |
|
1037
|
862 |
!ProjectBrowser methodsFor:'private - table col access'!
|
|
863 |
|
|
864 |
classNameFromClassInfo:cInfo
|
|
865 |
Transcript showCR:'xxx'.
|
|
866 |
self halt.
|
|
867 |
! !
|
|
868 |
|
1025
|
869 |
!ProjectBrowser methodsFor:'user actions'!
|
|
870 |
|
|
871 |
itemSelected:index
|
|
872 |
|item action|
|
|
873 |
|
|
874 |
self updateRightCanvas.
|
|
875 |
|
|
876 |
item := self projectTreeHolder value at:index.
|
|
877 |
action := item action.
|
|
878 |
action notNil ifTrue:[
|
|
879 |
action value:item.
|
|
880 |
].
|
|
881 |
!
|
|
882 |
|
1026
|
883 |
newProject
|
1037
|
884 |
self newProject:Project new.
|
|
885 |
|
|
886 |
!
|
1026
|
887 |
|
1037
|
888 |
newProject:newProject
|
|
889 |
|newNode|
|
|
890 |
|
1026
|
891 |
newNode := self nodeFor:newProject.
|
|
892 |
projectTree add:newNode.
|
|
893 |
self projectTreeHolder root:projectTree.
|
|
894 |
|
|
895 |
!
|
|
896 |
|
|
897 |
newSubProject
|
1037
|
898 |
|selectedNode subProjectsNode newNode parentProject newProject|
|
|
899 |
|
|
900 |
selectedNode := self selectedTreeNode value.
|
1026
|
901 |
|
|
902 |
self hasProjectNodeSelected ifTrue:[
|
|
903 |
parentProject := selectedNode contents.
|
1037
|
904 |
subProjectsNode := selectedNode children detect:[:child | child contents == #subprojects].
|
|
905 |
] ifFalse:[
|
|
906 |
self hasSubProjectsNodeSelected ifTrue:[
|
|
907 |
subProjectsNode := selectedNode.
|
|
908 |
parentProject := selectedNode parent contents.
|
|
909 |
].
|
|
910 |
].
|
|
911 |
self halt.
|
|
912 |
parentProject notNil ifTrue:[
|
1026
|
913 |
newProject := Project new.
|
|
914 |
newNode := self nodeFor:newProject.
|
|
915 |
|
|
916 |
parentProject addSubProject:newProject.
|
1037
|
917 |
subProjectsNode add:newNode.
|
1026
|
918 |
self projectTreeHolder root:projectTree.
|
1037
|
919 |
self projectTreeHolder selectNode:newNode.
|
|
920 |
]
|
|
921 |
!
|
|
922 |
|
|
923 |
openProject
|
|
924 |
|fn newProject|
|
|
925 |
|
|
926 |
fn := Dialog
|
|
927 |
requestFileName:'filename:'
|
|
928 |
default:nil
|
|
929 |
ifFail:nil
|
|
930 |
pattern:'*.prj'
|
|
931 |
fromDirectory:(FileSelectionBox lastFileSelectionDirectory).
|
|
932 |
|
|
933 |
fn notNil ifTrue:[
|
|
934 |
newProject := Project new loadFromProjectFile:fn.
|
|
935 |
newProject notNil ifTrue:[
|
|
936 |
self newProject:newProject
|
|
937 |
]
|
1026
|
938 |
]
|
|
939 |
!
|
|
940 |
|
1037
|
941 |
removeProject
|
|
942 |
|projectToRemove selectedNode subNode newNode parentNode parentProject newProject|
|
1025
|
943 |
|
1026
|
944 |
self hasProjectNodeSelected ifTrue:[
|
|
945 |
selectedNode := self selectedTreeNode value.
|
|
946 |
projectToRemove := selectedNode contents.
|
|
947 |
|
1037
|
948 |
"/ parentNode := selectedNode parent.
|
|
949 |
"/ parentNode contents == #subprojects ifTrue:[
|
|
950 |
"/ parentNode removeChild:selectedNode.
|
|
951 |
"/ ] ifFalse:[
|
|
952 |
"/ parentNode removeChild:selectedNode.
|
|
953 |
"/ ].
|
|
954 |
self projectTreeHolder removeSelection
|
|
955 |
|
|
956 |
"/ self projectTreeHolder root:projectTree.
|
|
957 |
|
|
958 |
"/ parentProject addSubProject:newProject.
|
|
959 |
"/ subNode := selectedNode children detect:[:child | child contents == #subprojects].
|
|
960 |
"/ subNode add:newNode.
|
|
961 |
"/ self projectTreeHolder root:projectTree.
|
|
962 |
]
|
|
963 |
!
|
|
964 |
|
|
965 |
renameProject
|
|
966 |
|nm selectedNode selectedProject|
|
|
967 |
|
|
968 |
self hasProjectNodeSelected ifTrue:[
|
|
969 |
selectedNode := self selectedTreeNode value.
|
|
970 |
selectedProject := selectedNode contents.
|
1026
|
971 |
|
1037
|
972 |
nm := Dialog
|
|
973 |
request:'Rename to:'
|
|
974 |
initialAnswer:selectedProject name.
|
|
975 |
|
|
976 |
nm size > 0 ifTrue:[
|
|
977 |
selectedProject name:nm.
|
|
978 |
selectedNode name:nm.
|
|
979 |
selectedNode changed.
|
|
980 |
]
|
1026
|
981 |
]
|
|
982 |
!
|
|
983 |
|
1037
|
984 |
showClassListOf:anItem
|
|
985 |
|projectItem project classInfo l|
|
|
986 |
|
|
987 |
projectItem := anItem parent.
|
|
988 |
project := projectItem contents.
|
|
989 |
|
|
990 |
classInfo := project classInfo.
|
|
991 |
l := self classList.
|
|
992 |
l removeAll.
|
|
993 |
l addAll:classInfo.
|
|
994 |
self halt.
|
|
995 |
|
|
996 |
self currentCanvasHolder value:(self class rightCanvasSpecForClassList).
|
|
997 |
!
|
|
998 |
|
1026
|
999 |
showCommentOf:anItem
|
|
1000 |
|projectItem project|
|
1025
|
1001 |
|
1026
|
1002 |
anItem contents == #comment ifTrue:[
|
|
1003 |
projectItem := anItem parent
|
|
1004 |
] ifFalse:[
|
|
1005 |
projectItem := anItem
|
|
1006 |
].
|
|
1007 |
project := projectItem contents.
|
|
1008 |
|
|
1009 |
self currentCanvasHolder value:(self class rightCanvasSpecForEditableText).
|
1025
|
1010 |
self rightCanvasTextHolder value:project comment.
|
|
1011 |
|
|
1012 |
!
|
|
1013 |
|
1037
|
1014 |
showDocumentationFor:anItem
|
|
1015 |
|projectItem project|
|
|
1016 |
|
|
1017 |
anItem contents == #documentation ifTrue:[
|
|
1018 |
projectItem := anItem parent
|
|
1019 |
] ifFalse:[
|
|
1020 |
projectItem := anItem
|
|
1021 |
].
|
|
1022 |
project := projectItem contents.
|
|
1023 |
|
|
1024 |
self currentCanvasHolder value:(self class rightCanvasSpecForHTMLText).
|
|
1025 |
self htmlDocumentURLHolder value:project documentationURL.
|
|
1026 |
!
|
|
1027 |
|
1026
|
1028 |
showReadOnlyText:someText
|
|
1029 |
self currentCanvasHolder value:(self class rightCanvasSpecForReadOnlyText).
|
|
1030 |
self rightCanvasTextHolder value:someText.
|
|
1031 |
|
|
1032 |
!
|
|
1033 |
|
1025
|
1034 |
showTreeItem:anItem
|
|
1035 |
anItem contents == #comment ifTrue:[
|
|
1036 |
self showCommentOf:anItem.
|
|
1037 |
^ self
|
|
1038 |
].
|
|
1039 |
! !
|
|
1040 |
|
|
1041 |
!ProjectBrowser::ProjectTreeItem methodsFor:'accessing'!
|
|
1042 |
|
|
1043 |
action
|
|
1044 |
"return the value of the instance variable 'action' (automatically generated)"
|
|
1045 |
|
|
1046 |
^ action!
|
|
1047 |
|
|
1048 |
action:something
|
|
1049 |
"set the value of the instance variable 'action' (automatically generated)"
|
|
1050 |
|
|
1051 |
action := something.! !
|
|
1052 |
|
1026
|
1053 |
!ProjectBrowser::ProjectTreeItem methodsFor:'queries'!
|
|
1054 |
|
|
1055 |
isProjectNode
|
|
1056 |
^ false
|
|
1057 |
! !
|
|
1058 |
|
|
1059 |
!ProjectBrowser::ProjectNode methodsFor:'queries'!
|
|
1060 |
|
|
1061 |
isProjectNode
|
|
1062 |
^ true
|
|
1063 |
|
|
1064 |
|
|
1065 |
! !
|
|
1066 |
|
1025
|
1067 |
!ProjectBrowser class methodsFor:'documentation'!
|
|
1068 |
|
|
1069 |
version
|
|
1070 |
^ '$Header$'
|
|
1071 |
! !
|